2003-06-02 18:30:59 +00:00
|
|
|
# New ports collection makefile for: mozilla-firebird
|
|
|
|
# Date created: May 31, 2003
|
|
|
|
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
|
2002-10-21 08:54:27 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-06-02 18:30:59 +00:00
|
|
|
PORTNAME= firebird
|
2003-07-29 19:22:12 +00:00
|
|
|
PORTVERSION= 0.6.1
|
2003-07-31 18:18:56 +00:00
|
|
|
PORTREVISION= 1
|
2003-06-02 18:30:59 +00:00
|
|
|
CATEGORIES= www
|
2003-08-24 16:18:58 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA}
|
|
|
|
MASTER_SITE_SUBDIR= firebird/releases/${PORTVERSION}
|
|
|
|
DISTNAME= MozillaFirebird-source-${PORTVERSION}
|
2002-10-21 08:54:27 +00:00
|
|
|
|
2003-06-02 18:30:59 +00:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
COMMENT= Mozilla Firebird is the next generation browser from the mozilla.org project
|
2002-10-21 18:37:12 +00:00
|
|
|
|
2002-11-10 18:05:10 +00:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2002-10-21 18:37:12 +00:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
mng.1:${PORTSDIR}/graphics/libmng \
|
2002-11-01 04:17:51 +00:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
2002-12-22 09:46:17 +00:00
|
|
|
iconv.3:${PORTSDIR}/converters/libiconv \
|
|
|
|
nspr4.1:${PORTSDIR}/devel/nspr
|
2002-10-22 09:26:56 +00:00
|
|
|
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
|
2002-11-01 04:17:51 +00:00
|
|
|
freetype-config:${PORTSDIR}/print/freetype2
|
2002-10-22 09:26:56 +00:00
|
|
|
|
2003-06-02 18:30:59 +00:00
|
|
|
USE_X_PREFIX= yes
|
2002-10-22 09:26:56 +00:00
|
|
|
|
2003-06-02 18:30:59 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_PERL5= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
2003-07-29 19:22:12 +00:00
|
|
|
ALL_TARGET= default
|
2002-11-01 04:17:51 +00:00
|
|
|
|
2003-06-02 18:30:59 +00:00
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
USE_GNOME= gtk20 libidl
|
|
|
|
PKGNAMESUFFIX= -gtk2
|
2003-08-06 16:14:52 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.gtk2
|
2003-06-02 18:30:59 +00:00
|
|
|
.else
|
|
|
|
USE_GNOME= gtk12 orbit
|
2003-08-06 16:14:52 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.gtk1
|
2003-06-02 18:30:59 +00:00
|
|
|
.endif
|
2002-11-01 04:17:51 +00:00
|
|
|
|
2002-10-31 18:17:06 +00:00
|
|
|
NO_MTREE= yes
|
2002-10-21 18:37:12 +00:00
|
|
|
WRKSRC= ${WRKDIR}/mozilla
|
2002-12-01 21:37:33 +00:00
|
|
|
LOCAL_SUBDIR= lib/${PORTNAME}
|
|
|
|
LOCAL_PREFIX= ${PREFIX}/${LOCAL_SUBDIR}
|
|
|
|
JREDIR= ${LOCALBASE}/jdk1.3.1/jre
|
2003-06-02 18:30:59 +00:00
|
|
|
PLUGINSDIR= ${PREFIX}/lib/browser_plugins
|
2002-10-21 18:37:12 +00:00
|
|
|
|
2002-10-21 08:54:27 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2002-10-21 18:37:12 +00:00
|
|
|
|
2003-06-18 23:22:10 +00:00
|
|
|
#.if ${PERL_LEVEL} < 500601
|
|
|
|
#.undef NO_IGNORE
|
|
|
|
#BROKEN= Mozilla Firebird only supports the ports versions of Perl.
|
|
|
|
#BROKEN+=If you have installed a Perl port, and are getting this message,
|
|
|
|
#BROKEN+=please make sure you have given the command \'use.perl port\'.
|
|
|
|
#.endif # ${PERL_LEVEL} < 500601
|
2002-11-07 17:56:33 +00:00
|
|
|
|
2002-12-01 21:37:33 +00:00
|
|
|
SORT?=/usr/bin/sort
|
|
|
|
|
2002-12-13 09:41:38 +00:00
|
|
|
.if defined(WITH_DEBUG)
|
2002-12-14 22:49:59 +00:00
|
|
|
WITH_LOGGING= yes
|
2002-12-13 09:41:38 +00:00
|
|
|
CONFIGURE_ENV+= WITH_DEBUG=yes
|
|
|
|
.endif # defined(WITH_DEBUG)
|
|
|
|
|
2003-06-02 18:30:59 +00:00
|
|
|
.if defined(WITH_OPTIMIZED_CFLAGS)
|
2002-12-13 09:41:38 +00:00
|
|
|
CFLAGS+= -O2
|
2003-06-02 18:30:59 +00:00
|
|
|
.endif # defined(WITH_OPTIMIZED_CFLAGS)
|
2002-12-13 09:41:38 +00:00
|
|
|
|
2002-12-14 22:49:59 +00:00
|
|
|
.if defined(WITH_LOGGING)
|
|
|
|
CONFIGURE_ENV+= WITH_LOGGING=yes
|
|
|
|
.endif # defined(WITH_LOGGING)
|
|
|
|
|
|
|
|
.if defined(WITHOUT_XFT)
|
|
|
|
CONFIGURE_ENV+= WITHOUT_XFT=yes
|
|
|
|
.else
|
2003-02-18 04:51:34 +00:00
|
|
|
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/Xft
|
2002-12-14 22:49:59 +00:00
|
|
|
.endif # !defined(WITHOUT_XFT)
|
|
|
|
|
2003-06-02 18:30:59 +00:00
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
CONFIGURE_ENV+= WITH_GTK2=yes
|
|
|
|
.endif # defined(WITH_GTK2)
|
|
|
|
|
2002-12-13 09:41:38 +00:00
|
|
|
CPPFLAGS+= -I${X11BASE}/include
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${X11BASE}/lib
|
|
|
|
LIBS+= ${PTHREAD_LIBS}
|
|
|
|
|
2003-06-02 18:30:59 +00:00
|
|
|
EXTRA_SCRIPTS= firebird.rb
|
2002-12-18 05:02:34 +00:00
|
|
|
|
2002-11-07 17:56:33 +00:00
|
|
|
pre-extract::
|
|
|
|
@${ECHO_MSG}
|
2002-11-05 12:00:22 +00:00
|
|
|
@${ECHO_MSG} "Extracting source (this takes a while) ..."
|
2002-11-07 17:56:33 +00:00
|
|
|
@${ECHO_MSG}
|
2002-11-05 12:00:22 +00:00
|
|
|
|
2002-11-07 17:56:33 +00:00
|
|
|
post-extract::
|
2002-11-10 18:05:10 +00:00
|
|
|
@${SED} -e 's|@CPPFLAGS@|${CPPFLAGS}|' \
|
|
|
|
-e 's|@CFLAGS@|${CFLAGS}|' \
|
|
|
|
-e 's|@LDFLAGS@|${LDFLAGS}|' \
|
2002-10-22 11:04:48 +00:00
|
|
|
-e 's|@LIBS@|${LIBS}|' \
|
|
|
|
-e 's|@X11BASE@|${X11BASE}|' \
|
2002-10-21 18:37:12 +00:00
|
|
|
-e 's|@LOCALBASE@|${LOCALBASE}|' \
|
2002-11-01 04:17:51 +00:00
|
|
|
-e 's|@PREFIX@|${LOCAL_PREFIX}|' \
|
2003-06-03 01:10:33 +00:00
|
|
|
-e 's|@PERL@|${PERL5}|' \
|
2002-10-21 18:37:12 +00:00
|
|
|
<${FILESDIR}/mozconfig.in >${WRKSRC}/.mozconfig
|
|
|
|
|
2003-06-02 18:30:59 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
|
|
${WRKSRC}/build/unix/run-mozilla.sh
|
|
|
|
|
2002-12-10 08:57:05 +00:00
|
|
|
pre-install:
|
|
|
|
${RM} -fr ${LOCAL_PREFIX}
|
2003-06-02 18:30:59 +00:00
|
|
|
-${MKDIR} ${PLUGINSDIR}
|
2002-12-10 08:57:05 +00:00
|
|
|
|
2002-12-18 05:02:34 +00:00
|
|
|
install-extra:
|
|
|
|
.for i in ${EXTRA_SCRIPTS}
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/${i} ${PREFIX}/bin
|
|
|
|
.endfor # i in ${EXTRA_SCRIPTS}
|
|
|
|
|
2002-12-10 08:57:05 +00:00
|
|
|
link-bins:
|
2003-06-02 18:30:59 +00:00
|
|
|
${RM} -f ${PREFIX}/bin/firebird
|
|
|
|
${LN} -s ${LOCAL_PREFIX}/bin/MozillaFirebird \
|
|
|
|
${PREFIX}/bin/firebird
|
|
|
|
${RM} -f ${PREFIX}/bin/MozillaFirebird
|
|
|
|
${LN} -s ${LOCAL_PREFIX}/bin/MozillaFirebird \
|
|
|
|
${PREFIX}/bin/MozillaFirebird
|
|
|
|
${RM} -f ${PREFIX}/bin/firebird-config
|
2002-12-10 08:57:05 +00:00
|
|
|
${LN} -s ${LOCAL_PREFIX}/bin/mozilla-config \
|
2003-06-02 18:30:59 +00:00
|
|
|
${PREFIX}/bin/firebird-config
|
2002-12-10 08:57:05 +00:00
|
|
|
|
|
|
|
link-java:
|
2002-12-01 21:37:33 +00:00
|
|
|
-${RM} -f ${PLUGINSDIR}/libjavaplugin_oji.so
|
|
|
|
-${LN} -sf \
|
2003-06-02 18:30:59 +00:00
|
|
|
${JREDIR}/plugin/${ARCH}/ns600/libjavaplugin_oji.so \
|
2002-12-01 21:37:33 +00:00
|
|
|
${PLUGINSDIR}/libjavaplugin_oji.so
|
2002-12-10 08:57:05 +00:00
|
|
|
|
|
|
|
cleanup-install:
|
|
|
|
${RM} -fr ${LOCAL_PREFIX}/share/idl
|
|
|
|
${RM} -fr ${LOCAL_PREFIX}/include
|
|
|
|
|
|
|
|
cons-plist:
|
2002-12-01 21:37:33 +00:00
|
|
|
-${RM} -f ${PLIST}
|
2003-07-24 18:36:02 +00:00
|
|
|
${TOUCH} ${PLIST}
|
2003-06-02 18:30:59 +00:00
|
|
|
${ECHO_CMD} bin/firebird >>${PLIST}
|
|
|
|
${ECHO_CMD} bin/MozillaFirebird >>${PLIST}
|
|
|
|
${ECHO_CMD} bin/firebird-config >>${PLIST}
|
2002-12-18 05:02:34 +00:00
|
|
|
.for i in ${EXTRA_SCRIPTS}
|
|
|
|
${ECHO_CMD} bin/${i} >>${PLIST}
|
|
|
|
.endfor # i in ${EXTRA_SCRIPTS}
|
2002-12-01 21:37:33 +00:00
|
|
|
cd ${PREFIX}; \
|
|
|
|
${FIND} ${LOCAL_SUBDIR} ! -type d | ${SORT} >>${PLIST}; \
|
|
|
|
${FIND} ${LOCAL_SUBDIR} -type d -empty | ${SORT} \
|
2002-12-10 08:57:05 +00:00
|
|
|
| ${SED} -e "s:^:@exec ${MKDIR} %D/:" -e "s:$$: || true:" \
|
2002-12-01 21:37:33 +00:00
|
|
|
>> ${PLIST}; \
|
|
|
|
${FIND} ${LOCAL_SUBDIR} -type d -empty | ${SORT} -r \
|
2002-12-10 08:57:05 +00:00
|
|
|
| ${SED} -e "s:^:@unexec ${RMDIR} %D/:" -e "s:$$: || true:" \
|
2002-12-01 21:37:33 +00:00
|
|
|
>> ${PLIST}; \
|
|
|
|
${FIND} ${LOCAL_SUBDIR} -type d ! -empty | ${SORT} -r \
|
|
|
|
| ${SED} -e "s:^:@dirrm :" >> ${PLIST}
|
2002-10-22 09:26:56 +00:00
|
|
|
|
2002-12-18 05:02:34 +00:00
|
|
|
.PHONY: install-extra link-bins link-java cleanup-install cons-plist
|
2002-12-10 08:57:05 +00:00
|
|
|
|
2002-10-21 08:54:27 +00:00
|
|
|
.include <bsd.port.post.mk>
|
2002-12-10 08:57:05 +00:00
|
|
|
|
2002-12-13 09:41:38 +00:00
|
|
|
# <alane>
|
|
|
|
# Under normal circumstances, you should not put anything after
|
|
|
|
# the above line. However, this is the only way I can state the
|
|
|
|
# dependency without trashing the actual code of the generate-plist
|
2003-06-02 18:30:59 +00:00
|
|
|
# target. This is a limitation of the make(1) program itself.
|
2002-12-13 09:41:38 +00:00
|
|
|
# </alane>
|
2003-07-24 18:36:02 +00:00
|
|
|
generate-plist: install-extra link-bins link-java cleanup-install
|
2002-12-10 08:57:05 +00:00
|
|
|
|
2002-10-21 08:54:27 +00:00
|
|
|
#EOF
|