openbsd-ports/devel/gconf2/gconf2.port.mk

28 lines
853 B
Makefile
Raw Normal View History

2011-05-06 02:43:43 -04:00
# $OpenBSD: gconf2.port.mk,v 1.7 2011/05/06 06:43:43 ajacoutot Exp $
2010-11-06 16:48:11 -04:00
MODGCONF2_WANTLIB = gconf-2
2010-11-15 14:45:56 -05:00
MODGCONF2_LIB_DEPENDS = devel/gconf2
MODGCONF2_BUILD_DEPENDS =devel/gconf2
MODGCONF2_RUN_DEPENDS = devel/gconf2
2010-11-06 16:48:11 -04:00
MODGCONF2_LIBDEP ?= Yes
.if ${MODGCONF2_LIBDEP:L} == "yes"
2010-11-06 16:48:11 -04:00
LIB_DEPENDS += ${MODGCONF2_LIB_DEPENDS}
WANTLIB += ${MODGCONF2_WANTLIB}
.endif
# The RUN_DEPENDS entry is to ensure gconf2 is installed. This is
# necessary so that we have gconftool-2 installed on static archs.
2010-11-06 16:48:11 -04:00
RUN_DEPENDS += ${MODGCONF2_RUN_DEPENDS}
2010-11-06 16:48:11 -04:00
BUILD_DEPENDS += ${MODGCONF2_BUILD_DEPENDS}
.if defined(MODGCONF2_SCHEMAS_DIR)
2010-11-06 16:48:11 -04:00
SCHEMAS_INSTDIR = share/schemas/${MODGCONF2_SCHEMAS_DIR:L}
SUBST_VARS += SCHEMAS_INSTDIR
CONFIGURE_ARGS += --with-gconf-schema-file-dir=${LOCALBASE}/${SCHEMAS_INSTDIR}
.endif
2010-11-06 16:48:11 -04:00
MODGCONF2_post-patch += ln -s /usr/bin/true ${WRKDIR}/bin/gconftool-2