1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/www/firefox35/Makefile
Alan Eldridge ce7094e451 The problem wasn't the patch, it was third party font ports. The patch has
been restored, extra knobs have added, and extensive diagnostics have been
added. PLEASE upgrade to this version.

Approved by:	kris (part of phoenix upgrade)
2002-12-14 22:49:59 +00:00

180 lines
5.1 KiB
Makefile

# ex:ts=8 -*-mode: makefile-*-
#
# New ports collection makefile for: phoenix
# Date created: 2002/10/21
# Whom: Alan Eldridge <alane@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= phoenix
PORTVERSION= 0.5
PORTREVISION= 2
CATEGORIES= www # pita
MASTER_SITES= ${MASTER_SITE_LOCAL} ${BSD_WEBDIR}
MASTER_SITE_SUBDIR= alane
MAINTAINER= phoenix@freebsd.org # alane@fbsd and trevor@fbsd
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
mng.1:${PORTSDIR}/graphics/libmng \
freetype.9:${PORTSDIR}/print/freetype2 \
IDL.2:${PORTSDIR}/devel/ORBit \
iconv.3:${PORTSDIR}/converters/libiconv
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
freetype-config:${PORTSDIR}/print/freetype2
BSD_WEBDIR=http://people.freebsd.org/~${MASTER_SITE_SUBDIR}/
USE_X_PREFIX= yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_PERL5= yes
USE_REINPLACE= yes
HAS_CONFIGURE= yes
USE_GNOMENG= yes
USE_GNOME= gtk12 orbit
NO_MTREE= yes
WRKSRC= ${WRKDIR}/mozilla
LOCAL_SUBDIR= lib/${PORTNAME}
LOCAL_PREFIX= ${PREFIX}/${LOCAL_SUBDIR}
JREDIR= ${LOCALBASE}/jdk1.3.1/jre
MOZVER= 1.3a
PLUGINSDIR= ${LOCAL_PREFIX}/lib/mozilla-${MOZVER}/plugins/
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
.undef NO_IGNORE
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 issued the command 'use.perl port'"
.endif # ${PERL_LEVEL} < 500601
SORT?=/usr/bin/sort
PLIST=${WRKDIR}/plist
.if defined(WITH_DEBUG)
WITH_LOGGING= yes
WITHOUT_OPTIMIZE= yes
CONFIGURE_ENV+= WITH_DEBUG=yes
.endif # defined(WITH_DEBUG)
.if !defined(WITHOUT_OPTIMIZE)
CFLAGS+= -O2
.endif # defined(WITH_OPTIMIZE)
.if defined(WITH_LOGGING)
CONFIGURE_ENV+= WITH_LOGGING=yes
.endif # defined(WITH_LOGGING)
.if defined(WITHOUT_XFT)
CONFIGURE_ENV+= WITHOUT_XFT=yes
.else
LIB_DEPENDS+= Xft2.2:${PORTSDIR}/x11-fonts/Xft
.endif # !defined(WITHOUT_XFT)
# check for known bad fonts
.if exists(${X11BASE}/lib/X11/fonts/lfpfonts-var/fonts.dir)
BAD_FONTS=yes
.endif # exists(${X11BASE}/lib/X11/fonts/lfpfonts-var/fonts.dir)
.if exists(${X11BASE}/lib/X11/fonts/lfpfonts-fix/fonts.dir)
BAD_FONTS=yes
.endif # exists(${X11BASE}/lib/X11/fonts/lfpfonts-var/fonts.dir)
.if defined(BAD_FONTS) && !defined(WITHOUT_XFT)
.undef NO_IGNORE
BROKEN= "You have X fonts installed (lfpfonts*) that cause breakage unless"
BROKEN+="WITHOUT_XFT is set, which turns off AntiAliasing. Blease either"
BROKEN+="uninstall the fonts or restart the make with 'make -DWITHOUT_XFT'."
BROKEN+="There may be other third party font packages that also cause this"
BROKEN+="breakage; they will be tested for as they are identified. If you"
BROKEN+="find a font port that verifiably causes this breakage, please"
BROKEN+="let us know by mailing ${MAINTAINER}. Thank you."
BROKEN+="NOTE: The Microsoft webfonts port is known to be safe."
.endif # defined(BAD_FONTS) && !defined(WITHOUT_XFT)
CPPFLAGS+= -I${X11BASE}/include
CFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= -L${X11BASE}/lib
LIBS+= ${PTHREAD_LIBS}
pre-extract::
@${ECHO_MSG}
@${ECHO_MSG} "Extracting source (this takes a while) ..."
@${ECHO_MSG}
post-extract::
@${SED} -e 's|@CPPFLAGS@|${CPPFLAGS}|' \
-e 's|@CFLAGS@|${CFLAGS}|' \
-e 's|@LDFLAGS@|${LDFLAGS}|' \
-e 's|@LIBS@|${LIBS}|' \
-e 's|@X11BASE@|${X11BASE}|' \
-e 's|@LOCALBASE@|${LOCALBASE}|' \
-e 's|@PREFIX@|${LOCAL_PREFIX}|' \
<${FILESDIR}/mozconfig.in >${WRKSRC}/.mozconfig
# 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
post-build:
${RM} -f ${PLIST}
${TOUCH} ${PLIST}
pre-install:
${RM} -fr ${LOCAL_PREFIX}
link-bins:
${RM} -f ${PREFIX}/bin/phoenix
${LN} -s ${LOCAL_PREFIX}/bin/phoenix \
${PREFIX}/bin/phoenix
${RM} -f ${PREFIX}/bin/phoenix-config
${LN} -s ${LOCAL_PREFIX}/bin/mozilla-config \
${PREFIX}/bin/phoenix-config
link-java:
-${RM} -f ${PLUGINSDIR}/libjavaplugin_oji.so
-${LN} -sf \
${JREDIR}/plugin/i386/ns600/libjavaplugin_oji.so \
${PLUGINSDIR}/libjavaplugin_oji.so
cleanup-install:
${RM} -fr ${LOCAL_PREFIX}/share/idl
${RM} -fr ${LOCAL_PREFIX}/include
cons-plist:
-${RM} -f ${PLIST}
${ECHO_CMD} bin/phoenix >>${PLIST}
${ECHO_CMD} bin/phoenix-config >>${PLIST}
cd ${PREFIX}; \
${FIND} ${LOCAL_SUBDIR} ! -type d | ${SORT} >>${PLIST}; \
${FIND} ${LOCAL_SUBDIR} -type d -empty | ${SORT} \
| ${SED} -e "s:^:@exec ${MKDIR} %D/:" -e "s:$$: || true:" \
>> ${PLIST}; \
${FIND} ${LOCAL_SUBDIR} -type d -empty | ${SORT} -r \
| ${SED} -e "s:^:@unexec ${RMDIR} %D/:" -e "s:$$: || true:" \
>> ${PLIST}; \
${FIND} ${LOCAL_SUBDIR} -type d ! -empty | ${SORT} -r \
| ${SED} -e "s:^:@dirrm :" >> ${PLIST}
.PHONY: link-bins link-java cleanup-install cons-plist
.include <bsd.port.post.mk>
# <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>
generate-plist: link-bins cleanup-install cons-plist
#EOF