summaryrefslogtreecommitdiffstats
path: root/devel/gnome-vfs/Makefile
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-04-27 00:52:40 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-04-27 00:52:40 +0800
commit0d13c2eedffdbe238a08bbf62fdbadd3c5a3ac87 (patch)
tree9c41bf0872cd5cebbaa72adc147594c6fdd13187 /devel/gnome-vfs/Makefile
parentcb212a641d541d237efd3a3bbeb25ce18209a26f (diff)
downloadmarcuscom-ports-0d13c2eedffdbe238a08bbf62fdbadd3c5a3ac87.tar
marcuscom-ports-0d13c2eedffdbe238a08bbf62fdbadd3c5a3ac87.tar.gz
marcuscom-ports-0d13c2eedffdbe238a08bbf62fdbadd3c5a3ac87.tar.bz2
marcuscom-ports-0d13c2eedffdbe238a08bbf62fdbadd3c5a3ac87.tar.lz
marcuscom-ports-0d13c2eedffdbe238a08bbf62fdbadd3c5a3ac87.tar.xz
marcuscom-ports-0d13c2eedffdbe238a08bbf62fdbadd3c5a3ac87.tar.zst
marcuscom-ports-0d13c2eedffdbe238a08bbf62fdbadd3c5a3ac87.zip
share/gnome/ -> share/
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8628 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/gnome-vfs/Makefile')
-rw-r--r--devel/gnome-vfs/Makefile108
1 files changed, 108 insertions, 0 deletions
diff --git a/devel/gnome-vfs/Makefile b/devel/gnome-vfs/Makefile
new file mode 100644
index 000000000..571ff7c4a
--- /dev/null
+++ b/devel/gnome-vfs/Makefile
@@ -0,0 +1,108 @@
+# New ports collection makefile for: gnomevfs2
+# Date created: 28th June 2000
+# Whom: Ade Lovett <ade@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom: ports/devel/gnome-vfs/Makefile,v 1.167 2007/03/13 13:02:20 ahze Exp $
+#
+
+PORTNAME= gnome-vfs
+PORTVERSION= 2.18.1
+PORTREVISION?= 1
+CATEGORIES= devel gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/gnome-vfs/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
+DISTNAME= gnome-vfs-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= GNOME Virtual File System
+
+USE_BZIP2= yes
+
+.if !defined(REFERENCE_PORT)
+
+LIB_DEPENDS= hal.1:${PORTSDIR}/sysutils/hal
+RUN_DEPENDS= ${LOCALBASE}/share/mime/magic:${PORTSDIR}/misc/shared-mime-info
+
+USE_GMAKE= yes
+USE_GETTEXT= yes
+USE_XLIB= yes
+USE_GNOME= gnomeprefix gnomehack intlhack gnomemimedata gconf2 \
+ libbonobo ltverhack referencehack
+USE_AUTOTOOLS= libtool:15
+USE_OPENSSL= yes
+USE_LDCONFIG= yes
+CONFIGURE_ARGS= --enable-openssl \
+ --disable-gnutls \
+ --disable-howl \
+ --enable-hal \
+ --with-hal-mount=/sbin/mount \
+ --with-hal-umount=/sbin/umount
+CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include -DPTHREAD_LIB=\"${PTHREAD_LIBS}\""
+LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+
+PKGINSTALL= ${WRKDIR}/pkg-install
+PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
+
+GCONF_SCHEMAS= desktop_default_applications.schemas \
+ desktop_gnome_url_handlers.schemas system_dns_sd.schemas \
+ system_http_proxy.schemas system_smb.schemas
+
+OPTIONS= SAMBA "Enable SMB volume support" on \
+ MDNS "Enable Bonjour/Rendezvous support" on
+
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/lib/libfam.so) || !defined(WITHOUT_FAM)
+USE_FAM= yes
+.endif
+
+.if exists(${LOCALBASE}/lib/libkrb5.so)
+LIB_DEPENDS+= krb5:${PORTSDIR}/security/heimdal
+.endif
+
+.if !defined(WITHOUT_SAMBA)
+LIB_DEPENDS+= smbclient.0:${PORTSDIR}/net/samba-libsmbclient
+PLIST_SUB+= SAMBA=""
+.else
+PLIST_SUB+= SAMBA="@comment "
+CONFIGURE_ARGS+=--disable-samba
+.endif
+
+.if !defined(WITHOUT_MDNS)
+LIB_DEPENDS+= avahi-client:${PORTSDIR}/net/avahi
+.else
+CONFIGURE_ARGS+=--disable-avahi
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|@PTHREAD_LIB@|${PTHREAD_LIBS}|' \
+ ${WRKSRC}/gnome-vfs-2.0.pc.in ${WRKSRC}/gnome-vfs-module-2.0.pc.in
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
+ ${WRKSRC}/libgnomevfs/Makefile.in
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \
+ s|/usr/X11R6|${X11BASE}|g ; \
+ s|%%LOCALBASE%%|${LOCALBASE}|g; \
+ s|%%X11BASE%%|${X11BASE}|g' \
+ ${WRKSRC}/libgnomevfs/xdgmime.c \
+ ${WRKSRC}/libgnomevfs/gnome-vfs-hal-mounts.c
+ @${REINPLACE_CMD} -e 's|-lacl||g' \
+ ${WRKSRC}/configure
+ @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ < ${MASTERDIR}/pkg-install.in > ${PKGINSTALL}
+ @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ < ${MASTERDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
+
+pre-configure:
+ @if [ -n "`${PKG_INFO} -xI '^bind[0-9]*-base-[0-9]' 2> /dev/null`" ]; then \
+ ${ECHO_CMD} "${PKGNAME}: bind installed with PORT_REPLACES_BASE_BIND causes build problems."; \
+ ${FALSE}; \
+ fi
+
+post-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.post.mk>
+
+.endif