2002-10-21 10:54:27 +02:00
|
|
|
# ex:ts=8
|
|
|
|
#
|
|
|
|
# New ports collection makefile for: phoenix
|
|
|
|
# Date created: 2002/10/21
|
2002-11-01 14:09:32 +01:00
|
|
|
# Whom: Alan Eldridge <alane@FreeBSD.org>
|
2002-10-21 10:54:27 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= phoenix
|
2002-10-31 19:02:52 +01:00
|
|
|
PORTVERSION= 0.4
|
2002-11-08 04:11:26 +01:00
|
|
|
PORTREVISION= 6
|
2002-11-04 19:00:16 +01:00
|
|
|
CATEGORIES= www # pita
|
2002-10-21 10:54:27 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
2002-10-21 20:37:12 +02:00
|
|
|
MASTER_SITE_SUBDIR= trevor
|
2002-10-21 10:54:27 +02:00
|
|
|
|
2002-11-07 18:56:33 +01:00
|
|
|
MAINTAINER= phoenix@freebsd.org # alane@fbsd and trevor@fbsd
|
2002-10-21 20:37:12 +02:00
|
|
|
|
2002-10-31 19:14:05 +01:00
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
|
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2002-10-21 20:37:12 +02:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
mng.1:${PORTSDIR}/graphics/libmng \
|
2002-11-01 05:17:51 +01:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
|
|
|
IDL.2:${PORTSDIR}/devel/ORBit \
|
2002-11-07 18:56:33 +01:00
|
|
|
Xft2.2:${PORTSDIR}/x11-fonts/Xft
|
2002-11-01 05:17:51 +01:00
|
|
|
|
2002-10-22 11:26:56 +02:00
|
|
|
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
|
2002-11-01 05:17:51 +01:00
|
|
|
freetype-config:${PORTSDIR}/print/freetype2
|
2002-10-22 11:26:56 +02:00
|
|
|
|
2002-11-01 05:17:51 +01:00
|
|
|
USE_X_PREFIX= yes
|
2002-10-22 11:26:56 +02:00
|
|
|
|
2002-10-21 10:54:27 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2002-11-01 13:41:01 +01:00
|
|
|
USE_PERL5= yes
|
2002-11-01 05:17:51 +01:00
|
|
|
USE_REINPLACE= yes
|
2002-11-01 13:41:01 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2002-11-01 05:17:51 +01:00
|
|
|
|
|
|
|
USE_GNOMENG= yes
|
2002-11-01 13:41:01 +01:00
|
|
|
USE_GNOME= gtk12 orbit
|
2002-11-01 05:17:51 +01:00
|
|
|
|
2002-10-22 13:04:48 +02:00
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
LIBS+= ${PTHREAD_LIBS}
|
2002-11-01 05:17:51 +01:00
|
|
|
|
2002-10-31 19:17:06 +01:00
|
|
|
NO_MTREE= yes
|
2002-10-21 20:37:12 +02:00
|
|
|
WRKSRC= ${WRKDIR}/mozilla
|
2002-11-01 05:17:51 +01:00
|
|
|
LOCAL_PREFIX= ${PREFIX}/lib/${PORTNAME}
|
2002-11-05 13:00:22 +01:00
|
|
|
MAKE_ENV+= XP_UNIX=1
|
2002-11-04 20:31:45 +01:00
|
|
|
MAKE_ARGS+= XP_UNIX=1
|
2002-10-21 20:37:12 +02:00
|
|
|
|
2002-10-21 10:54:27 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2002-10-21 20:37:12 +02:00
|
|
|
|
2002-11-07 18:56:33 +01:00
|
|
|
.if !defined(PERL_LEVEL)
|
2002-11-04 19:00:16 +01:00
|
|
|
perl_major=${PERL_VERSION:C|^([1-9]+).*|\1|}
|
|
|
|
_perl_minor=00${PERL_VERSION:C|^([1-9]+)\.([0-9]+).*|\2|}
|
|
|
|
perl_minor=${_perl_minor:C|^.*(...)|\1|}
|
|
|
|
.if ${perl_minor} >= 100
|
|
|
|
perl_minor=${PERL_VERSION:C|^([1-9]+)\.([0-9][0-9][0-9]).*|\2|}
|
|
|
|
perl_patch=${PERL_VERSION:C|^.*(..)|\1|}
|
|
|
|
.else # ${perl_minor} < 100
|
|
|
|
_perl_patch=0${PERL_VERSION:C|^([1-9]+)\.([0-9]+)\.*|0|}
|
|
|
|
perl_patch=${_perl_patch:C|^.*(..)|\1|}
|
|
|
|
.endif # ${perl_minor} < 100
|
|
|
|
PERL_LEVEL=${perl_major}${perl_minor}${perl_patch}
|
2002-11-07 18:56:33 +01:00
|
|
|
.endif # !defined(PERL_LEVEL)
|
2002-11-01 05:17:51 +01:00
|
|
|
|
2002-11-04 19:00:16 +01:00
|
|
|
SITE_PERL?= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
|
2002-11-01 05:17:51 +01:00
|
|
|
|
2002-10-31 19:09:11 +01:00
|
|
|
.if ${OSVERSION} > 500038
|
2002-11-07 18:56:33 +01:00
|
|
|
|
|
|
|
BROKEN= "on -CURRENT, can only be used with local files. You can run"
|
|
|
|
BROKEN+="make with -DNO_IGNORE to override this message"
|
|
|
|
|
2002-10-31 19:09:11 +01:00
|
|
|
.endif
|
|
|
|
|
2002-11-07 18:56:33 +01:00
|
|
|
.if ${PERL_LEVEL} < 500601
|
|
|
|
.undef NO_IGNORE
|
|
|
|
BROKEN= "right now, we can only support the ports versions of Perl."
|
|
|
|
BROKEN+="We are working on the problem. Sorry for the inconvenience."
|
|
|
|
BROKEN+="If you have installed a Perl port, and are getting this message,"
|
|
|
|
BROKEN+="please make sure you have issued the command 'use.perl port'"
|
|
|
|
|
|
|
|
.endif # ${PERL_LEVEL} < 500601
|
|
|
|
|
|
|
|
pre-extract::
|
|
|
|
@${ECHO_MSG}
|
2002-11-05 13:00:22 +01:00
|
|
|
@${ECHO_MSG} "Extracting source (this takes a while) ..."
|
2002-11-07 18:56:33 +01:00
|
|
|
@${ECHO_MSG}
|
2002-11-05 13:00:22 +01:00
|
|
|
|
2002-11-07 18:56:33 +01:00
|
|
|
post-extract::
|
2002-11-05 13:00:22 +01:00
|
|
|
@${SED} -e 's|@CFLAGS@|${CFLAGS}|' \
|
2002-10-22 13:04:48 +02:00
|
|
|
-e 's|@LIBS@|${LIBS}|' \
|
|
|
|
-e 's|@X11BASE@|${X11BASE}|' \
|
2002-10-21 20:37:12 +02:00
|
|
|
-e 's|@LOCALBASE@|${LOCALBASE}|' \
|
2002-11-01 05:17:51 +01:00
|
|
|
-e 's|@PREFIX@|${LOCAL_PREFIX}|' \
|
2002-10-21 20:37:12 +02:00
|
|
|
<${FILESDIR}/mozconfig.in >${WRKSRC}/.mozconfig
|
2002-11-05 13:00:22 +01:00
|
|
|
@${CAT} ${PKGMESSAGE} 2>/dev/null; sleep 5
|
2002-10-21 20:37:12 +02:00
|
|
|
|
2002-11-01 05:17:51 +01:00
|
|
|
# fix for Xft (thanks to marcus@)
|
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC}/gfx/src/gtk; \
|
|
|
|
${REINPLACE_CMD} -e 's|X11/Xft/Xft\.h|X11/Xft/Xft2.h|g' \
|
|
|
|
nsDrawingSurfaceGTK.cpp nsFontMetricsXft.h
|
|
|
|
|
2002-10-22 11:26:56 +02:00
|
|
|
post-install:
|
2002-11-05 13:00:22 +01:00
|
|
|
@${RM} -f ${PREFIX}/bin/phoenix
|
|
|
|
@${LN} -s ${LOCAL_PREFIX}/bin/phoenix \
|
2002-11-01 05:17:51 +01:00
|
|
|
${PREFIX}/bin/phoenix
|
2002-11-05 13:00:22 +01:00
|
|
|
@${RM} -f ${PREFIX}/bin/phoenix-config
|
|
|
|
@${LN} -s ${LOCAL_PREFIX}/bin/mozilla-config \
|
2002-11-01 05:17:51 +01:00
|
|
|
${PREFIX}/bin/phoenix-config
|
2002-11-05 13:00:22 +01:00
|
|
|
@${CAT} ${PKGMESSAGE} 2>/dev/null; sleep 5
|
2002-11-07 18:56:33 +01:00
|
|
|
@${RM} -fr ${LOCAL_PREFIX}/share
|
|
|
|
@${RM} -fr ${LOCAL_PREFIX}/include
|
2002-10-22 11:26:56 +02:00
|
|
|
|
2002-10-21 10:54:27 +02:00
|
|
|
.include <bsd.port.post.mk>
|
|
|
|
|
|
|
|
#EOF
|