diff options
author | Martin Matuska <mm@FreeBSD.org> | 2009-08-11 21:53:45 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2009-08-11 21:53:45 +0000 |
commit | 45c9f8d69d9b72164a00ff39a7dc0b4849a29b42 (patch) | |
tree | 47cdc400e9349ae48f795d6560549b69de4448cd /multimedia | |
parent | 28fab9b5a9bdba65bae06b9412820035cc22a5f9 (diff) | |
download | ports-45c9f8d69d9b72164a00ff39a7dc0b4849a29b42.tar.gz ports-45c9f8d69d9b72164a00ff39a7dc0b4849a29b42.zip |
Notes
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/schroedinger/Makefile | 51 | ||||
-rw-r--r-- | multimedia/schroedinger/pkg-descr.gstreamer | 3 | ||||
-rw-r--r-- | multimedia/schroedinger/pkg-plist | 3 |
3 files changed, 44 insertions, 13 deletions
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 <bsd.port.pre.mk> -.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 <bsd.port.post.mk> 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 |