diff options
author | oliver <oliver@FreeBSD.org> | 2007-10-16 03:49:44 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2007-10-16 03:49:44 +0800 |
commit | afcf845099b4bedaa5c3453b0a9d25885e541523 (patch) | |
tree | 73c54bd5bf7d5277ef9a9d61b3667c5f13dc93fc /devel/libmcs | |
parent | c7384edafb937a024389958a683221ab10708848 (diff) | |
download | freebsd-ports-gnome-afcf845099b4bedaa5c3453b0a9d25885e541523.tar.gz freebsd-ports-gnome-afcf845099b4bedaa5c3453b0a9d25885e541523.tar.zst freebsd-ports-gnome-afcf845099b4bedaa5c3453b0a9d25885e541523.zip |
make gconf support optional
Diffstat (limited to 'devel/libmcs')
-rw-r--r-- | devel/libmcs/Makefile | 16 | ||||
-rw-r--r-- | devel/libmcs/pkg-plist | 2 |
2 files changed, 16 insertions, 2 deletions
diff --git a/devel/libmcs/Makefile b/devel/libmcs/Makefile index c8f3c8814ba1..3f63f51efad6 100644 --- a/devel/libmcs/Makefile +++ b/devel/libmcs/Makefile @@ -16,12 +16,26 @@ COMMENT= A BSD licenced configuration database system LIB_DEPENDS= mowgli.1:${PORTSDIR}/devel/libmowgli +OPTIONS= GCONF "Enable gconf support" on + GNU_CONFIGURE= yes USE_LDCONFIG= yes USE_GMAKE= yes +USE_GNOME= pkgconfig + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_GCONF) +USE_GNOME+= gconf2 +CONFIGURE_ARGS+=--enable-gconf +PLIST_SUB= GCONF="" +.else +CONFIGURE_ARGS+=--disable-gconf +PLIST_SUB= GCONF="@comment " +.endif post-patch: @${REINPLACE_CMD} 's|$${libdir}/pkgconfig|$${prefix}/libdata/pkgconfig|g' \ ${WRKSRC}/Makefile -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/devel/libmcs/pkg-plist b/devel/libmcs/pkg-plist index f680c1dc0fb6..8eece0b8acb5 100644 --- a/devel/libmcs/pkg-plist +++ b/devel/libmcs/pkg-plist @@ -8,7 +8,7 @@ lib/libmcs.so lib/libmcs.so.1 lib/libmcs.so.1.0.0 lib/mcs/keyfile.so -lib/mcs/gconf.so +%%GCONF%%lib/mcs/gconf.so libdata/pkgconfig/libmcs.pc @dirrm include/libmcs @dirrm lib/mcs |