2000-06-29 21:28:06 +02:00
|
|
|
# New ports collection makefile for: gnomevfs
|
|
|
|
# Date created: 28th June 2000
|
|
|
|
# Whom: Ade Lovett <ade@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gnomevfs
|
2002-01-23 16:22:19 +01:00
|
|
|
PORTVERSION= 1.0.4
|
2002-01-26 09:05:29 +01:00
|
|
|
PORTREVISION= 2
|
2000-06-29 21:28:06 +02:00
|
|
|
CATEGORIES= devel gnome
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
2001-05-10 21:34:03 +02:00
|
|
|
MASTER_SITE_SUBDIR= stable/sources/gnome-vfs
|
2000-06-29 21:28:06 +02:00
|
|
|
DISTNAME= gnome-vfs-${PORTVERSION}
|
|
|
|
|
2001-05-11 18:36:50 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2000-06-29 21:28:06 +02:00
|
|
|
|
2002-01-23 16:22:19 +01:00
|
|
|
BUILD_DEPENDS= msgfmt-new:${PORTSDIR}/devel/gettext-devel \
|
|
|
|
${X11BASE}/libdata/pkgconfig/gnome-mime-data-2.0.pc:${PORTSDIR}/misc/gnomemimedata
|
2001-08-15 22:33:16 +02:00
|
|
|
LIB_DEPENDS= gconf-1.1:${PORTSDIR}/devel/gconf
|
|
|
|
.if !exists(/usr/bin/bzip2)
|
|
|
|
LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
|
|
|
|
.endif
|
2002-01-23 16:22:19 +01:00
|
|
|
RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gnome-mime-data-2.0.pc:${PORTSDIR}/misc/gnomemimedata
|
2000-06-29 21:28:06 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_X_PREFIX= yes
|
2001-05-04 23:39:58 +02:00
|
|
|
USE_GNOMELIBS= yes
|
2001-10-01 08:37:30 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2001-06-01 22:08:36 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
2002-01-24 16:09:56 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
|
2001-10-01 08:37:30 +02:00
|
|
|
LIBS="-L${LOCALBASE}/lib" \
|
|
|
|
MSGFMT=${LOCALBASE}/bin/msgfmt-new \
|
2002-01-24 16:09:56 +01:00
|
|
|
XGETTEXT=${LOCALBASE}/bin/xgettext-new \
|
|
|
|
BSD_PTHREAD_LIBS=${PTHREAD_LIBS}
|
2000-06-29 21:28:06 +02:00
|
|
|
|
2000-07-06 00:01:40 +02:00
|
|
|
MAN5= gnome-vfs-mime.5
|
|
|
|
|
2000-08-04 18:11:37 +02:00
|
|
|
pre-patch:
|
2001-03-29 18:35:19 +02:00
|
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
2000-08-04 03:34:38 +02:00
|
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
|
2001-10-01 08:37:30 +02:00
|
|
|
@find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \
|
2000-08-04 03:34:38 +02:00
|
|
|
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
|
|
|
|
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
|
2001-01-30 05:39:20 +01:00
|
|
|
@find ${WRKSRC} -name 'xml-i18n-*' | xargs ${PERL} -pi -e \
|
|
|
|
's|/usr/local/bin/perl|${PERL}|g'
|
2000-08-04 03:34:38 +02:00
|
|
|
|
2001-10-01 08:37:30 +02:00
|
|
|
post-install:
|
|
|
|
@if [ -L ${PREFIX}/include/libgnomevfs ]; then \
|
|
|
|
${RM} -f ${PREFIX}/include/libgnomevfs; \
|
|
|
|
fi
|
|
|
|
${LN} -sf ${PREFIX}/include/gnome-vfs-1.0/libgnomevfs \
|
|
|
|
${PREFIX}/include/libgnomevfs
|
|
|
|
|
2000-06-29 21:28:06 +02:00
|
|
|
.include <bsd.port.mk>
|