diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-11-15 13:44:15 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-11-15 13:44:15 +0800 |
commit | 6e56d6a5ebeee89e690668e1d98ef1a1c9b21101 (patch) | |
tree | a33621e2b1a7ab9bed73e6e170d51aced1189a43 /multimedia/gstreamer-plugins80/Makefile | |
parent | d21e4ffb56bfe8a6115c626e06dbb815b771d03b (diff) | |
download | marcuscom-ports-6e56d6a5ebeee89e690668e1d98ef1a1c9b21101.tar marcuscom-ports-6e56d6a5ebeee89e690668e1d98ef1a1c9b21101.tar.gz marcuscom-ports-6e56d6a5ebeee89e690668e1d98ef1a1c9b21101.tar.bz2 marcuscom-ports-6e56d6a5ebeee89e690668e1d98ef1a1c9b21101.tar.lz marcuscom-ports-6e56d6a5ebeee89e690668e1d98ef1a1c9b21101.tar.xz marcuscom-ports-6e56d6a5ebeee89e690668e1d98ef1a1c9b21101.tar.zst marcuscom-ports-6e56d6a5ebeee89e690668e1d98ef1a1c9b21101.zip |
Massive import of gstreamer-plugins
This is gstreamer-plugins with each plugin in its own separate port.
Includes bsd.gstreamer.mk so ports can use the following examples
WANT_GSTREAMER= yes
.include <bsd.port.pre.mk>
.if defined(WITH_VORBIS)
USE_GSTREAMER+= vorbis
.endif
or
USE_GSTREAMER= yes
.include <bsd.port.pre.mk>
.if defined(WITH_FAAD)
USE_GSTREAMER+= faad
.endif
USE_GSTREAMER=yes will always install multimedia/gstreamer-plugins
WITH_GSTREAMER=yes will only include bsd.gstreamer.mk for use after bsd.port.pre.mk
Approved by: marcus
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3061 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'multimedia/gstreamer-plugins80/Makefile')
-rw-r--r-- | multimedia/gstreamer-plugins80/Makefile | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/multimedia/gstreamer-plugins80/Makefile b/multimedia/gstreamer-plugins80/Makefile new file mode 100644 index 000000000..378d2bad0 --- /dev/null +++ b/multimedia/gstreamer-plugins80/Makefile @@ -0,0 +1,146 @@ +# New ports collection makefile for: gstreamer plugins +# Date created: Wed Jul 10 23:38:01 UTC 2002 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD: ports/multimedia/gstreamer-plugins/Makefile,v 1.64 2004/09/11 01:08:33 marcus Exp $ +# + +PORTNAME= gstreamer +PORTVERSION= 0.8.5 +CATEGORIES?= multimedia audio +MASTER_SITES= ${MASTER_SITE_GNOME} \ + http://gstreamer.freedesktop.org/src/gst-plugins/ +MASTER_SITE_SUBDIR= sources/gst-plugins/0.8 +PKGNAMESUFFIX= -plugins${GST_PLUGIN_SUFFIX} +DISTNAME= gst-plugins-${PORTVERSION} +DIST_SUBDIR= gnome2 + +MAINTAINER= lioux@FreeBSD.org +COMMENT?= GStreamer written collection of plugins handling several media types + +LIB_DEPENDS+= gstreamer-0.8.5:${PORTSDIR}/multimedia/gstreamer \ + popt.0:${PORTSDIR}/devel/popt + +SHLIB_VERSION= 1 +VERSION= 0.8 + +WANT_GSTREAMER= yes +USE_X_PREFIX= yes +USE_BZIP2= yes +USE_GMAKE= yes +USE_GNOME+= gnomehack \ + gnomehier \ + gnomeprefix \ + pkgconfig \ + gconf2 +USE_REINPLACE= yes +USE_LIBTOOL_VER=15 +GST_PLUGIN?= base + +CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} \ + CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ + CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS} -L${X11BASE}/lib -L${LOCALBASE}/lib" + +.include <bsd.port.pre.mk> + +.if ${GST_PLUGIN} == "base" +GCONF_SCHEMAS= gstreamer-0.8.schemas + +INSTALLS_SHLIB= yes + +PLIST_SUB= VERSION="${VERSION}" \ + SHLIB_VERSION="${SHLIB_VERSION}" + +## Additional directories which should be both built and installed +## but configure neglected to correctly identify them +# cdrom/vcd support +EXTRA_BUILD_DIR+= sys/vcd +# modplug +EXTRA_BUILD_DIR+= gst/modplug +.endif + +# cdrom default device +.ifdef(WITH_CDROM_DEVICE) +DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} +.else +. if ${OSVERSION} < 500000 +DEFAULT_CDROM_DEVICE=/dev/acd0c +. else +DEFAULT_CDROM_DEVICE=/dev/acd0 +. endif +.endif + +# dvd default device +.ifdef(WITH_DVD_DEVICE) +DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} +.else +. if ${OSVERSION} < 500000 +DEFAULT_DVD_DEVICE=/dev/acd0c +. else +DEFAULT_DVD_DEVICE=/dev/acd0 +. endif +.endif + +post-extract: +# for cdrom/vcd support +# taken from mplayer distfile +# MD5 (MPlayer-1.0pre4.tar.bz2) = 83ebac0f05b192516a41fca2350ca01a + @${CP} ${FILESDIR}/bsdi_dvd.h ${WRKSRC}/sys/vcd/ + +post-patch: + @${FIND} ${WRKSRC} -type f | \ + ${XARGS} -n 10 ${REINPLACE_CMD} -e \ + 's|malloc\.h|stdlib.h|; \ + s|stdint\.h|inttypes.h|; \ + s|%%VERSION%%|${VERSION}|' +# cdrom default device + @${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \ + ${WRKSRC}/ext/cdparanoia/gstcdparanoia.c \ + ${WRKSRC}/sys/cdrom/gstcdplayer.c \ + ${WRKSRC}/sys/vcd/vcdsrc.c +# dvd default device + @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \ + ${WRKSRC}/ext/dvdnav/dvdnavsrc.c \ + ${WRKSRC}/ext/dvdread/dvdreadsrc.c +# cdrom/vcd support + @${REINPLACE_CMD} -e 's|<linux/cdrom.h>|"bsdi_dvd.h"|' \ + ${WRKSRC}/sys/cdrom/gstcdplayer_ioctl.c \ + ${WRKSRC}/sys/vcd/vcdsrc.c \ + ${WRKSRC}/sys/vcd/vcdsrc.h +# KDE libkio required thread support + @${REINPLACE_CMD} -E \ + -e 's|(KIO_CFLAGS=.+)"$$|\1 ${PTHREAD_CFLAGS}"|' \ + -e 's|(KIO_LIBS=.+)"$$|\1 ${PTHREAD_LIBS}"|' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} +# mplex fix -- gst configure does not use mjpegtool's config to find include. + @${REINPLACE_CMD} -E \ + -e 's|PFLAGS@|PFLAGS@ -I${LOCALBASE}/include/mjpegtools -I${LOCALBASE}/include/mjpegtools/mplex|' \ + ${WRKSRC}/ext/mplex/Makefile.in +# speex fix -- speex.h has moved to include/speex/speex.h + @${REINPLACE_CMD} -e 's|-I.|-I. -I${LOCALBASE}/include/speex|' \ + ${WRKSRC}/ext/speex/Makefile.in +# Fix gst-register when using -O -march=athlon-xp + @${REINPLACE_CMD} -e 's|@CXXF|-fgcse @CXXF|g' \ + ${WRKSRC}/gst/modplug/Makefile.in \ + ${WRKSRC}/gst/modplug/libmodplug/Makefile.in + +post-build: +.ifdef(EXTRA_BUILD_DIR) +. for dir in ${EXTRA_BUILD_DIR} + @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET} +. endfor +.endif + +post-install: +.ifdef(EXTRA_BUILD_DIR) +. for dir in ${EXTRA_BUILD_DIR} + @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} +. endfor +.endif +# register plugins + -@${X11BASE}/bin/gst-register-${GST_VERSION} \ + --gst-registry=${PREFIX}/share/gnome/cache/gstreamer-${GST_VERSION}/registry.xml 2>/dev/null + +.include "${MASTERDIR}/Makefile.common" +.include <bsd.port.post.mk> |