summaryrefslogtreecommitdiff
path: root/www/mozilla-devel/Makefile
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-04-24 18:02:42 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-04-24 18:02:42 +0000
commit5fbc772e0e5fcad7f9e31f38dc54d262040b02ba (patch)
tree90ec482d52afb19f7caec52fc4657c217b119866 /www/mozilla-devel/Makefile
parentBuild cervisia on 5.x. The sys/wait.h breakage has been fixed before (diff)
Make sure we add -devel to each of the dependencies in the Mozilla
pkg-config files.
Notes
Notes: svn path=/head/; revision=79596
Diffstat (limited to 'www/mozilla-devel/Makefile')
-rw-r--r--www/mozilla-devel/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/www/mozilla-devel/Makefile b/www/mozilla-devel/Makefile
index 19cafdbf99ee..686c9d049c82 100644
--- a/www/mozilla-devel/Makefile
+++ b/www/mozilla-devel/Makefile
@@ -30,6 +30,7 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
WRKSRC= ${WRKDIR}/${PORTNAME}
MOZILLA?= mozilla-devel
+MOZ_SUFX= -devel
.if defined(WITH_GTK2)
PKGNAMESUFFIX= -gtk2
@@ -41,7 +42,7 @@ USE_GNOME= gtk12 orbit
.if !defined(WITHOUT_XFT)
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/Xft
.if exists(${X11BASE}/lib/X11/fonts/mozilla/fonts.dir)
-BROKEN= Mozilla-devel and Xft2 render the mozilla-fonts \
+BROKEN= Mozilla${MOZ_SUFX} and Xft2 render the mozilla-fonts \
illegibly. Please remove the mozilla-fonts package.
.endif
.endif
@@ -136,7 +137,7 @@ CONFIGURE_ARGS+= --disable-composer
.if defined(WITH_GTK2)
CONFIGURE_ARGS+= --enable-default-toolkit=gtk2
PKGCONFIG_FILES= mozilla-gtkmozembed mozilla-js mozilla-xpcom \
- mozilla-nspr mozilla-nss
+ mozilla-nspr mozilla-nss mozilla-plugin
EXTRA_PATCHES= ${FILESDIR}/xim_dekita2.patch
.else
CONFIGURE_ARGS+= --enable-default-toolkit=gtk
@@ -193,10 +194,17 @@ post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/build/unix/run-mozilla.sh
@${REINPLACE_CMD} -e 's|%%MOZILLA%%|${MOZILLA}|g' \
- -e 's|%%HEADERS_SUFX%%|-devel|g' \
+ -e 's|%%HEADERS_SUFX%%|${MOZ_SUFX}|g' \
${WRKSRC}/config/autoconf.mk.in
@${FIND} ${WRKSRC}/other-licenses/libical -name "*.c" | ${XARGS} \
${REINPLACE_CMD} 's|<malloc.h>|<stdlib.h>|g'
+.if defined(WITH_GTK2)
+ @for pcfile in ${PKGCONFIG_FILES}; do \
+ ${REINPLACE_CMD} -e 's|mozilla-xpcom|mozilla-xpcom${MOZ_SUFX}|g ; \
+ s|mozilla-nspr|mozilla-nspr${MOZ_SUFX}|g' \
+ ${WRKSRC}/build/unix/$${pcfile}.pc.in; \
+ done
+.endif
post-build:
${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%MOZILLA%%|${MOZILLA}|g" \
@@ -226,7 +234,7 @@ pre-install:
${ECHO_CMD} @dirrm lib/${MOZILLA} >> ${PLIST}
.if defined(WITH_GTK2)
for pcfile in ${PKGCONFIG_FILES}; do \
- ${ECHO_CMD} libdata/pkgconfig/$${pcfile}-devel.pc >> ${PLIST} ; \
+ ${ECHO_CMD} libdata/pkgconfig/$${pcfile}${MOZ_SUFX}.pc >> ${PLIST} ; \
done
.endif
@@ -249,7 +257,7 @@ do-install:
.if defined(WITH_GTK2)
for pcfile in ${PKGCONFIG_FILES}; do \
${INSTALL_DATA} ${WRKSRC}/build/unix/$${pcfile}.pc \
- ${PREFIX}/libdata/pkgconfig/$${pcfile}-devel.pc ; \
+ ${PREFIX}/libdata/pkgconfig/$${pcfile}${MOZ_SUFX}.pc ; \
done
.endif