diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2008-11-10 05:31:07 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2008-11-10 05:31:07 +0800 |
commit | 35ecae8ae14543fb25d889216e9866935cf3a18f (patch) | |
tree | e2d6ee47c55033ac5b657aead79993aa0dc2b6ef /multimedia/gmerlin-avdecoder | |
parent | 76f23d66829cadd90183619421eb124ae30ef9b8 (diff) | |
download | freebsd-ports-gnome-35ecae8ae14543fb25d889216e9866935cf3a18f.tar.gz freebsd-ports-gnome-35ecae8ae14543fb25d889216e9866935cf3a18f.tar.zst freebsd-ports-gnome-35ecae8ae14543fb25d889216e9866935cf3a18f.zip |
- Add support for gmerlin
- Minor fixes
Diffstat (limited to 'multimedia/gmerlin-avdecoder')
-rw-r--r-- | multimedia/gmerlin-avdecoder/Makefile | 53 | ||||
-rw-r--r-- | multimedia/gmerlin-avdecoder/pkg-plist | 6 |
2 files changed, 39 insertions, 20 deletions
diff --git a/multimedia/gmerlin-avdecoder/Makefile b/multimedia/gmerlin-avdecoder/Makefile index ff6d2fad58b1..60afc9412925 100644 --- a/multimedia/gmerlin-avdecoder/Makefile +++ b/multimedia/gmerlin-avdecoder/Makefile @@ -7,6 +7,7 @@ PORTNAME= gmerlin-avdecoder PORTVERSION= 0.1.8 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= SF/gmerlin @@ -17,35 +18,49 @@ LIB_DEPENDS= gavl.0:${PORTSDIR}/multimedia/gavl GNU_CONFIGURE= yes USE_GETTEXT= yes -CONFIGURE_ARGS= --without-cpuflags --without-doxygen --disable-gmerlin -USE_GNOME= gnomehack +CONFIGURE_ARGS= --without-cpuflags --without-doxygen +USE_GNOME= gnomehack pkgconfig USE_LDCONFIG= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" PORTDOCS= README -OPTIONS= FFMPEG "Enable ffmpeg support" on \ - THEORA "Enable theora support" on \ - SPEEX "Enable speex support" on \ +OPTIONS= GMERLIN "Enable gmerlin support" on \ + FFMPEG "Enable ffmpeg support" on \ + THEORA "Enable theora support" on \ + SPEEX "Enable speex support" on \ MJPEGTOOLS "Enable mjpegtools support" on \ - VORBIS "Enable vorbis support" on \ - MPEG2 "Enable MPEG2 support" on \ - TIFF "Enable TIFF support" on \ - SAMBA "Enable samba support" on \ - PNG "Enable libpng support" on \ - FAAD "Enabled FAAD2 support" on \ + VORBIS "Enable vorbis support" on \ + MPEG2 "Enable MPEG2 support" on \ + TIFF "Enable TIFF support" on \ + SAMBA "Enable samba support" on \ + PNG "Enable libpng support" on \ + FAAD "Enabled FAAD2 support" on \ DVDREAD "Enable libdvdread support" on \ - FLAC "Enable FLAC support" on \ + FLAC "Enable FLAC support" on \ MUSEPACK "Enable musepack (mpc) support" on \ - MAD "Enable mp3 support" on \ - A52 "Enable A52 support" on \ - DCA "Enable DTS Coherent Acoustics decoder" on \ - LIBCDIO "Enable libcdio support" on \ + MAD "Enable mp3 support" on \ + A52 "Enable A52 support" on \ + DCA "Enable DTS Coherent Acoustics decoder" on \ + LIBCDIO "Enable libcdio support" on \ OPTIMIZED_CFLAGS "Additional optimizations" on .include <bsd.port.pre.mk> +# Hack for 6.x to properly detect ffmpeg +.if ${OSVERSION} < 700000 +CONFIGURE_ENV+= AVCODEC_LIBS="`pkg-config --libs libavcodec` ${PTHREAD_LIBS}" +.endif + +.if !defined(WITHOUT_GMERLIN) +LIB_DEPENDS+= gmerlin.0:${PORTSDIR}/multimedia/gmerlin +PLIST_SUB+= GMERLIN="" +.else +CONFIGURE_ARGS+=--disable-gmerlin +PLIST_SUB+= GMERLIN="@comment " +.endif + .if !defined(WITHOUT_FFMPEG) LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg .else @@ -166,16 +181,14 @@ post-patch: @${REINPLACE_CMD} -e 's|-O3 -funroll-all-loops -ffast-math||g; \ /LIBS/ s|-ldl||g; s|^LDFLAGS="|&$${LDFLAGS} |' \ ${WRKSRC}/configure - @${REINPLACE_CMD} -e '/^LIBS = / s|$$|@LIBINTL@ -lz|' \ + @${REINPLACE_CMD} -e '/^LIBS = / s|$$| @LIBINTL@ -lz|' \ ${WRKSRC}/tests/Makefile.in @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/lib/in_smb.c .if !defined(NOPORTDOCS) post-install: ${MKDIR} ${DOCSDIR} -.for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -.endfor + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif .include <bsd.port.post.mk> diff --git a/multimedia/gmerlin-avdecoder/pkg-plist b/multimedia/gmerlin-avdecoder/pkg-plist index ce84d030ca1a..da5121a37ed0 100644 --- a/multimedia/gmerlin-avdecoder/pkg-plist +++ b/multimedia/gmerlin-avdecoder/pkg-plist @@ -1,6 +1,12 @@ bin/bgavdump include/gmerlin/avdec.h include/gmerlin/bgav_version.h +%%GMERLIN%%lib/gmerlin/plugins/i_avdec.la +%%GMERLIN%%lib/gmerlin/plugins/i_avdec.so +%%GMERLIN%%lib/gmerlin/plugins/i_dvd.la +%%GMERLIN%%lib/gmerlin/plugins/i_dvd.so +%%GMERLIN%%lib/gmerlin/plugins/i_vcd.la +%%GMERLIN%%lib/gmerlin/plugins/i_vcd.so lib/libgmerlin_avdec.la lib/libgmerlin_avdec.so lib/libgmerlin_avdec.so.0 |