From 45c9f8d69d9b72164a00ff39a7dc0b4849a29b42 Mon Sep 17 00:00:00 2001 From: Martin Matuska Date: Tue, 11 Aug 2009 21:53:45 +0000 Subject: - Move gstreamer plugin into separate port (multimedia/gstreamer-schroedinger) - Take maintainership - Bump PORTREVISION --- multimedia/schroedinger/Makefile | 51 +++++++++++++++++++++++------ multimedia/schroedinger/pkg-descr.gstreamer | 3 ++ multimedia/schroedinger/pkg-plist | 3 -- 3 files changed, 44 insertions(+), 13 deletions(-) create mode 100644 multimedia/schroedinger/pkg-descr.gstreamer (limited to 'multimedia') diff --git a/multimedia/schroedinger/Makefile b/multimedia/schroedinger/Makefile index b2c7255b0dbd..c2a916c09894 100644 --- a/multimedia/schroedinger/Makefile +++ b/multimedia/schroedinger/Makefile @@ -5,35 +5,66 @@ # $FreeBSD$ # +.if !defined(_BUILDING_GSTREAMER_PLUGIN) PORTNAME= schroedinger +.else +PORTNAME= gstreamer +.endif PORTVERSION= 1.0.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= multimedia MASTER_SITES= http://www.diracvideo.org/download/%SUBDIR%/ MASTER_SITE_SUBDIR= ${PORTNAME} +.if defined(_BUILDING_GSTREAMER_PLUGIN) +PKGNAMESUFFIX= -schroedinger +DISTNAME= schroedinger-${PORTVERSION} +.endif -MAINTAINER= ports@FreeBSD.org +MAINTAINER= mm@FreeBSD.org +.if !defined(_BUILDING_GSTREAMER_PLUGIN) COMMENT= High-speed Dirac codec +.else +COMMENT= GStreamer dirac plugin using Schroedinger library +.endif LIB_DEPENDS= oil:${PORTSDIR}/devel/liboil +.if defined(_BUILDING_GSTREAMER_PLUGIN) +LIB_DEPENDS+= schroedinger-1.0.2:${PORTSDIR}/multimedia/schroedinger +.endif GNU_CONFIGURE= yes USE_LDCONFIG= yes -WANT_GSTREAMER= yes -OPTIONS= GSTREAMER "Enable gstreamer plugin" on +.if defined(_BUILDING_GSTREAMER_PLUGIN) +WANT_GSTREAMER= yes +USE_GSTREAMER= yes +BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/gst +INSTALL_WRKSRC= ${BUILD_WRKSRC} +PLIST= ${WRKSRC}/PLIST +DESCR= ${MASTERDIR}/pkg-descr.gstreamer +.else +CONFIGURE_ARGS+= --disable-gstreamer +.endif .include -.if defined(WITHOUT_GSTREAMER) -CONFIGURE_ARGS+= --disable-gstreamer -PLIST_SUB+= GSTREAMER="@comment " -.else -USE_GSTREAMER= yes -PLIST_SUB+= GSTREAMER="" +.if defined(_BUILDING_GSTREAMER_PLUGIN) +PLIST_FILES+= lib/gstreamer-${GST_VERSION}/libgstschro.a \ + lib/gstreamer-${GST_VERSION}/libgstschro.la \ + lib/gstreamer-${GST_VERSION}/libgstschro.so .endif post-patch: ${REINPLACE_CMD} -e 's|^pkgconfigdir=.*|pkgconfigdir="\\$$(prefix)/libdata/pkgconfig"|' ${WRKSRC}/configure +.if defined(_BUILDING_GSTREAMER_PLUGIN) +post-configure: + ${REINPLACE_CMD} -e "s|\$$(top_builddir)/schroedinger/libschroedinger-1.0.la|${LOCALBASE}/lib/libschroedinger-1.0.la|g" \ + ${WRKSRC}/gst/Makefile + +pre-build: + @cd ${WRKSRC}/gst-libs/gst/video && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET} + +.endif + .include diff --git a/multimedia/schroedinger/pkg-descr.gstreamer b/multimedia/schroedinger/pkg-descr.gstreamer new file mode 100644 index 000000000000..bfcc45e5aa1e --- /dev/null +++ b/multimedia/schroedinger/pkg-descr.gstreamer @@ -0,0 +1,3 @@ +Dirac plugin for GStreamer using the Schroedinger library + +WWW: http://www.diracvideo.org/ diff --git a/multimedia/schroedinger/pkg-plist b/multimedia/schroedinger/pkg-plist index 6d4b9dca4704..4d9dd0a298d5 100644 --- a/multimedia/schroedinger/pkg-plist +++ b/multimedia/schroedinger/pkg-plist @@ -38,9 +38,6 @@ lib/libschroedinger-1.0.a lib/libschroedinger-1.0.la lib/libschroedinger-1.0.so lib/libschroedinger-1.0.so.2 -%%GSTREAMER%%lib/gstreamer-0.10/libgstschro.a -%%GSTREAMER%%lib/gstreamer-0.10/libgstschro.la -%%GSTREAMER%%lib/gstreamer-0.10/libgstschro.so libdata/pkgconfig/schroedinger-1.0.pc share/gtk-doc/html/schroedinger/home.png share/gtk-doc/html/schroedinger/index.html -- cgit v1.2.3