source: trunk/dports/x11/kdegraphics3/Portfile @ 11593

Last change on this file since 11593 was 11593, checked in by jkh, 15 years ago

The disposition of the dlopen() and poll() routines has evolved over 3 releases. Properly
conditionalize usage of this in the ports that need it to ensure that builds on Jaguar, Panther
and Tiger all work.

  • Property svn:eol-style set to native
File size: 3.4 KB
Line 
1# $Id: Portfile,v 1.15 2005/04/04 10:08:40 jkh Exp $
2
3PortSystem 1.0
4name            kdegraphics3
5version         3.1.2
6revision        2
7categories      x11
8maintainers     darwinports@opendarwin.org
9description     graphics manipulation programs
10
11platforms       darwin
12master_sites    kde:stable/${version}/src http://ranger.befunk.com/fink/:admin http://ranger.befunk.com/darwin/:darwin
13extract.suffix  .tar.bz2
14use_bzip2       yes
15distname        kdegraphics-${version}
16distfiles       ${distname}.tar.bz2 kde-admindir-20030601.tar.bz2:admin detect-autoconf.tar.bz2:darwin
17depends_lib     lib:libDCOP:kdelibs3 lib:libImlib:imlib lib:libart_lgpl_2:libart_lgpl \
18                lib:libfreetype:freetype lib:libjpeg:jpeg lib:libkdecore.4:kdelibs3 \
19                bin:startkde:kdebase3 lib:libpng.3:libpng lib:libtiff:tiff \
20                lib:libqt-mt.3.1:qt3 lib:libX11.6:XFree86
21
22checksums       kdegraphics-${version}.tar.bz2 md5 05a791e5b685e35d3e05d23d2d467678 \
23                kde-admindir-20030601.tar.bz2 md5 6135f81de4b1561942be8fd31ae21297 \
24                detect-autoconf.tar.bz2 md5 1f511627496be40174169dbab4d6d78a
25
26set env(PATH) "/usr/X11R6/bin:$env(PATH):${prefix}/bin"
27
28platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
29
30variant darwin {
31                patchfiles \
32                        stable/patch-kdegraphics-kcoloredit-Makefile.am.diff \
33                        stable/patch-kdegraphics-kdvi-font.cpp.diff \
34                        stable/patch-kdegraphics-kghostview-kpswidget.cpp.diff \
35                        stable/patch-kdegraphics-kghostview-Makefile.am.diff \
36                        stable/patch-kdegraphics-kmrml-kmrml-Makefile.am.diff \
37                        stable/patch-kdegraphics-kmrml-kmrml-server-Makefile.am.diff \
38                        stable/patch-kdegraphics-kooka-configure.in.in.diff \
39                        stable/patch-kdegraphics-kpovmodeler-configure.in.in.diff \
40                        stable/patch-kdegraphics-kpovmodeler-Makefile.am.diff \
41                        stable/patch-kdegraphics-kruler-Makefile.am.diff \
42                        stable/patch-kdegraphics-ksnapshot-Makefile.am.diff \
43                        stable/patch-kdegraphics-kuickshow-configure.in.in.diff \
44                        stable/patch-kdegraphics-kuickshow-src-Makefile.am.diff \
45                        stable/patch-kdegraphics-kview-kviewviewer-Makefile.am.diff \
46                        stable/patch-kdegraphics-kview-Makefile.am.diff \
47                        stable/patch-kdegraphics-kviewshell-Makefile.am.diff
48}
49
50variant cvs {
51                version 3.2
52                revision 0
53
54                ##### THIS IS UNSUPPORTED, DO NOT USE THIS IN YOUR PORTS! #####
55                cvs.root :pserver:anonymous@anoncvs.kde.org:/home/kde
56                cvs.module kdegraphics
57                pre-extract {
58                        cvsfetch
59                }
60                ##### I MEAN IT, LANDONF WILL KILL YOU IF YOU DO THIS! #####
61
62                distname kdegraphics
63                distfiles kde-admindir-cvs-20030701.tar.bz2:admin
64                checksums kde-admindir-cvs-20030701.tar.bz2 md5 b9bf2dc286d2e434c2cfdadc421c79b6
65
66                patchfiles
67}
68
69patch {
70                foreach patch $patchfiles {
71                        system "cd '${workpath}/${distname}' && \
72                        sed -e 's#@PREFIX@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
73                }
74}
75post-patch      {
76                system "cd '${worksrcpath}' && cp -Rf ../admin/ admin"
77                system "cd '${worksrcpath}' && make -f admin/Makefile.common cvs"
78}
79configure.env   CPPFLAGS='-I/usr/X11R6/include -I${prefix}/include -I${prefix}/include/qt3 -no-cpp-precomp -fno-common' \
80                LDFLAGS='-L/usr/X11R6/lib' LIBS='-L${prefix}/lib' DYLD_LIBRARY_PATH='${prefix}/lib'
81configure.args  --prefix='${prefix}' --includedir='${prefix}/include' --libdir='${prefix}/lib' \
82                --with-extra-includes='${prefix}/include' --with-extra-libs='${prefix}/lib' \
83                --with-qt-dir='${prefix}' --with-qt-includes='${prefix}/include/qt3' \
84                --enable-rpath --with-pic --enable-shared=yes --enable-static=no --enable-mt \
85                --libexecdir='${prefix}/lib' --with-xinerama --with-pam --disable-final \
86                --disable-dependency-tracking
87build.env       ${configure.env}
Note: See TracBrowser for help on using the repository browser.