aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2005-11-30 07:14:44 +0800
committermarcus <marcus@FreeBSD.org>2005-11-30 07:14:44 +0800
commit6559718a5b64f14c35fe95603eaf5d4dbe820ea9 (patch)
tree47cf37f2d4caf287f7afe299d6e0c1e4bf7ca048 /www
parent2a4f498a21614686d6c8dd8ae2c4eaf5d5642404 (diff)
downloadfreebsd-ports-gnome-6559718a5b64f14c35fe95603eaf5d4dbe820ea9.tar.gz
freebsd-ports-gnome-6559718a5b64f14c35fe95603eaf5d4dbe820ea9.tar.zst
freebsd-ports-gnome-6559718a5b64f14c35fe95603eaf5d4dbe820ea9.zip
Convert to USE_GECKO.
Diffstat (limited to 'www')
-rw-r--r--www/mplayer-plugin/Makefile53
1 files changed, 5 insertions, 48 deletions
diff --git a/www/mplayer-plugin/Makefile b/www/mplayer-plugin/Makefile
index b744f1e95ddf..b8c5c8167af2 100644
--- a/www/mplayer-plugin/Makefile
+++ b/www/mplayer-plugin/Makefile
@@ -14,71 +14,28 @@ 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}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
-RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
-.else
-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
-RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
-
-HEADERS_SUFX=
+RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_X_PREFIX= yes
USE_REINPLACE= yes
USE_GMAKE= yes
+USE_GECKO= firefox mozilla seamonkey
PLUGINSFILES= mplayerplug-in.so mplayerplug-in.xpt mplayerplug-in-wmp.so \
mplayerplug-in-qt.so mplayerplug-in-rm.so mplayerplug-in-gmp.so
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+USE_GNOME= gnometarget
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include -DBSD" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
-.if !defined(WITH_MOZILLA)
-HEADERS_SUFX=
-.else
-.if ${WITH_MOZILLA}=="mozilla"
-HEADERS_SUFX=
-.else
-.if ${WITH_MOZILLA}=="mozilla-devel"
-HEADERS_SUFX= -devel
-.else
-HEADERS_SUFX=
-.endif
-.endif
-.endif
-
.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-.if defined(WITH_MOZILLA)
-.if ${WITH_MOZILLA}=="mozilla-devel"
-USE_GCC= 3.4
-.endif
-.endif
-.endif
-
-pre-everything::
- @${ECHO_MSG} ""
- @${ECHO_MSG} " By default this port uses www/firefox for Gecko support, but you can"
- @${ECHO_MSG} " change this by defining WITH_MOZILLA to one of the following values:"
- @${ECHO_MSG}
- @${ECHO_MSG} " mozilla "
- @${ECHO_MSG} " mozilla-devel "
- @${ECHO_MSG} ""
+.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk"
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|make|${GMAKE}|g' \
${WRKSRC}/Makefile.in
-.if !defined(WITH_MOZILLA) || ${WITH_MOZILLA}=="firefox"
- @${REINPLACE_CMD} -e 's|mozilla-|firefox-|g' ${WRKSRC}/configure
-.else
- @${REINPLACE_CMD} -e 's|mozilla-plugin|mozilla-plugin${HEADERS_SUFX}|g' \
- ${WRKSRC}/configure
-.endif
+ @${REINPLACE_CMD} -e 's|mozilla-|${GECKO}-|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
${WRKSRC}/Source/plugin-setup.cpp