# $Id: Portfile,v 1.1 2005/09/04 22:37:36 ben Exp $ PortSystem 1.0 name kdesdk3 version 3.4.1 categories kde maintainers ben@opendarwin.org description KDE SDK. \ NB No KDE sound support. No SVN support.\ Bugblaster DB support is missing. platforms darwin master_sites kde:stable/${version}/src \ http://ranger.befunk.com/fink/:admin extract.suffix .tar.bz2 use_bzip2 yes distname kdesdk-${version} distfiles ${distname}.tar.bz2 kde-admindir-3.4.0-6.tar.bz2:admin depends_lib lib:libkdecore.4.2.0:kdelibs3 \ lib:libkonq.4.2.0:kdebase3 checksums kdesdk-${version}.tar.bz2 md5 b7073f0f4ac7efe4d6ff33c1ba527668 \ kde-admindir-3.4.0-6.tar.bz2 md5 5d0274369eba8c862178ba8e26639cc3 \ detect-autoconf.tar.bz2 md5 1f511627496be40174169dbab4d6d78a set env(PATH) "/usr/X11R6/bin:$env(PATH):${prefix}/bin" platform darwin 6 { depends_lib-append lib:libdl:dlcompat } patchfiles kdesdk3.patch patch.args -p1 post-patch { system "cd '${worksrcpath}' && if test -d ../admin; then cp -Rf ../admin/ admin; fi" system "cd '${worksrcpath}' && if test -d ../libltdl; then cp -Rf ../libltdl/ libltdl; fi" system "cd '${worksrcpath}' && make -f admin/Makefile.common cvs" foreach file [glob admin/*] { reinplace "s|-O2|-Os|g" $file reinplace "s|doc/HTML|doc/kde|g" $file reinplace "s|/usr/share/doc/packages/qt3/html|${prefix}/share/doc/qt3/html|g" $file reinplace "s|HAVE_GCC_VISIBILITY=1|HAVE_GCC_VISIBILITY=0|g" $file reinplace "s|-fvisibility=hidden -fvisibility-inlines-hidden||g" $file } } configure.env CC=gcc-3.3 CXX=g++-3.3 \ CFLAGS='-Os' CXXFLAGS='-Os' \ 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' \ LDFLAGS='-L/usr/X11R6/lib -L${prefix}/lib' \ LIBS='-L${prefix}/lib' \ lt_cv_sys_max_cmd_len=65536 configure.args --prefix='${prefix}' --includedir='${prefix}/include' --libdir='${prefix}/lib' \ --with-extra-includes='${prefix}/include:/usr/include/gssapi' \ --with-extra-libs='${prefix}/lib' \ --with-qt-dir='${prefix}' --with-qt-includes='${prefix}/include/qt3' \ --with-plugins='${prefix}/lib/qt3-plugins' \ --enable-rpath --with-pic --enable-shared=yes --enable-static=no --enable-mt \ --libexecdir='${prefix}/lib' --with-xinerama --with-pam --disable-final \ --disable-dependency-tracking --enable-cups --with-ldap \ --mandir=${prefix}/share/man --with-pam --with-distribution='DarwinPorts/Mac OS X' \ --with-ssl-dir=/usr --with-ssl --with-gssapi=framework --disable-dependency-tracking \ --without-arts build.env ${configure.env} build.target all all_libraries="-L${prefix}/lib -L/usr/X11R6/lib -L/usr/lib" KDM_FLAGS="-UHAVE_UTMPX -DBSD_UTMP=1" # kbugbuster: fink makes all in dir kbugbuster with flags LIB_DBIV=-ldb-4.2 all_libraries="$ALL_LIBRARIES" # need to depend on db-4.2 for this destroot.args -j1 destroot.target install # kbugbuster: fink makes install in dir kbugbuster here