diff options
author | ahze <ahze@FreeBSD.org> | 2006-04-30 07:03:03 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2006-04-30 07:03:03 +0800 |
commit | 37141a4239ce132a460689dacc49f431214e670b (patch) | |
tree | 841e14a903993df6f2654c4de34024a326f9e59b /multimedia/gstreamer-plugins/Makefile | |
parent | 8967d0ac35824f19b6b0545589662965de0f1988 (diff) | |
download | freebsd-ports-gnome-37141a4239ce132a460689dacc49f431214e670b.tar.gz freebsd-ports-gnome-37141a4239ce132a460689dacc49f431214e670b.tar.zst freebsd-ports-gnome-37141a4239ce132a460689dacc49f431214e670b.zip |
- Update gstreamer to 0.10
- Move all old gstreamer 0.8 ports to gstreamer*80 [1]
- Chase all ports with new gstreamer or gstreaemer moves
Repocopied by: marcus [1]
Diffstat (limited to 'multimedia/gstreamer-plugins/Makefile')
-rw-r--r-- | multimedia/gstreamer-plugins/Makefile | 141 |
1 files changed, 58 insertions, 83 deletions
diff --git a/multimedia/gstreamer-plugins/Makefile b/multimedia/gstreamer-plugins/Makefile index b608ce711ccd..12267c76cbaa 100644 --- a/multimedia/gstreamer-plugins/Makefile +++ b/multimedia/gstreamer-plugins/Makefile @@ -3,71 +3,87 @@ # Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> # # $FreeBSD$ +# $MCom: ports/multimedia/gstreamer-plugins/Makefile,v 1.80 2006/04/28 12:00:14 ahze Exp $ # PORTNAME= gstreamer -PORTVERSION= 0.8.11 -PORTREVISION?= 2 +PORTVERSION?= 0.10.6 +## SET BACK TO PORTREVISION?= when we reset PORTREVISION in all the gst plugin ports +PORTREVISION?= 1 CATEGORIES?= multimedia audio -MASTER_SITES= ${MASTER_SITE_GNOME} \ - http://gstreamer.freedesktop.org/src/gst-plugins/ -MASTER_SITE_SUBDIR= sources/gst-plugins/0.8 +MASTER_SITES= ${MASTER_SITE_GNOME:S|$|sources/gst-plugins-base/0.10/:base|} \ + http://gstreamer.freedesktop.org/src/gst-plugins-base/:base \ + ${MASTER_SITE_LOCAL:S|$|ahze/:base|} \ + ${MASTER_SITE_LOCAL:S|$|ahze/:good|} \ + ${MASTER_SITE_LOCAL:S|$|ahze/:bad|} \ + ${MASTER_SITE_LOCAL:S|$|ahze/:ugly|} \ + http://gstreamer.freedesktop.org/src/gst-plugins-bad/:bad \ + ${MASTER_SITE_GNOME:S|$|sources/gst-plugins-good/0.10/:good|} \ + http://gstreamer.freedesktop.org/src/gst-plugins-good/:good \ + http://gstreamer.freedesktop.org/src/gst-plugins-ugly/:ugly \ + http://people.freebsd.org/~ahze/distfiles/:good \ + http://people.freebsd.org/~ahze/distfiles/:bad \ + http://people.freebsd.org/~ahze/distfiles/:ugly \ + http://people.freebsd.org/~ahze/distfiles/:base PKGNAMESUFFIX= -plugins${GST_PLUGIN_SUFFIX} -DISTNAME= gst-plugins-${PORTVERSION} +DISTFILES= ${BASE_DISTFILE}:base \ + ${BAD_DISTFILE}:bad \ + ${GOOD_DISTFILE}:good \ + ${UGLY_DISTFILE}:ugly DIST_SUBDIR= gnome2 MAINTAINER= gnome@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 +LIB_DEPENDS+= gstreamer-0.10.0:${PORTSDIR}/multimedia/gstreamer \ + popt.0:${PORTSDIR}/devel/popt \ + oil-0.3.1:${PORTSDIR}/devel/liboil + +BASE_PORTVERSION= ${PORTVERSION} +BASE_DISTNAME= gst-plugins-base-${BASE_PORTVERSION} +BASE_DISTFILE= ${BASE_DISTNAME}${EXTRACT_SUFX} +BAD_PORTVERSION= 0.10.1 +BAD_DISTNAME= gst-plugins-bad-${BAD_PORTVERSION} +BAD_DISTFILE= ${BAD_DISTNAME}${EXTRACT_SUFX} +GOOD_PORTVERSION= 0.10.2 +GOOD_DISTNAME= gst-plugins-good-${GOOD_PORTVERSION} +GOOD_DISTFILE= ${GOOD_DISTNAME}${EXTRACT_SUFX} +UGLY_PORTVERSION= 0.10.3 +UGLY_DISTNAME= gst-plugins-ugly-${UGLY_PORTVERSION} +UGLY_DISTFILE= ${UGLY_DISTNAME}${EXTRACT_SUFX} SHLIB_VERSION= 1 -VERSION= 0.8 - +USE_GETTEXT= yes +VERSION= ${GST_VERSION} WANT_GSTREAMER= yes USE_X_PREFIX= yes USE_BZIP2= yes USE_GMAKE= yes -USE_GNOME+= gnomehack \ - gnomeprefix \ - gnometarget \ - pkgconfig -USE_REINPLACE= yes -GNU_CONFIGURE= yes +USE_GNOME+= gnomehack gnomeprefix gnometarget pkgconfig ltverhack +USE_AUTOTOOLS= libtool:15 GST_PLUGIN?= base -CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} \ - CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ +CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ LDFLAGS="${LDFLAGS} -L${X11BASE}/lib -L${LOCALBASE}/lib ${EXTRA_LIBS} ${PTHREAD_LIBS}" +DEFAULT_AUDIOSINK?= osssink +DEFAULT_AUDIOSRC?= osssrc + .include <bsd.port.pre.mk> .include "${MASTERDIR}/Makefile.common" .if !defined(WITH_CPUFLAGS) -WITHOUT_CPU_CFLAGS= yes +#WITHOUT_CPU_CFLAGS= yes .endif .if ${GST_PLUGIN} == "base" - INSTALLS_SHLIB= yes - +MAN1= gst-visualise-0.10.1 +WRKSRC=${WRKDIR}/${BASE_DISTNAME} +EXTRACT_ONLY=${BASE_DISTFILE} PLIST_SUB+= VERSION="${VERSION}" \ SHLIB_VERSION="${SHLIB_VERSION}" - -MAN1= gst-launch-ext-0.8.1 gst-visualise-0.8.1 - -## 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 -.else -.for f in ${GST_PLUGIN_DIR} -GST_PLUGIN_MAKEFILES+= ${f}/Makefile -.endfor .endif # cdrom default device @@ -103,61 +119,20 @@ pre-everything:: @${ECHO_MSG} "" .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 -# 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 -.if ${GST_PLUGIN}!="base" - @${REINPLACE_CMD} -E -e 's|ac_config_files=\"*\"|ac_config_files="$$ac_config_files Makefile ${GST_PLUGIN_MAKEFILES}" #|' \ - ${WRKSRC}/configure -.else -.for f in ${GST_ALL_PLUGINS} - @${REINPLACE_CMD} -e 's|ext/${f}/Makefile||g' \ + @${FIND} ${WRKSRC}/ext -name Makefile.in | \ + ${XARGS} -n 10 ${REINPLACE_CMD} -e \ + 's|$$(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_MAJORMINOR@.la|${X11BASE}/lib/libgsttag-@GST_MAJORMINOR@.la|; \ + s|$$(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la|${X11BASE}/lib/libgstaudio-@GST_MAJORMINOR@.la|; \ + s|$$(top_builddir)/gst-libs/gst/riff/libgstriff-@GST_MAJORMINOR@.la|${X11BASE}/lib/libgstriff-@GST_MAJORMINOR@.la|; \ + s|$$(top_builddir)/gst-libs/gst/cdda/libgstcdda-@GST_MAJORMINOR@.la|${X11BASE}/lib/libgstcdda-@GST_MAJORMINOR@.la|' + @${REINPLACE_CMD} -e 's|DEFAULT_AUDIOSINK="alsasink"|DEFAULT_AUDIOSINK="${DEFAULT_AUDIOSINK}"|; \ + s|DEFAULT_AUDIOSRC="alsasrc"|DEFAULT_AUDIOSRC="${DEFAULT_AUDIOSRC}"|' \ ${WRKSRC}/configure -.endfor -.endif - -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-${VERSION} \ - --gst-registry=${PREFIX}/share/gnome/cache/gstreamer-${VERSION}/registry.xml 2>/dev/null .include <bsd.port.post.mk> |