1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

make gconf support optional

This commit is contained in:
Oliver Lehmann 2007-10-15 19:49:44 +00:00
parent d54475429d
commit 53fc7f22a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=201521
2 changed files with 16 additions and 2 deletions

View File

@ -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>

View File

@ -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