2002-12-10 08:57:05 +00:00
|
|
|
# ex:ts=8 -*-mode: makefile-*-
|
2002-10-21 08:54:27 +00:00
|
|
|
#
|
|
|
|
# New ports collection makefile for: phoenix
|
|
|
|
# Date created: 2002/10/21
|
2002-11-01 13:09:32 +00:00
|
|
|
# Whom: Alan Eldridge <alane@FreeBSD.org>
|
2002-10-21 08:54:27 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= phoenix
|
2002-12-13 09:41:38 +00:00
|
|
|
PORTVERSION= 0.5
|
2002-12-18 05:02:34 +00:00
|
|
|
PORTREVISION= 4
|
2002-11-04 18:00:16 +00:00
|
|
|
CATEGORIES= www # pita
|
2002-12-13 09:41:38 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} ${BSD_WEBDIR}
|
|
|
|
MASTER_SITE_SUBDIR= alane
|
2002-10-21 08:54:27 +00:00
|
|
|
|
2002-11-07 17:56:33 +00:00
|
|
|
MAINTAINER= phoenix@freebsd.org # alane@fbsd and trevor@fbsd
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Phoenix is a fast, low-overhead browser from the Mozilla 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 \
|
|
|
|
IDL.2:${PORTSDIR}/devel/ORBit \
|
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
|
|
|
|
2002-12-10 08:57:05 +00:00
|
|
|
BSD_WEBDIR=http://people.freebsd.org/~${MASTER_SITE_SUBDIR}/
|
|
|
|
|
2002-11-01 04:17:51 +00:00
|
|
|
USE_X_PREFIX= yes
|
2002-10-22 09:26:56 +00:00
|
|
|
|
2002-10-21 08:54:27 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2002-11-01 12:41:01 +00:00
|
|
|
USE_PERL5= yes
|
2002-11-01 04:17:51 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-11-01 12:41:01 +00:00
|
|
|
HAS_CONFIGURE= yes
|
2002-11-01 04:17:51 +00:00
|
|
|
|
2002-11-01 12:41:01 +00:00
|
|
|
USE_GNOME= gtk12 orbit
|
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
|
2002-12-13 09:41:38 +00:00
|
|
|
MOZVER= 1.3a
|
2002-12-10 08:57:05 +00:00
|
|
|
PLUGINSDIR= ${LOCAL_PREFIX}/lib/mozilla-${MOZVER}/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
|
|
|
|
2002-11-07 17:56:33 +00:00
|
|
|
.if ${PERL_LEVEL} < 500601
|
|
|
|
.undef NO_IGNORE
|
2002-12-15 17:37:35 +00:00
|
|
|
BROKEN= Phoenix 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\'.
|
2002-11-07 17:56:33 +00:00
|
|
|
.endif # ${PERL_LEVEL} < 500601
|
|
|
|
|
2002-12-01 21:37:33 +00:00
|
|
|
SORT?=/usr/bin/sort
|
|
|
|
PLIST=${WRKDIR}/plist
|
|
|
|
|
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
|
|
|
WITHOUT_OPTIMIZE= yes
|
|
|
|
CONFIGURE_ENV+= WITH_DEBUG=yes
|
|
|
|
.endif # defined(WITH_DEBUG)
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_OPTIMIZE)
|
|
|
|
CFLAGS+= -O2
|
|
|
|
.endif # defined(WITH_OPTIMIZE)
|
|
|
|
|
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)
|
|
|
|
|
2002-12-13 09:41:38 +00:00
|
|
|
CPPFLAGS+= -I${X11BASE}/include
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${X11BASE}/lib
|
|
|
|
LIBS+= ${PTHREAD_LIBS}
|
|
|
|
|
2002-12-18 05:02:34 +00:00
|
|
|
EXTRA_SCRIPTS= phoenix.rb
|
|
|
|
|
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}|' \
|
2002-10-21 18:37:12 +00:00
|
|
|
<${FILESDIR}/mozconfig.in >${WRKSRC}/.mozconfig
|
|
|
|
|
2002-12-10 08:57:05 +00:00
|
|
|
post-build:
|
2002-12-01 21:37:33 +00:00
|
|
|
${RM} -f ${PLIST}
|
|
|
|
${TOUCH} ${PLIST}
|
|
|
|
|
2002-12-10 08:57:05 +00:00
|
|
|
pre-install:
|
|
|
|
${RM} -fr ${LOCAL_PREFIX}
|
|
|
|
|
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:
|
|
|
|
${RM} -f ${PREFIX}/bin/phoenix
|
|
|
|
${LN} -s ${LOCAL_PREFIX}/bin/phoenix \
|
2002-11-01 04:17:51 +00:00
|
|
|
${PREFIX}/bin/phoenix
|
2002-12-10 08:57:05 +00:00
|
|
|
${RM} -f ${PREFIX}/bin/phoenix-config
|
|
|
|
${LN} -s ${LOCAL_PREFIX}/bin/mozilla-config \
|
2002-11-01 04:17:51 +00:00
|
|
|
${PREFIX}/bin/phoenix-config
|
2002-12-10 08:57:05 +00:00
|
|
|
|
2002-12-18 05:02:34 +00:00
|
|
|
# not used because of undefined symbol errors
|
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 \
|
|
|
|
${JREDIR}/plugin/i386/ns600/libjavaplugin_oji.so \
|
|
|
|
${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}
|
|
|
|
${ECHO_CMD} bin/phoenix >>${PLIST}
|
|
|
|
${ECHO_CMD} bin/phoenix-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
|
|
|
|
# target. This is a limitation of the make(1) program itself.
|
|
|
|
# </alane>
|
2002-12-18 05:02:34 +00:00
|
|
|
generate-plist: install-extra link-bins cleanup-install cons-plist
|
2002-12-10 08:57:05 +00:00
|
|
|
|
2002-10-21 08:54:27 +00:00
|
|
|
#EOF
|