4a4e8f4c95
"bzlib.h". Environments without a system-installed "bzlib.h" will fail to build modules like "audio/gnome-vfs-cdda" with the following: checking for bzCompressInit in -lbz2... no checking bzlib.h usability... no checking bzlib.h presence... no checking for bzlib.h... no configure: error: Gnome-vfs requires libbz2 to compile. *** Error code 1 To fix this, promote bzip2 dependency from gnome-vfs/Makefile to gnome-vfs/Makefile.common. XXX Only /usr/pkg/lib/gnome-vfs-2.0/modules/libbzip2.so actually appears to link with libbz2.so, so it's possible that configure is being overly picky.
133 lines
4.4 KiB
Text
133 lines
4.4 KiB
Text
# $NetBSD: Makefile.common,v 1.11 2008/08/15 01:41:42 dsainty Exp $
|
|
#
|
|
|
|
GNOME_VFS_VERSION= 2.22.0
|
|
|
|
DISTNAME= gnome-vfs-${GNOME_VFS_VERSION}
|
|
CATEGORIES?= sysutils
|
|
CATEGORIES+= gnome
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-vfs/2.22/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.gnome.org/
|
|
COMMENT= GNOME Virtual File System (v2)
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../sysutils/gnome-vfs/distinfo
|
|
PATCHDIR= ${.CURDIR}/../../sysutils/gnome-vfs/patches
|
|
|
|
GNU_CONFIGURE= YES
|
|
USE_PKGLOCALEDIR= YES
|
|
USE_TOOLS+= gmake intltool msgfmt pkg-config
|
|
USE_LIBTOOL= YES
|
|
|
|
CONFIGURE_ARGS+= --disable-cdda
|
|
CONFIGURE_ARGS+= --disable-gtk
|
|
CONFIGURE_ARGS+= --disable-howl
|
|
CONFIGURE_ARGS+= --disable-openssl
|
|
CONFIGURE_ARGS+= --disable-samba
|
|
CONFIGURE_ARGS+= --enable-gnutls
|
|
CONFIGURE_ARGS+= --enable-platform-gnome-2
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q}
|
|
|
|
CPPFLAGS+= -DPREFIX="\"${PREFIX}\""
|
|
CPPFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
|
|
MAKE_FLAGS+= localedir=${PREFIX}/${PKGLOCALEDIR}/locale
|
|
|
|
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS}
|
|
INSTALL_MAKE_FLAGS+= modulesconfdir=${PREFIX}/share/examples/gnome-vfs-2.0/modules
|
|
|
|
PKG_SYSCONFSUBDIR= gnome-vfs-2.0
|
|
|
|
EGDIR= ${PREFIX}/share/examples/gnome-vfs-2.0
|
|
.for f in ${EGFILES}
|
|
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
|
|
.endfor
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.gnome-vfs
|
|
PKG_SUPPORTED_OPTIONS+= inet6 gssapi
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.if ${OPSYS} == NetBSD
|
|
# Kerberos is built in - no additional dependency
|
|
PKG_SUGGESTED_OPTIONS+= gssapi
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mgssapi)
|
|
.include "../../mk/krb5.buildlink3.mk"
|
|
CONFIGURE_ENV+= KRB5_CONFIG=${SH_KRB5_CONFIG}
|
|
.else
|
|
CONFIGURE_ENV+= ac_cv_path_KRB5_CONFIG=none
|
|
.endif
|
|
|
|
# XXX Work-around for a problem in the configure script which checks for
|
|
# statvfs(2) having SVR4 in mind. Solving this in the script itself could
|
|
# be the right way to go, but it is out of the scope of a local patch; it
|
|
# could require changing the code a lot, which is already very... complex.
|
|
.if ${OPSYS} == "NetBSD" && !exists(/usr/include/fstyp.h)
|
|
post-wrapper:
|
|
${MKDIR} -p ${BUILDLINK_DIR}/include/sys
|
|
${TOUCH} ${BUILDLINK_DIR}/include/sys/fstyp.h
|
|
.endif
|
|
|
|
#
|
|
# The following stuff is to allow easy building of modules distributed within
|
|
# gnome-vfs as independent packages.
|
|
#
|
|
# GNOME_VFS_NAME - Name of the module beeing built. Will be added to the
|
|
# package name, and also used as the library name.
|
|
# GNOME_VFS_FLAG - Base name of the flag passed to configure to enable the
|
|
# module.
|
|
#
|
|
.if defined(GNOME_VFS_NAME) && !empty(GNOME_VFS_NAME)
|
|
GNOME_VFS_FLAG?= ${GNOME_VFS_NAME}
|
|
|
|
PKGNAME:= ${DISTNAME:S/gnome-vfs/gnome-vfs-${GNOME_VFS_NAME}/}
|
|
CONFIGURE_ARGS:= ${CONFIGURE_ARGS:S/--disable-${GNOME_VFS_FLAG}/--enable-${GNOME_VFS_FLAG}/}
|
|
COMMENT+= - ${GNOME_VFS_NAME} plugin
|
|
|
|
CONFLICTS+= ${DISTNAME:S/gnome-vfs/gnome-vfs2-${GNOME_VFS_NAME}/}
|
|
|
|
BUILD_TARGET= lib${GNOME_VFS_NAME}.la
|
|
BUILD_DIRS= modules
|
|
|
|
# Fix paths to already installed libraries (by the gnome-vfs package).
|
|
SUBST_CLASSES+= libs
|
|
SUBST_MESSAGE.libs= Fixing path to dependent libraries.
|
|
SUBST_STAGE.libs= pre-configure
|
|
SUBST_FILES.libs= modules/Makefile.in
|
|
SUBST_SED.libs= -e 's|../libgnomevfs/libgnomevfs-2.la|${BUILDLINK_PREFIX.gnome-vfs}/lib/libgnomevfs-2.la|g'
|
|
|
|
BUILDLINK_API_DEPENDS.gnome-vfs+= gnome-vfs>=${GNOME_VFS_VERSION}
|
|
.include "../../sysutils/gnome-vfs/buildlink3.mk"
|
|
|
|
PRINT_PLIST_AWK+= /^@dirrm lib\/gnome-vfs-2.0\/modules$$/ \
|
|
{ print "@comment in gnome-vfs: " $$0; next; }
|
|
PRINT_PLIST_AWK+= /^@dirrm share\/examples\/gnome-vfs-2.0$$/ { next; }
|
|
PRINT_PLIST_AWK+= /^@dirrm share\/examples\/gnome-vfs-2.0\/modules$$/ \
|
|
{ print "@comment in gnome-vfs: " $$0; next; }
|
|
|
|
INSTALLATION_DIRS+= lib/gnome-vfs-2.0/modules
|
|
|
|
do-install:
|
|
cd ${WRKSRC}/modules && ${LIBTOOL} --mode=install \
|
|
${INSTALL_DATA} lib${GNOME_VFS_NAME}.la \
|
|
${DESTDIR}${PREFIX}/lib/gnome-vfs-2.0/modules
|
|
cd ${WRKSRC}/modules && ${LIBTOOL} --mode=finish \
|
|
${DESTDIR}${PREFIX}/lib/gnome-vfs-2.0/modules
|
|
.endif
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
.include "../../devel/GConf/buildlink3.mk"
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../security/gnutls/buildlink3.mk"
|
|
.include "../../sysutils/dbus-glib/buildlink3.mk"
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|