diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2013-03-25 14:05:23 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2013-03-25 14:05:23 +0000 |
commit | 1fed8995fc1d188597b67cf321607fb86cfe27fe (patch) | |
tree | d74e8d9f54050281e8e26660fd5edf8928b5aac0 /multimedia | |
parent | 94df2cde4e2ec5c9a08dbad372753efc35abe483 (diff) | |
download | ports-1fed8995fc1d188597b67cf321607fb86cfe27fe.tar.gz ports-1fed8995fc1d188597b67cf321607fb86cfe27fe.zip |
Notes
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/libmpeg2/Makefile | 48 | ||||
-rw-r--r-- | multimedia/libmpeg2/files/patch-libmpeg2__idct_alpha.c (renamed from multimedia/libmpeg2/files/patch-libmpeg2::idct_alpha.c) | 0 |
2 files changed, 19 insertions, 29 deletions
diff --git a/multimedia/libmpeg2/Makefile b/multimedia/libmpeg2/Makefile index dda232ca82ea..92c16d20678b 100644 --- a/multimedia/libmpeg2/Makefile +++ b/multimedia/libmpeg2/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: libmpeg2 -# Date created: Tue Oct 16 17:14:20 BRST 2001 -# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> -# +# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> # $FreeBSD$ -# PORTNAME= libmpeg2 PORTVERSION= 0.5.1 @@ -12,30 +8,36 @@ CATEGORIES= multimedia MASTER_SITES= http://libmpeg2.sourceforge.net/files/ MAINTAINER= multimedia@FreeBSD.org -COMMENT= A free library for decoding mpeg-2 and mpeg-1 video streams +COMMENT= Free library for decoding mpeg-2 and mpeg-1 video streams +USES= pathfix USE_GNOME= ltverhack USE_AUTOTOOLS= libtool USE_LDCONFIG= yes MAKE_JOBS_SAFE= yes -CONFIGURE_ARGS= --enable-shared \ - --with-x +CONFIGURE_ARGS= --enable-shared MAN1= extract_mpeg2.1 mpeg2dec.1 PORTDOCS= libmpeg2.txt README -.ifdef(WITH_SDL) +OPTIONS_DEFINE= DOCS SDL X11 + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MSDL} USE_SDL= yes CONFIGURE_ARGS+= --enable-sdl .else CONFIGURE_ARGS+= --disable-sdl .endif -# allow build with more warnings enabled -.if defined(NO_WERROR) -CONFIGURE_ARGS+= --disable-warnings +.if ${PORT_OPTIONS:MX11} +USE_XORG= sm xv +CONFIGURE_ARGS+= --with-x +.else +CONFIGURE_ARGS+= --without-x .endif .include <bsd.port.pre.mk> @@ -46,29 +48,17 @@ CONFIGURE_ARGS+= --disable-warnings CFLAGS:= ${CFLAGS:N-mcpu=*} .endif -pre-everything:: - @${ECHO_MSG} "====>" -.ifndef(WITH_SDL) - @${ECHO_MSG} "====> You can enable SDL support by defining WITH_SDL" -.endif -.ifndef(WITH_MGA) - @${ECHO_MSG} "====> You can enable MGA support by defining WITH_MGA" -.endif - @${ECHO_MSG} "====>" - post-patch: - @${REINPLACE_CMD} -e 's|-O3||;s|<termio.h>|<termios.h>|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|-O3||;s|<termio.h>|<termios.h>|' \ + ${WRKSRC}/configure # AMD64 prefers position independent code .if ${ARCH:L} == "amd64" @${REINPLACE_CMD} -e 's|-prefer-non-pic||' \ - ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} + ${WRKSRC}/configure .endif - @${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ - ${WRKSRC}/libmpeg2/Makefile.in - @${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ - ${WRKSRC}/libmpeg2/convert/Makefile.in + post-install: -.ifndef(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/libmpeg2.txt ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} diff --git a/multimedia/libmpeg2/files/patch-libmpeg2::idct_alpha.c b/multimedia/libmpeg2/files/patch-libmpeg2__idct_alpha.c index 6f0821702ec3..6f0821702ec3 100644 --- a/multimedia/libmpeg2/files/patch-libmpeg2::idct_alpha.c +++ b/multimedia/libmpeg2/files/patch-libmpeg2__idct_alpha.c |