summaryrefslogtreecommitdiff
path: root/net/kdenetwork/Makefile
blob: 9c6f9d74a5a3b707386beb30ea5396aa364552e7 (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
49
50
51
52
53
54
55
56
57
58
# $NetBSD: Makefile,v 1.63 2003/06/02 01:17:56 jschauma Exp $
# FreeBSD Id: Makefile,v 1.3 1997/11/05 04:19:54 asami Exp
#

DISTNAME=		kdenetwork-1.1.2
PKGREVISION=		2
CATEGORIES=		net kde
MASTER_SITES=		${MASTER_SITE_LOCAL}/kde1
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		tech-pkg@netbsd.org
HOMEPAGE=		http://www.kde.org/
COMMENT=		Network modules for the KDE integrated X11 desktop

DEPENDS=		gdbm>=1.8.3:../../databases/gdbm
DEPENDS+=		uulib>=0.5.13:../../converters/uulib
DEPENDS+=		kdesupport-1.1.2:../../converters/kdesupport
DEPENDS+=		kdebase-1.1.2nb2:../../x11/kdebase

USE_X11BASE=		yes
USE_GMAKE=		yes
USE_LIBTOOL=		yes
LTCONFIG_OVERRIDE=	${WRKSRC}/admin/ltconfig
GNU_CONFIGURE=		yes
EVAL_PREFIX+=		QT1DIR=qt1 KDEBASEDIR=kdebase
CONFIGURE_ARGS=		"--datadir=${KDEBASEDIR}/share/kde" \
			"--with-qt-dir=${QT1DIR}/qt1"
CONFIGURE_ENV=  	KDEDIR=${KDEBASEDIR} \
			CXXFLAGS="${CFLAGS}" \
			all_libraries="${KDE_LDFLAGS}"

FIX_RPATH+=		KDE_LDFLAGS
KDE_LDFLAGS=		-L${LOCALBASE}/lib -Wl,${RPATH_FLAG}${LOCALBASE}/lib -L${X11BASE}/lib -Wl,${RPATH_FLAG}${X11BASE}/lib

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

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS"
PLIST_SRC=		${PKGDIR}/PLIST-SunOS
CPPFLAGS=		-I${LOCALBASE}/include
CFLAGS=			-I${LOCALBASE}/include
.elif ${OPSYS} == "NetBSD"
CPPFLAGS+=		-I${LOCALBASE}/include
CFLAGS+=		-I${LOCALBASE}/include
.endif

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

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