Add firefox support via WITH_MOZILLA=firefox. Note: this only works for

mplayer-plugin.  Setting WITH_MOZILLA=firefox will not work with the
galeon ports.

PR:		63805
Submitted by:	Stijn Hoop <stijn@win.tue.nl>
This commit is contained in:
Joe Marcus Clarke 2004-03-06 07:33:20 +00:00
parent 59e00ec626
commit d0faef72fd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=103071

View file

@ -14,9 +14,14 @@ MASTER_SITE_SUBDIR= mplayerplug-in
MAINTAINER= marcus@FreeBSD.org
COMMENT= A Mozilla plugin for the MPlayer media player
.if defined(WITH_MOZILLA) && WITH_MOZILLA=="firefox"
BUILD_DEPENDS= ${X11BASE}/lib/firefox/lib/pkgconfig/mozilla-plugin.pc:${PORTSDIR}/www/firefox
RUN_DEPENDS= ${X11BASE}/lib/firefox/lib/pkgconfig/mozilla-plugin.pc:${PORTSDIR}/www/firefox
.else
BUILD_DEPENDS= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX}
RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer \
${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
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
HEADERS_SUFX=
@ -44,6 +49,9 @@ HEADERS_SUFX= -devel-gtk1
CONFIGURE_ARGS+= --disable-gtk2 \
--enable-gtk1
.else
.if ${WITH_MOZILLA}=="firefox"
CONFIGURE_ENV+= PKG_CONFIG_PATH=${X11BASE}/lib/firefox/lib/pkgconfig
.else
HEADERS_SUFX= -gtk1
CONFIGURE_ARGS+= --disable-gtk2 \
--enable-gtk1
@ -51,12 +59,14 @@ CONFIGURE_ARGS+= --disable-gtk2 \
.endif
.endif
.endif
.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-devel "
@${ECHO_MSG} " mozilla-gtk1 "
@${ECHO_MSG} " mozilla-devel-gtk1 "