source: trunk/dports/x11/kdeedu3/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            kdeedu3
5version         3.1.2
6revision        1
7categories      x11
8maintainers     darwinports@opendarwin.org
9description     educational games and software
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        kdeedu-${version}
16distfiles       ${distname}.tar.bz2 kde-admindir-20030601.tar.bz2:admin detect-autoconf.tar.bz2:darwin
17depends_lib     lib:libDCOP:kdelibs3 lib:libart_lgpl_2:libart_lgpl \
18                lib:libjpeg:jpeg lib:libkdecore.4:kdelibs3 bin:startkde:kdebase3 \
19                lib:libpng.3:libpng lib:libqt-mt.3.1:qt3 lib:libX11.6:XFree86
20
21checksums       kdeedu-${version}.tar.bz2 md5 ba2a96454b7d2a7d92c991b08d932242 \
22                kde-admindir-20030601.tar.bz2 md5 6135f81de4b1561942be8fd31ae21297 \
23                detect-autoconf.tar.bz2 md5 1f511627496be40174169dbab4d6d78a
24
25set env(PATH) "/usr/X11R6/bin:$env(PATH):${prefix}/bin"
26
27platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
28
29variant darwin {
30                patchfiles \
31                        stable/patch-kdeedu-applnk-Makefile.am.diff \
32                        stable/patch-kdeedu-applnk-miscellaneous.desktop.diff \
33                        stable/patch-kdeedu-applnk-miscellanous.desktop.diff \
34                        stable/patch-kdeedu-flashkard-flashkard-main.cpp.diff \
35                        stable/patch-kdeedu-flashkard-flashkard-Makefile.am.diff \
36                        stable/patch-kdeedu-flashkard-flashkard.kdevprj.diff \
37                        stable/patch-kdeedu-kalzium-calculations-Makefile.am.diff \
38                        stable/patch-kdeedu-khangman-khangman-khangman.cpp.diff \
39                        stable/patch-kdeedu-kiten-Makefile.am.diff \
40                        stable/patch-kdeedu-klettres-klettres-pics-Makefile.am.diff \
41                        stable/patch-kdeedu-kmathtool-configure.in.in.diff \
42                        stable/patch-kdeedu-kmplot-kmplot-diagr.cpp.diff \
43                        stable/patch-kdeedu-kstars-kstars-data-Makefile.am.diff \
44                        stable/patch-kdeedu-kstars-kstars-modcalcdaylength.cpp.diff \
45                        stable/patch-kdeedu-ktouch-Makefile.am.diff \
46                        stable/patch-kdeedu-kvoctrain-kvoctrain-Makefile.am.diff
47}
48
49variant cvs {
50                version 3.2
51                revision 0
52
53                ##### THIS IS UNSUPPORTED, DO NOT USE THIS IN YOUR PORTS! #####
54                cvs.root :pserver:anonymous@anoncvs.kde.org:/home/kde
55                cvs.module kdeedu
56                pre-extract cvsfetch
57                ##### I MEAN IT, LANDONF WILL KILL YOU IF YOU DO THIS! #####
58
59                distname kdeedu
60                distfiles kde-admindir-cvs-20030701.tar.bz2:admin
61                checksums kde-admindir-cvs-20030701.tar.bz2 md5 b9bf2dc286d2e434c2cfdadc421c79b6
62
63                patchfiles current/patch-kdeedu.diff
64                post-extract {
65                        system "rm -rf '${workpath}/${distname}/khangman'"
66                }
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.