summaryrefslogtreecommitdiff
path: root/net/kdenetwork/Makefile
blob: 8e9a987de2a9ca51ff0a3269ba6246015e569642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $NetBSD: Makefile,v 1.36 1999/10/07 17:41:56 tron Exp $
# FreeBSD Id: Makefile,v 1.3 1997/11/05 04:19:54 asami Exp
#

DISTNAME=		kdenetwork-1.1.2
CATEGORIES=		net kde
MASTER_SITES=		ftp://ftp.us.kde.org/pub/kde/stable/1.1.2/distribution/tar/generic/source/bz2/ \
			ftp://ftp.de.kde.org/pub/kde/stable/1.1.2/distribution/tar/generic/source/bz2/
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		packages@netbsd.org
HOMEPAGE=		http://www.kde.org/

DEPENDS=		gdbm-1.7.3:../../databases/gdbm \
			uulib-0.5.13:../../converters/uulib \
			kdesupport-1.1.2:../../converters/kdesupport \
			kdebase-1.1.2:../../x11/kdebase

NOT_FOR_PLATFORM=	*-*-alpha	# LP64/ELF problems

USE_X11BASE=		yes
USE_GMAKE=		yes
USE_LIBTOOL=		yes
LIBTOOL_FLAGS=		--cplusplus --install-la
GNU_CONFIGURE=		yes
CONFIGURE_ARGS=		"--datadir=${PREFIX}/share/kde" \
			"--with-qt-dir=${PREFIX}" \
			"--with-qt-includes=${PREFIX}/include/qt"
CPPFLAGS+=		-I${LOCALBASE}/include
CFLAGS+=		-I${LOCALBASE}/include
CONFIGURE_ENV=  	KDEDIR=${PREFIX} \
			CPPFLAGS="${CPPFLAGS}" \
			CXXFLAGS="${CFLAGS}" \
			all_libraries="-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib"

GCC_VERSION!=   	gcc --version
.if (${GCC_VERSION:C/-.*$$//} == egcs)
PLIST_SRC=		${PKGDIR}/PLIST.egcs
.else
PLIST_SRC=		${PKGDIR}/PLIST.gcc
.endif

post-install:
.if (${GCC_VERSION:C/-.*$$//} != egcs)
	@find ${PREFIX}/share/kde/locale -name ksirc.mo | xargs ${RM}
.endif

.include "../../mk/bsd.pkg.mk"