diff options
author | tnn <tnn> | 2009-11-01 16:29:24 +0000 |
---|---|---|
committer | tnn <tnn> | 2009-11-01 16:29:24 +0000 |
commit | 820ee4ea4ed467461de654e8b22120dc4580e116 (patch) | |
tree | d08777c0cb1b632eb09ed18824e85f8fab3b0a2d /net/libnids | |
parent | a1e7d56b6f0d6385e5e0e153ceb4bf1e9dd312b7 (diff) | |
download | pkgsrc-820ee4ea4ed467461de654e8b22120dc4580e116.tar.gz |
deal w/ conditional glib2 support. Fixes build of security/pakemon and
security/dsniff.
Diffstat (limited to 'net/libnids')
-rw-r--r-- | net/libnids/buildlink3.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/net/libnids/buildlink3.mk b/net/libnids/buildlink3.mk index 655e2d62c53..2b8faad71c8 100644 --- a/net/libnids/buildlink3.mk +++ b/net/libnids/buildlink3.mk @@ -1,13 +1,24 @@ -# $NetBSD: buildlink3.mk,v 1.6 2009/03/20 19:25:10 joerg Exp $ +# $NetBSD: buildlink3.mk,v 1.7 2009/11/01 16:29:24 tnn Exp $ BUILDLINK_TREE+= libnids .if !defined(LIBNIDS_BUILDLINK3_MK) LIBNIDS_BUILDLINK3_MK:= + BUILDLINK_API_DEPENDS.libnids+= libnids>=1.18 BUILDLINK_PKGSRCDIR.libnids?= ../../net/libnids BUILDLINK_DEPMETHOD.libnids?= build + +pkgbase := libnids +.include "../../mk/pkg-build-options.mk" +.if !empty(PKG_BUILD_OPTIONS.libnids:Mglib) +.include "../../devel/glib2/buildlink3.mk" +# This is needed because libnids is a static library +LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib \ + -lglib-2.0 -lgthread-2.0 +.endif + .endif # LIBNIDS_BUILDLINK3_MK BUILDLINK_TREE+= -libnids |