diff options
author | ahze <ahze@FreeBSD.org> | 2005-11-30 15:58:15 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2005-11-30 15:58:15 +0800 |
commit | 00fcfbf8f18c0720c92d83badcc0bc24748fef37 (patch) | |
tree | 636222d9d85056275a23a4a69a7216070e7f53a8 /multimedia/totem/Makefile | |
parent | 2aedfabeaef0c8a70ec2f00db29924be40076da8 (diff) | |
download | freebsd-ports-gnome-00fcfbf8f18c0720c92d83badcc0bc24748fef37.tar.gz freebsd-ports-gnome-00fcfbf8f18c0720c92d83badcc0bc24748fef37.tar.zst freebsd-ports-gnome-00fcfbf8f18c0720c92d83badcc0bc24748fef37.zip |
- Add support for a gecko plugin via WITH_MOZILLA_PLUGIN
Note: You must use dbus for this, see http://www.freebsd.org/gnome/docs/faq2.html#q25
for more details.
Approved by: maintainer timeout 18 days
Diffstat (limited to 'multimedia/totem/Makefile')
-rw-r--r-- | multimedia/totem/Makefile | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/multimedia/totem/Makefile b/multimedia/totem/Makefile index 7d1b7c3a61c3..fa35dd9410e5 100644 --- a/multimedia/totem/Makefile +++ b/multimedia/totem/Makefile @@ -7,6 +7,7 @@ PORTNAME= totem PORTVERSION= 1.2.0 +PORTREVISION= 2 CATEGORIES= multimedia gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:R} @@ -28,12 +29,13 @@ USE_GMAKE= yes USE_AUTOTOOLS= libtool:15 INSTALLS_SHLIB= yes INSTALLS_OMF= yes +PKGMESSAGE= ${WRKDIR}/pkg-message CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lXrandr" -CONFIGURE_ARGS+=--disable-mozilla OPTIONS?= DVDNAV "Enable DVD support" on \ - GSTREAMER "Use Gstreamer instead of Xine" off + GSTREAMER "Use Gstreamer instead of Xine" off \ + MOZILLA_PLUGIN "Totem mozilla plugin" off MAN1= totem.1 totem-video-thumbnailer.1 GCONF_SCHEMAS= totem-handlers.schemas totem-video-thumbnail.schemas \ @@ -44,14 +46,27 @@ CONFLICTS= totem-gstreamer-[0-9]* LIB_DEPENDS+= musicbrainz:${PORTSDIR}/audio/libmusicbrainz +.if defined(WITH_MOZILLA_PLUGIN) +USE_GECKO= firefox mozilla seamonkey +.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk" +PLIST_SUB+= MOZILLA="" +LIB_DEPENDS+= dbus-1.1:${PORTSDIR}/devel/dbus +CONFIGURE_ARGS+=--with-mozilla=${GECKO} +.else +PLIST_SUB+= MOZILLA="@comment " +CONFIGURE_ARGS+=--disable-mozilla +.endif + .if defined(WITH_GSTREAMER) +BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes +RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes CONFIGURE_ARGS+=--enable-gstreamer USE_GSTREAMER+= gnomevfs core gconf WITHOUT_DVDNAV= yes -PLIST_SUB= GSTREAMER="" +PLIST_SUB+= GSTREAMER="" .else LIB_DEPENDS+= xine.14:${PORTSDIR}/multimedia/libxine -PLIST_SUB= GSTREAMER="@comment " +PLIST_SUB+= GSTREAMER="@comment " .endif .if defined(WITH_DVDNAV) && !defined(WITHOUT_DVDNAV) @@ -88,6 +103,14 @@ pre-everything:: @${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'" post-patch: + @${CP} -f ${FILESDIR}/pkg-message.in ${PKGMESSAGE} +.if defined(WITH_MOZILLA_PLUGIN) + @${ECHO} "" >> ${PKGMESSAGE} + @${CAT} ${FILESDIR}/pkg-message-mozilla.in >> ${PKGMESSAGE} +.endif + @${REINPLACE_CMD} -e 's|/plugins||; \ + s|@MOZILLA_PLUGINDIR@|${PREFIX}/lib/browser_plugins|' \ + ${WRKSRC}/src/Makefile.in @${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \ ${WRKSRC}/src/totem-preferences.c \ ${WRKSRC}/src/backend/bacon-video-widget-gst.c |