source: trunk/dports/x11/kdetoys3/Portfile @ 13406

Last change on this file since 13406 was 13406, checked in by ben, 14 years ago

Version 3.4.1

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1# $Id: Portfile,v 1.13 2005/08/08 00:25:36 ben Exp $
2
3PortSystem 1.0
4name            kdetoys3
5version         3.4.1
6categories      x11
7maintainers     ben@opendarwin.org
8description     KDE toys \
9                NB KDE sound does not work. \
10                ** This port needs testing **
11platforms       darwin
12master_sites    kde:stable/${version}/src \
13                http://ranger.befunk.com/fink/:admin
14extract.suffix  .tar.bz2
15use_bzip2       yes
16distname        kdetoys-${version}
17distfiles       ${distname}.tar.bz2 kde-admindir-3.4.1.tar.bz2:admin
18depends_lib     lib:libkdecore.4.2.0:kdelibs3 \
19                lib:libXm:lesstif \
20                port:fontconfig
21
22checksums       kdetoys-${version}.tar.bz2 md5 8c9ad215fe076942bc9195eca5a9175f \
23                kde-admindir-3.4.1.tar.bz2 md5 0388fc87fa950791209ad4ab791b32cd \
24                detect-autoconf.tar.bz2 md5 1f511627496be40174169dbab4d6d78a
25
26set env(PATH) "/usr/X11R6/bin:$env(PATH):${prefix}/bin"
27
28platform darwin 6 {
29                depends_lib-append      lib:libdl:dlcompat
30}
31
32patchfiles      kdetoys3.patch
33patch.args      -p1
34
35post-patch      {
36                system "cd '${worksrcpath}' && if test -d ../admin; then cp -Rf ../admin/ admin; fi"
37                system "cd '${worksrcpath}' && if test -d ../libltdl; then cp -Rf ../libltdl/ libltdl; fi"
38                system "cd '${worksrcpath}' && make -f admin/Makefile.common cvs"
39                foreach file [glob admin/*] {
40                    reinplace "s|-O2|-Os|g" $file
41                    reinplace "s|doc/HTML|doc/kde|g" $file
42                    reinplace "s|/usr/share/doc/packages/qt3/html|${prefix}/share/doc/qt3/html|g" $file
43                    reinplace "s|HAVE_GCC_VISIBILITY=1|HAVE_GCC_VISIBILITY=0|g" $file
44                    reinplace "s|-fvisibility=hidden -fvisibility-inlines-hidden||g" $file
45                }
46}
47
48configure.env   CC=gcc-3.3 CXX=g++-3.3 \
49                CFLAGS='-Os' CXXFLAGS='-Os' \
50                CPPFLAGS='-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include/freetype2/freetype -I${prefix}/include -I${prefix}/include/qt3 -I/usr/include/gssapi -no-cpp-precomp -fno-common -UHAVE_REALTIME_SCHED' \
51                LDFLAGS='-L/usr/X11R6/lib -L${prefix}/lib' \
52                LIBS='-L${prefix}/lib' \
53                lt_cv_sys_max_cmd_len=65536
54
55configure.args  --prefix='${prefix}' --includedir='${prefix}/include' --libdir='${prefix}/lib' \
56                --with-extra-includes='${prefix}/include:/usr/include/gssapi' \
57                --with-extra-libs='${prefix}/lib' \
58                --with-qt-dir='${prefix}' --with-qt-includes='${prefix}/include/qt3' \
59                --with-plugins='${prefix}/lib/qt3-plugins' \
60                --enable-rpath --with-pic --enable-shared=yes --enable-static=no --enable-mt \
61                --libexecdir='${prefix}/lib' --with-xinerama --with-pam --disable-final \
62                --disable-dependency-tracking --enable-cups --with-ldap \
63                --mandir=${prefix}/share/man --with-pam --with-distribution='DarwinPorts/Mac OS X' \
64                --with-ssl-dir=/usr --with-ssl --with-gssapi=framework --disable-dependency-tracking \
65                --without-arts
66
67build.env       ${configure.env}
68build.target    all all_libraries="-L${prefix}/lib -L/usr/X11R6/lib -L/usr/lib" KDM_FLAGS="-UHAVE_UTMPX -DBSD_UTMP=1"
69
70destroot.args   -j1
71destroot.target install
Note: See TracBrowser for help on using the repository browser.