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
|
|
|
|
PORTVERSION= 0.1.0
|
2000-10-03 17:37:51 +00:00
|
|
|
PORTREVISION= 2
|
2000-09-14 17:57:57 +00:00
|
|
|
CATEGORIES= x11-fm gnome
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
|
|
|
MASTER_SITE_SUBDIR= unstable/sources/nautilus
|
|
|
|
|
|
|
|
MAINTAINER= ade@FreeBSD.org
|
|
|
|
|
2000-09-17 19:09:28 +00:00
|
|
|
BUILD_DEPENDS= rpm:${PORTSDIR}/misc/rpm
|
2000-09-14 17:57:57 +00:00
|
|
|
LIB_DEPENDS= medusa.0:${PORTSDIR}/sysutils/medusa \
|
|
|
|
gtkhtml.4:${PORTSDIR}/www/gtkhtml \
|
|
|
|
ghttp.1:${PORTSDIR}/www/libghttp \
|
|
|
|
bz2.1:${PORTSDIR}/archivers/bzip2
|
|
|
|
|
|
|
|
.if defined(WITH_MOZILLA)
|
|
|
|
MOZILLA= mozilla-embedded
|
2000-09-17 19:09:28 +00:00
|
|
|
BUILD_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
|
2000-10-05 07:17:31 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-pthread -L${LOCALBASE}/lib" \
|
|
|
|
LIBPNG="-L${LOCALBASE}/lib -lpng -lz ${MOZILLA_LIBS}"
|
2000-09-14 17:57:57 +00:00
|
|
|
|
|
|
|
.if defined(WITH_MOZILLA)
|
|
|
|
CONFIGURE_ARGS+= --with-mozilla-lib-place=${X11BASE}/lib/${MOZILLA} \
|
|
|
|
--with-mozilla-include-place=${X11BASE}/include/${MOZILLA}
|
|
|
|
MOZILLA_LIBS= "-L${X11BASE}/lib/${MOZILLA}"
|
|
|
|
PLIST_SUB+= MOZILLA:=""
|
|
|
|
.else
|
|
|
|
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:
|
|
|
|
@${PERL} -pi -e 's|-lpthread|-pthread|g ; \
|
|
|
|
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>
|