Merge from vendor branch TNF:
[pkgsrc.git] / net / kdenetwork / Makefile
1 # $NetBSD: Makefile,v 1.44 2000/07/10 15:08:18 agc Exp $
2 # FreeBSD Id: Makefile,v 1.3 1997/11/05 04:19:54 asami Exp
3 #
4
5 DISTNAME=               kdenetwork-1.1.2
6 CATEGORIES=             net kde
7 MASTER_SITES=           ftp://ftp.us.kde.org/pub/kde/stable/1.1.2/distribution/tar/generic/source/bz2/ \
8                         ftp://ftp.de.kde.org/pub/kde/stable/1.1.2/distribution/tar/generic/source/bz2/
9 EXTRACT_SUFX=           .tar.bz2
10
11 MAINTAINER=             packages@netbsd.org
12 HOMEPAGE=               http://www.kde.org/
13
14 DEPENDS=                gdbm>=1.7.3:../../databases/gdbm
15 DEPENDS+=               uulib-0.5.13:../../converters/uulib
16 DEPENDS+=               kdesupport-1.1.2:../../converters/kdesupport
17 DEPENDS+=               kdebase-1.1.2:../../x11/kdebase
18
19 NOT_FOR_PLATFORM=       *-*-alpha       # LP64/ELF problems
20
21 USE_X11BASE=            yes
22 USE_GMAKE=              yes
23 USE_PKGLIBTOOL=         yes
24 LIBTOOL_FLAGS=          --cplusplus --install-la
25 GNU_CONFIGURE=          yes
26 CONFIGURE_ARGS=         "--datadir=${PREFIX}/share/kde" \
27                         "--with-qt-dir=`${MAKE} show-qt1-prefix`/qt1" 
28 CONFIGURE_ENV=          KDEDIR=${PREFIX} \
29                         CPPFLAGS="${CPPFLAGS}" \
30                         CXXFLAGS="${CFLAGS}" \
31                         all_libraries="-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -L${X11BASE}/lib -Wl,-R${X11BASE}/lib"
32
33 GCC_VERSION!=           gcc --version
34 .if (${GCC_VERSION:C/-.*$$//} == egcs)
35 PLIST_SRC=              ${PKGDIR}/PLIST.egcs
36 .else
37 PLIST_SRC=              ${PKGDIR}/PLIST.gcc
38 .endif
39
40 .include "../../mk/bsd.prefs.mk"
41
42 .if ${OPSYS} == "SunOS"
43 PLIST_SRC=              ${PKGDIR}/PLIST-SunOS
44 CPPFLAGS=               -I${LOCALBASE}/include
45 CFLAGS=                 -I${LOCALBASE}/include
46 .elif ${OPSYS} == "NetBSD"
47 CPPFLAGS+=              -I${LOCALBASE}/include
48 CFLAGS+=                -I${LOCALBASE}/include
49 .endif
50
51 post-install:
52 .if (${GCC_VERSION:C/-.*$$//} != egcs)
53         @${FIND} ${PREFIX}/share/kde/locale -name ksirc.mo | xargs ${RM}
54 .endif
55
56 .include "../../mk/bsd.pkg.mk"