diff options
author | sem <sem@FreeBSD.org> | 2004-09-02 21:57:27 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2004-09-02 21:57:27 +0800 |
commit | d1098b832a927a364b4c1e61d0f58e138ca89966 (patch) | |
tree | e09a960229738f3b20f0ef59da5226d5ad35da17 /www | |
parent | ca0a354b2ac046e9d859499be989f1361b30cdd3 (diff) | |
download | freebsd-ports-gnome-d1098b832a927a364b4c1e61d0f58e138ca89966.tar.gz freebsd-ports-gnome-d1098b832a927a364b4c1e61d0f58e138ca89966.tar.zst freebsd-ports-gnome-d1098b832a927a364b4c1e61d0f58e138ca89966.zip |
add firefox support
PR: ports/71174
Submitted by: maintainer
Diffstat (limited to 'www')
-rw-r--r-- | www/kazehakase/Makefile | 60 | ||||
-rw-r--r-- | www/kazehakase/files/patch-configure | 10 | ||||
-rw-r--r-- | www/kazehakase/files/patch-src::mozilla::Makefile.in | 10 |
3 files changed, 60 insertions, 20 deletions
diff --git a/www/kazehakase/Makefile b/www/kazehakase/Makefile index fe9f5b33db6a..7971f4d7bde8 100644 --- a/www/kazehakase/Makefile +++ b/www/kazehakase/Makefile @@ -15,23 +15,12 @@ MASTER_SITE_SUBDIR= ${PORTNAME}/11115/ MAINTAINER= ahze@ahze.net COMMENT= Kazehakase is a browser with gecko engine like Epiphany or Galeon -BUILD_DEPENDS= ${X11BASE}/lib/${MOZILLA}/components/libwidget_gtk2.so:${PORTSDIR}/www/${MOZILLA} -RUN_DEPENDS= ${X11BASE}/lib/${MOZILLA}/components/libwidget_gtk2.so:${PORTSDIR}/www/${MOZILLA} - -MOZILLA= mozilla -HEADERS_SUFX= - -.if !defined(WITH_MOZILLA) -MOZILLA= mozilla -HEADERS_SUFX= -.else -.if ${WITH_MOZILLA}=="mozilla-devel" || ${WITH_MOZILLA}=="mozilla-devel-gtk2" -MOZILLA= mozilla-devel -HEADERS_SUFX= -devel +.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox" +BUILD_DEPENDS= ${X11BASE}/lib/firefox/lib/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox +RUN_DEPENDS= ${X11BASE}/lib/firefox/lib/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox .else -MOZILLA= mozilla -HEADERS_SUFX= -.endif +BUILD_DEPENDS= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX} +RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX} .endif USE_LIBTOOL_VER=13 @@ -44,19 +33,35 @@ USE_REINPLACE= yes USE_RUBY= yes .endif -CONFIGURE_ARGS= --with-mozilla-includes="${X11BASE}/include/mozilla${HEADERS_SUFX}" \ - --with-mozilla-libs="${X11BASE}/lib/${MOZILLA}" \ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" OPTIONS= MIGEMO "Enable Migemo (Japanese incremental search)" Off \ - ESTRAIER "Enable a full-text search system (Japanese)" Off \ + ESTRAIER "Enable a full-text search system" Off \ IMAGEMAGICK "Enable Thumbnail support (EXPERIMENTAL!)" Off FLASHPLAYER= ${LOCALBASE}/lib/libflashplayer.so.1 .include <bsd.port.pre.mk> +.if !defined(WITH_MOZILLA) +WITH_MOZILLA= mozilla +.else +.if ${WITH_MOZILLA}=="mozilla" +HEADERS_SUFX= +.else +.if ${WITH_MOZILLA}=="mozilla-devel" +HEADERS_SUFX= -devel +.else +.if ${WITH_MOZILLA}=="firefox" +CONFIGURE_ENV+= PKG_CONFIG_PATH="${X11BASE}/lib/firefox/lib/pkgconfig" +.else +HEADERS_SUFX= +.endif +.endif +.endif +.endif + .if exists(${LOCALBASE}/bin/migemo) .if exists(${RUBY_SITEARCHLIBDIR}/uconv.so) WITH_MIGEMO= yes @@ -88,16 +93,31 @@ RUN_DEPENDS+= estxview:${PORTSDIR}/japanese/estraier RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick .endif +pre-everything:: + @${ECHO_MSG} "" + @${ECHO_MSG} " By default this port uses www/mozilla for Gecko support, but you can" + @${ECHO_MSG} " change this by defining WITH_MOZILLA to one of the following values:" + @${ECHO_MSG} + @${ECHO_MSG} " firefox " + @${ECHO_MSG} " mozilla " + @${ECHO_MSG} " mozilla-devel " + @${ECHO_MSG} "" + @${ECHO_MSG} " Currently you are using ${WITH_MOZILLA}" + post-patch: +.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox" + @${REINPLACE_CMD} -e 's|mozilla-|firefox-|g' ${WRKSRC}/configure +.else @${REINPLACE_CMD} -e 's|mozilla-gtkmozembed|mozilla-gtkmozembed${HEADERS_SUFX}|g' \ ${WRKSRC}/configure +.endif @${REINPLACE_CMD} -e 's|regex.h|gnuregex.h|' \ ${WRKSRC}/src/prefs_ui/prefs_location_entry.c post-configure: @${REINPLACE_CMD} -e 's|%%FLASHPLAYER%%|${FLASHPLAYER}|; \ s|%%PREFIX%%|${PREFIX}|; s|%%X11BASE%%|${X11BASE}|; \ - s|%%LOCALBASE%%|${LOCALBASE}|; s|%%MOZILLA%%|${MOZILLA}|' \ + s|%%LOCALBASE%%|${LOCALBASE}|' \ ${WRKSRC}/src/kazehakase post-install: diff --git a/www/kazehakase/files/patch-configure b/www/kazehakase/files/patch-configure new file mode 100644 index 000000000000..a9320fd857a0 --- /dev/null +++ b/www/kazehakase/files/patch-configure @@ -0,0 +1,10 @@ +--- configure.orig Mon Aug 30 22:51:37 2004 ++++ configure Mon Aug 30 22:51:51 2004 +@@ -19396,6 +19396,7 @@ + 1.8a2) MOZILLA_SNAPSHOT=16 ;; + 1.8a3) MOZILLA_SNAPSHOT=16 ;; + trunk) MOZILLA_SNAPSHOT=16 ;; ++ 0.9.3) MOZILLA_SNAPSHOT=15 ;; + *) { { echo "$as_me:$LINENO: error: + ***************************************************************************** + Kazehakase can be built using Mozilla 1.4, 1.5a, 1.5b, 1.5, 1.5.1 or diff --git a/www/kazehakase/files/patch-src::mozilla::Makefile.in b/www/kazehakase/files/patch-src::mozilla::Makefile.in new file mode 100644 index 000000000000..eed965bf6162 --- /dev/null +++ b/www/kazehakase/files/patch-src::mozilla::Makefile.in @@ -0,0 +1,10 @@ +--- src/mozilla/Makefile.in.orig Mon Aug 30 22:37:31 2004 ++++ src/mozilla/Makefile.in Mon Aug 30 22:38:03 2004 +@@ -147,6 +147,7 @@ + -I$(MOZILLA_INCLUDE_ROOT)/necko2 \ + -I$(MOZILLA_INCLUDE_ROOT)/nkcache \ + -I$(MOZILLA_INCLUDE_ROOT)/oji \ ++ -I$(MOZILLA_INCLUDE_ROOT)/passwordmgr \ + -I$(MOZILLA_INCLUDE_ROOT)/pref \ + -I$(MOZILLA_INCLUDE_ROOT)/progressDlg \ + -I$(MOZILLA_INCLUDE_ROOT)/sidebar \ |