# $OpenBSD: Makefile,v 1.19 2006/09/18 12:19:40 espie Exp $ COMMENT= "GNOME Virtual File System" VERSION= 2.10.1 DISTNAME= gnome-vfs-${VERSION} PKGNAME= gnome-vfs2-${VERSION}p0 SHARED_LIBS= gnomevfs-2 1000.1 CATEGORIES= devel x11/gnome HOMEPAGE= http://www.gnome.org/ MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-vfs/2.10/} MODULES= devel/gettext LIB_DEPENDS= bonobo-2,bonobo-activation::x11/gnome/libbonobo \ bz2::archivers/bzip2 \ cdda_paranoia,cdda_interface::audio/cdparanoia \ gconf-2::devel/gconf2 BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig \ :p5-XML-Parser-*:textproc/p5-XML-Parser \ :gnome-mime-data->=2.0.0:x11/gnome/mime-data RUN_DEPENDS= :gnome-mime-data->=2.0.0:x11/gnome/mime-data \ :shared-mime-info-*:misc/shared-mime-info # GPL PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes WANTLIB= ORBit-2 ORBitCosNaming-2 glib-2.0 \ gmodule-2.0 gobject-2.0 gthread-2.0 popt \ xml2 c crypto m pthread ssl z USE_X11= Yes USE_GMAKE= Yes USE_LIBTOOL= Yes CONFIGURE_STYLE= gnu old CONFIGURE_ARGS+= ${CONFIGURE_SHARED} CONFIGURE_ARGS+= --sysconfdir="${SYSCONFDIR}/gnome" CONFIGURE_ARGS+= --disable-gtk-doc CONFIGURE_ARGS+= --with-gconf-schema-file-dir=${LOCALBASE}/share/schemas/gnome-vfs2 CONFIGURE_ARGS+= --disable-ipv6 \ --disable-howl \ --disable-samba CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" # This port has "/usr/local" hardcoded, we prefer ${LOCALBASE} pre-build: for i in gnome-vfs-mime-info.c xdgmime.c; do \ perl -pi -e "s,/usr/local,${LOCALBASE},g" \ ${WRKSRC}/libgnomevfs/$$i; \ done post-install: @${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnome-vfs2; \ cp -Rp ${WRKINST}/${SYSCONFDIR}/gnome/* ${PREFIX}/share/examples/gnome-vfs2/ .include