1 # $NetBSD: Makefile,v 1.42 2000/06/01 11:23:36 rh Exp $
2 # FreeBSD Id: Makefile,v 1.3 1997/11/05 04:19:54 asami Exp
5 DISTNAME= kdenetwork-1.1.2
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/
11 MAINTAINER= packages@netbsd.org
12 HOMEPAGE= http://www.kde.org/
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
19 NOT_FOR_PLATFORM= *-*-alpha # LP64/ELF problems
24 LIBTOOL_FLAGS= --cplusplus --install-la
26 CONFIGURE_ARGS= "--datadir=${PREFIX}/share/kde" \
27 "--with-qt-dir=${X11BASE}/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"
33 GCC_VERSION!= gcc --version
34 .if (${GCC_VERSION:C/-.*$$//} == egcs)
35 PLIST_SRC= ${PKGDIR}/PLIST.egcs
37 PLIST_SRC= ${PKGDIR}/PLIST.gcc
40 .include "../../mk/bsd.prefs.mk"
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
52 .if (${GCC_VERSION:C/-.*$$//} != egcs)
53 @${FIND} ${PREFIX}/share/kde/locale -name ksirc.mo | xargs ${RM}
56 .include "../../mk/bsd.pkg.mk"