mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
34806178ac
developed for GNOME 2.0 Please note: as it stands, this port compiles and installs cleanly, but immediately coredumps if you try to run it. I've only committed what I have so far so that any enterprising souls can try and figure out what on earth is going wrong. Bug report 3075 has been filed with bugzilla.eazel.com
66 lines
1.8 KiB
Makefile
66 lines
1.8 KiB
Makefile
# New ports collection makefile for: nautilus
|
|
# Date created: 28th August 2000
|
|
# Whom: ade, archie
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nautilus
|
|
PORTVERSION= 0.1.0
|
|
CATEGORIES= x11-fm gnome
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
|
MASTER_SITE_SUBDIR= unstable/sources/nautilus
|
|
|
|
MAINTAINER= ade@FreeBSD.org
|
|
|
|
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
|
|
BUILD_DEPENDS= rpm:${PORTSDIR}/misc/rpm \
|
|
${X11BASE}/lib/${MOZILLA}/libgtkembedmoz.so:${PORTSDIR}/www/${MOZILLA}
|
|
.endif
|
|
|
|
GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
|
|
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
|
|
|
|
USE_GMAKE= yes
|
|
USE_X_PREFIX= yes
|
|
USE_LIBTOOL= yes
|
|
INSTALLS_SHLIB= yes
|
|
|
|
CONFIGURE_ARGS= --localstatedir=${PREFIX}/share/gnome \
|
|
--datadir=${PREFIX}/share/gnome
|
|
.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
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
GLIB_CONFIG="${GLIB_CONFIG}" \
|
|
GTK_CONFIG="${GTK_CONFIG}" \
|
|
LIBS="-pthread -L${LOCALBASE}/lib" \
|
|
LIBPNG="-L${LOCALBASE}/lib -lpng -lz ${MOZILLA_LIBS}"
|
|
|
|
.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>
|