ports/72170: [PATH] www/mozilla-bonobo - build also with firefox

Franz Klammer klammer at webonaut.com
Wed Sep 29 14:40:21 UTC 2004


>Number:         72170
>Category:       ports
>Synopsis:       [PATH] www/mozilla-bonobo - build also with firefox
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 29 14:40:20 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Franz Klammer
>Release:        FreeBSD 5.3-BETA6 i386
>Organization:
>Environment:


System: FreeBSD 5.3-BETA6 #41: Mon Sep 27 11:28:13 CEST 2004
    root at ds9.webonaut.com:/usr/obj/usr/src/sys/DS9



>Description:


let mozillo-bonobo build also with firefox as mplayerplug-in can.
tested with 0.9.3 but should also work with 1.0.

unfortunately every file is recognized as binary and therefore 
(currently?) mozilla-bonobo will not be used by any files types.

but i guess that has something to do with the new gnome-2.8 
mime handling.



>How-To-Repeat:





>Fix:


--- mozilla-bonobo-firefox.diff begins here ---
diff -Nur mozilla-bonobo.orig/Makefile mozilla-bonobo/Makefile
--- mozilla-bonobo.orig/Makefile	Wed Sep 29 12:43:14 2004
+++ mozilla-bonobo/Makefile	Wed Sep 29 13:43:04 2004
@@ -15,22 +15,21 @@
 MAINTAINER=		jylefort at brutele.be
 COMMENT=		A Netscape/Mozilla plugin using Bonobo controls to display files
 
-BUILD_DEPENDS=		${X11BASE}/lib/${MOZILLA}/components/libwidget_gtk2.so:${PORTSDIR}/www/${MOZILLA}
-RUN_DEPENDS=		${X11BASE}/lib/${MOZILLA}/components/libwidget_gtk2.so:${PORTSDIR}/www/${MOZILLA}
+BUILD_DEPENDS=		${DEPENDS_DIR}:${PORTSDIR}/www/${MOZILLA}
+RUN_DEPENDS=		${DEPENDS_DIR}:${PORTSDIR}/www/${MOZILLA}
 
 MOZILLA=		mozilla
 HEADERS_SUFX=
+DEPENDS_DIR=		${X11BASE}/lib/${MOZILLA}/components/libwidget_gtk2.so
 
-.if !defined(WITH_MOZILLA)
-MOZILLA=		mozilla
-HEADERS_SUFX=
-.else
+.if defined(WITH_MOZILLA)
 .if ${WITH_MOZILLA}=="mozilla-devel" || ${WITH_MOZILLA}=="mozilla-devel-gtk2"
 MOZILLA=		mozilla-devel
 HEADERS_SUFX=		-devel
-.else
-MOZILLA=		mozilla
+.elif ${WITH_MOZILLA}=="firefox"
+MOZILLA=		firefox
 HEADERS_SUFX=
+DEPENDS_DIR=		${X11BASE}/lib/${MOZILLA}/lib/pkgconfig/firefox-gtkmozembed.pc
 .endif
 .endif
 
@@ -40,14 +39,21 @@
 USE_REINPLACE=		yes
 
 CONFIGURE_ARGS=		--with-plugin-install-dir="${PREFIX}/lib/browser_plugins" \
-			--with-mozilla-include-dir="${X11BASE}/include/mozilla${HEADERS_SUFX}"
+
+.if ${MOZILLA} != "firefox"
+CONFIGURE_ARGS+=	--with-mozilla-include-dir="${X11BASE}/include/mozilla${HEADERS_SUFX}"
+.else
+CONFIGURE_ENV=  	PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${X11BASE}/lib/${MOZILLA}/lib/pkgconfig
+.endif
+
 
 pre-everything::
 	@${ECHO_MSG} ""
 	@${ECHO_MSG} " By default mozilla-bonobo uses www/mozilla for html rendering, but you can"
 	@${ECHO_MSG} " change this by defining WITH_MOZILLA to one of the following values:"
 	@${ECHO_MSG} ""
-	@${ECHO_MSG} "  mozilla-devel "
+	@${ECHO_MSG} "  mozilla-devel"
+	@${ECHO_MSG} "  firefox"
 	@${ECHO_MSG} ""
 
 post-patch:
@@ -57,6 +63,12 @@
 		 s|INSTALL\\|\\| ; \
 		 s|TODO\\|TODO| ; \
 		 s|ABOUT-NLS||' ${WRKSRC}/Makefile.in
+.if ${MOZILLA}=="firefox"
+	@${REINPLACE_CMD} -e \
+		's|mozilla-plugin|firefox-plugin|g ; \
+		 s|mozilla-nspr|firefox-nspr|g' \
+		${WRKSRC}/configure
+.endif
 .if defined(NOPORTDOCS)
 	@${REINPLACE_CMD} -e \
 		's|\$$(libmozilla_bonobodoc_DATA)|| ; \
--- mozilla-bonobo-firefox.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list