From 7ed5b24a01be1a398b016b8109ba34bc1f6e3a8b Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Tue, 22 Oct 2002 03:44:18 +0000 Subject: Add support for the new Mozilla ports. By default, Galeon will build against www/mozilla. However, you can change this by specifying a WITH_MOZILLA parameter, and setting it to one of the following values: mozilla-devel mozilla-embedded[-devel|-vendor] mozilla-vendor Note, this version of Galon should also use the new universal plugins directory. --- www/galeon2/Makefile | 42 ++++++++++++++++++++++-------------------- www/galeon2/files/patch-ab | 13 ++++++------- 2 files changed, 28 insertions(+), 27 deletions(-) (limited to 'www/galeon2') diff --git a/www/galeon2/Makefile b/www/galeon2/Makefile index 58d42107e4e7..9d12785b377e 100644 --- a/www/galeon2/Makefile +++ b/www/galeon2/Makefile @@ -18,21 +18,25 @@ BUILD_DEPENDS= ${X11BASE}/include/mozilla${HEADERS_SUFX}/gtkembedmoz/gtkmozembed LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv RUN_DEPENDS= ${X11BASE}/lib/${MOZILLA}/libgtkembedmoz.so:${PORTSDIR}/www/${MOZILLA} -WITH_FULL_MOZILLA= "Problems with SSL, general performance, and usability" +MOZ_CONFIGURE_ARGS= -.if defined(WITH_MOZILLA_DEVEL) -HEADERS_SUFX= -devel -.if !defined(WITH_FULL_MOZILLA) -MOZILLA= mozilla-embedded-devel +.if !defined(WITH_MOZILLA) +MOZILLA= mozilla +HEADERS_SUFX= .else -MOZILLA= mozilla-devel -.endif +.if ${WITH_MOZILLA}=="mozilla-vendor" || ${WITH_MOZILLA}=="mozilla-embedded-vendor" +MOZILLA= ${WITH_MOZILLA} +HEADERS_SUFX= -vendor +MOZ_CONFIGURE_ARGS= --with-mozilla-snapshot="1.0" .else -HEADERS_SUFX= -.if !defined(WITH_FULL_MOZILLA) -MOZILLA= mozilla-embedded +.if ${WITH_MOZILLA}=="mozilla-devel" || ${WITH_MOZILLA}=="mozilla-embedded-devel" +MOZILLA= ${WITH_MOZILLA} +HEADERS_SUFX= -devel +MOZ_CONFIGURE_ARGS= --with-mozilla-snapshot="trunk" .else MOZILLA= mozilla +HEADERS_SUFX= +.endif .endif .endif @@ -43,15 +47,12 @@ USE_LIBTOOL= yes USE_REINPLACE= yes CONFIGURE_ARGS= --with-mozilla-includes="${X11BASE}/include/mozilla${HEADERS_SUFX}" \ --with-mozilla-libs="${X11BASE}/lib/${MOZILLA}" \ - --enable-nautilus-view + --enable-nautilus-view \ + ${MOZ_CONFIGURE_ARGS} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include -D_REENTRANT ${PTHREAD_CFLAGS}" \ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL} -.if !defined(WITH_MOZILLA_DEVEL) -CONFIGURE_ARGS+= --with-mozilla-snapshot="1.0" -.endif - MAN1= galeon.1 .include @@ -63,13 +64,14 @@ CONFIGURE_ARGS+= --disable-werror .endif post-extract: -.if !defined(WITH_FULL_MOZILLA) @${ECHO_MSG} - @${ECHO_MSG} " By default the port uses mozilla-embedded for html rendering, but if you are" - @${ECHO_MSG} " planning to use both Mozilla and Galeon you can instruct it to use mozilla by" - @${ECHO_MSG} " defining \"WITH_FULL_MOZILLA\"." + @${ECHO_MSG} " By default the port uses www/mozilla for html rendering, but you can change" + @${ECHO_MSG} " this by defining WITH_MOZILLA to one of the following values:" + @${ECHO_MSG} + @${ECHO_MSG} " mozilla-devel " + @${ECHO_MSG} " mozilla-embedded[-devel|-vendor] " + @${ECHO_MSG} " mozilla-vendor " @${ECHO_MSG} -.endif post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ diff --git a/www/galeon2/files/patch-ab b/www/galeon2/files/patch-ab index 528909f74928..25b7c37b3317 100644 --- a/www/galeon2/files/patch-ab +++ b/www/galeon2/files/patch-ab @@ -1,8 +1,5 @@ - -$FreeBSD$ - ---- src/galeon.in.orig Thu Dec 27 23:49:08 2001 -+++ src/galeon.in Fri Dec 28 10:58:16 2001 +--- src/galeon.in.orig Thu Dec 27 19:13:42 2001 ++++ src/galeon.in Mon Oct 21 23:28:37 2002 @@ -4,18 +4,14 @@ if test -n "$MOZILLA_FIVE_HOME"; then @@ -29,7 +26,7 @@ $FreeBSD$ else echo "Cannot find mozilla installation directory. Please set MOZILLA_FIVE_HOME to your mozilla directory" exit -@@ -27,16 +23,9 @@ +@@ -27,16 +23,12 @@ MOZILLA_FIVE_HOME=$MOZILLA_HOME export MOZILLA_FIVE_HOME @@ -39,7 +36,9 @@ $FreeBSD$ - export LD_ASSUME_KERNEL=2.2.5 - fi -fi -- ++MOZ_PLUGIN_PATH=%%PREFIX%%/lib/browser_plugins ++export MOZ_PLUGIN_PATH + if [ -f ./galeon-bin ]; then exec ./galeon-bin "$@" else -- cgit v1.2.3