# $OpenBSD: Makefile,v 1.12 2002/05/13 18:50:39 espie Exp $ COMMENT= "configuration database system written for GNOME" V= 1.0.7 DISTNAME= GConf-${V} PKGNAME= ${DISTNAME:L} CATEGORIES= devel NEED_VERSION= 1.490 HOMEPAGE= http://www.gnome.org MAINTAINER= Nils Nordman MASTER_SITES= ${MASTER_SITE_GNOME:=stable/sources/GConf/} EXTRACT_SUFX= .tar.bz2 LIB_DEPENDS= oaf.::x11/gnome/oaf \ xml.9::textproc/libxml1 \ gnome.36::x11/gnome/libs FLAVORS= guile db3 FLAVOR?= # GPL PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes SEPARATE_BUILD= concurrent USE_X11= Yes CONFIGURE_STYLE= autoconf CONFIGURE_ARGS+= ${CONFIGURE_SHARED} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${WRKBUILD}/gconf/.libs -L${LOCALBASE}/lib" \ XML_CONFIG="${LOCALBASE}/bin/xml-config" .if ${FLAVOR:L:Mguile} BUILD_DEPENDS+= :guile-*:lang/guile RUN_DEPENDS+= :guile-*:lang/guile .else CONFIGURE_ENV+= GUILE_CONFIG=/usr/bin/false .endif .if ${FLAVOR:L:Mdb3} LIB_DEPENDS+= db::databases/db CONFIGURE_ARGS+= --enable-db3 .else CONFIGURE_ARGS+= --disable-db3 .endif post-install: @${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gconf; \ cp -Rp ${WRKINST}/${SYSCONFDIR}/* ${PREFIX}/share/examples/gconf; .include .if ${FLAVOR:L:Mdb3} .if !defined(NO_SHARED_LIBS) SED_PLIST+=-e '/%%SHARED-db3%%/r${PKGDIR}/PFRAG.db3.shared' -e '//d' .else SED_PLIST+=-e '/%%SHARED-db3%%/d' .endif .endif