diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-11-17 02:31:34 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-11-17 02:31:34 +0000 |
commit | b9b1cb2250f77193d33f9f0c5072759bdf6a4fde (patch) | |
tree | fcf9410602f6b95879f62f84b8aa0023566020a8 /multimedia/mplayer-plugin-firefox/Makefile.common | |
parent | a37b1ba53e9254a632fcf0573f2e810a18add78c (diff) | |
download | pkgsrc-b9b1cb2250f77193d33f9f0c5072759bdf6a4fde.tar.gz |
Initial import of mplayer-plugin-firefox-2.70.
Plugin for Gecko based browsers that uses mplayer to play videos from
websites.
Diffstat (limited to 'multimedia/mplayer-plugin-firefox/Makefile.common')
-rw-r--r-- | multimedia/mplayer-plugin-firefox/Makefile.common | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/multimedia/mplayer-plugin-firefox/Makefile.common b/multimedia/mplayer-plugin-firefox/Makefile.common new file mode 100644 index 00000000000..7cbbced62d2 --- /dev/null +++ b/multimedia/mplayer-plugin-firefox/Makefile.common @@ -0,0 +1,71 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2004/11/17 02:31:34 xtraeme Exp $ +# + +DISTNAME= mplayerplug-in-2.70 +PKGNAME= mplayer-plugin-${BROWSER}-2.70 +CATEGORIES= multimedia +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mplayerplug-in/} + +MAINTAINER= xtraeme@NetBSD.org +HOMEPAGE= http://mplayerplug-in.sourceforge.net/ +COMMENT= Mplayer plug-in for ${BROWSER} + +DEPENDS+= mplayer>=0.92:../../multimedia/mplayer + +WRKSRC= ${WRKDIR}/mplayerplug-in +GNU_CONFIGURE= yes +USE_BUILDLINK3= yes +USE_GNU_TOOLS+= make +USE_LANGUAGES+= c++ +USE_PKGINSTALL= yes +USE_X11= yes + +FILESDIR= ${.CURDIR}/../../multimedia/mplayer-plugin-firefox/files +PATCHDIR= ${.CURDIR}/../../multimedia/mplayer-plugin-firefox/patches +DISTINFO_FILE= ${.CURDIR}/../../multimedia/mplayer-plugin-firefox/distinfo +PLIST_SRC= ${.CURDIR}/../../multimedia/mplayer-plugin-firefox/PLIST +DESCR_SRC= ${.CURDIR}/../../multimedia/mplayer-plugin-firefox/DESCR + +PLIST_SUBST+= BROWSER=${BROWSER} + +post-extract: +.for f in nspr xpcom plugin + @${SED} \ + -e "s|@PREFIX@|${PREFIX}|g" \ + -e "s|@LIBDIR@|${PREFIX}/lib/${BROWSER}|g" \ + -e "s|@INCDIR@|${PREFIX}/include/${BROWSER}|g" \ + -e "s|@X11BASELIB@|${X11BASE}/lib|g" \ + ${FILESDIR}/mozilla-${f}.pc.in > ${WRKSRC}/mozilla-${f}.pc +.endfor + +post-buildlink: + @${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig + @${CP} ${WRKSRC}/*.pc ${BUILDLINK_DIR}/lib/pkgconfig + +SUBST_CLASSES+= conf +SUBST_STAGE.conf= post-patch +SUBST_FILES.conf= Source/plugin-setup.cpp +SUBST_SED.conf= -e "s|/etc/|${PKG_SYSCONFDIR}/|g" +SUBST_MESSAGE.conf= "Fixing harcoded paths." + +EGDIR= ${PREFIX}/share/examples/mplayer-plugin-${BROWSER} +CONF_FILES= # empty +.for f in conf types +CONF_FILES+= ${EGDIR}/mplayerplug-in.${f} \ + ${PKG_SYSCONFDIR}/mplayerplug-in.${f} +.endfor + +do-install: + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.conf ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.types ${EGDIR} +.if !exists(${PREFIX}/lib/${BROWSER}/plugins) + ${INSTALL_DATA_DIR} ${PREFIX}/lib/${BROWSER}/plugins +.endif + ${INSTALL_LIB} ${WRKSRC}/mplayerplug-in.so \ + ${PREFIX}/lib/${BROWSER}/plugins + ${INSTALL_DATA} ${WRKSRC}/mplayerplug-in.xpt \ + ${PREFIX}/lib/${BROWSER}/plugins + +.include "../../devel/pkgconfig/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" |