2000-09-14 17:57:57 +00:00
|
|
|
# New ports collection makefile for: nautilus
|
|
|
|
# Date created: 28th August 2000
|
|
|
|
# Whom: ade, archie
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nautilus
|
2001-02-01 20:16:40 +00:00
|
|
|
PORTVERSION= 0.8
|
2000-09-14 17:57:57 +00:00
|
|
|
CATEGORIES= x11-fm gnome
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
|
|
|
MASTER_SITE_SUBDIR= unstable/sources/nautilus
|
|
|
|
|
2001-01-30 16:45:58 +00:00
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
2000-09-14 17:57:57 +00:00
|
|
|
|
2001-04-09 18:20:17 +00:00
|
|
|
BUILD_DEPENDS= rpm:${PORTSDIR}/archivers/rpm \
|
|
|
|
freetype-config:${PORTSDIR}/print/freetype2 # XXX
|
2000-09-14 17:57:57 +00:00
|
|
|
LIB_DEPENDS= medusa.0:${PORTSDIR}/sysutils/medusa \
|
2001-01-31 15:57:21 +00:00
|
|
|
gtkhtml.8:${PORTSDIR}/www/gtkhtml \
|
2000-09-14 17:57:57 +00:00
|
|
|
ghttp.1:${PORTSDIR}/www/libghttp \
|
2001-01-12 19:59:39 +00:00
|
|
|
bz2.1:${PORTSDIR}/archivers/bzip2 \
|
|
|
|
freetype.6:${PORTSDIR}/print/freetype2
|
2000-10-10 17:26:17 +00:00
|
|
|
|
2000-09-14 17:57:57 +00:00
|
|
|
.if defined(WITH_MOZILLA)
|
2001-02-01 20:16:40 +00:00
|
|
|
MOZILLA= mozilla
|
2001-02-01 11:48:35 +00:00
|
|
|
BUILD_DEPENDS= ${X11BASE}/include/mozilla/gtkmozembed.h:${PORTSDIR}/www/mozilla-headers \
|
|
|
|
${X11BASE}/lib/${MOZILLA}/libgtkembedmoz.so:${PORTSDIR}/www/${MOZILLA}
|
|
|
|
RUN_DEPENDS= ${X11BASE}/lib/${MOZILLA}/libgtkembedmoz.so:${PORTSDIR}/www/${MOZILLA}
|
2000-09-14 17:57:57 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_X_PREFIX= yes
|
2000-10-05 07:17:31 +00:00
|
|
|
USE_GNOME= yes
|
2000-09-14 17:57:57 +00:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
2001-02-01 20:16:40 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -fno-rtti -fno-exceptions" \
|
2001-03-29 16:35:19 +00:00
|
|
|
LIBS="${PTHREAD_LIBS} -L${LOCALBASE}/lib" \
|
2000-10-05 07:17:31 +00:00
|
|
|
LIBPNG="-L${LOCALBASE}/lib -lpng -lz ${MOZILLA_LIBS}"
|
2001-01-12 19:59:39 +00:00
|
|
|
CONFIGURE_ARGS= --with-freetype2-lib-place=${LOCALBASE}/lib \
|
|
|
|
--with-freetype2-include-place=${LOCALBASE}/include/freetype2
|
2000-09-14 17:57:57 +00:00
|
|
|
|
|
|
|
.if defined(WITH_MOZILLA)
|
|
|
|
CONFIGURE_ARGS+= --with-mozilla-lib-place=${X11BASE}/lib/${MOZILLA} \
|
2001-02-01 11:48:35 +00:00
|
|
|
--with-mozilla-include-place=${X11BASE}/include/mozilla
|
2000-09-14 17:57:57 +00:00
|
|
|
MOZILLA_LIBS= "-L${X11BASE}/lib/${MOZILLA}"
|
|
|
|
PLIST_SUB+= MOZILLA:=""
|
|
|
|
.else
|
2001-01-12 19:59:39 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-mozilla-component
|
2000-09-14 17:57:57 +00:00
|
|
|
MOZILLA_LIBS= ""
|
|
|
|
PLIST_SUB+= MOZILLA:="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_MOZILLA)
|
|
|
|
pre-extract:
|
|
|
|
@${ECHO} "You can add embedded mozilla support by defining WITH_MOZILLA"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-patch:
|
2001-03-29 16:35:19 +00:00
|
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
2000-09-14 17:57:57 +00:00
|
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
|
|
|
|
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
|
|
|
|
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
|
|
|
|
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|