openbsd-ports/devel/gconf/Makefile
nino f92a901843 Better libtool patch for ELF arches from lebel@. It still has linking
issues though for at least macppc.

Remove pre-build check for existing GConf and modify CONFIGURE_ENV to
fool libtool instead.

Ok by lebel@
2002-03-25 17:18:37 +00:00

64 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 2002/03/25 17:18:37 nino 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 <nino@nforced.com>
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= 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 <bsd.port.mk>
.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