freebsd-ports/multimedia/libmpeg2/Makefile
Mario Sergio Fujikawa Ferreira 30ae669f73 o Update to bug fix release 0.4.1:
- The build system now supports newer versions of the
	  autotools and can find them in weird places on FreeBSD
	  and OS X systems. We also support x86 accelerations on
	  the AMD64 CPU, including on FreeBSD. The AltiVec features
	  are now better detected.
	- Peter Gubanov found a bug in the 4:4:4 chroma handling,
	  Nicolas Joly found a memory leak in the Xshm code on
	  remote displays and Roberto Huelga found alignment issues
	  in the sample3 and sample5 examples. Gildas Bazin contributed
	  a patch for more tolerance for invalid sequence display
	  extensions.

PR:		106144
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2006-12-15 01:53:30 +00:00

84 lines
2.1 KiB
Makefile

# New ports collection makefile for: libmpeg2
# Date created: Tue Oct 16 17:14:20 BRST 2001
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libmpeg2
PORTVERSION= 0.4.1
CATEGORIES= multimedia
MASTER_SITES= http://libmpeg2.sourceforge.net/files/
DISTNAME= mpeg2dec-${PORTVERSION}
MAINTAINER= lioux@FreeBSD.org
COMMENT= A free library for decoding mpeg-2 and mpeg-1 video streams
USE_XLIB= yes
USE_GNOME= gnometarget
USE_AUTOTOOLS= libtool:15
USE_LDCONFIG= yes
CONFIGURE_ARGS= --enable-shared \
--with-x
MAN1= extract_mpeg2.1 mpeg2dec.1
PORTDOCS= libmpeg2.txt
.ifdef(WITH_MGA)
CONFIGURE_ARGS+= --enable-mga
.endif
.ifdef(WITH_SDL)
USE_SDL= yes
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libvo::configure.incl
CONFIGURE_ARGS+= --enable-sdl
.else
CONFIGURE_ARGS+= --disable-sdl
.endif
# allow build with more warnings enabled
.if defined(NO_WERROR)
CONFIGURE_ARGS+= --disable-warnings
.endif
.include <bsd.port.pre.mk>
# We must be able to build EV6 code; actual CPU-type optimizations
# are chosen at runtime.
.if ${ARCH} == "alpha"
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
# AMD64 prefers position independent code
.if ${ARCH:L} == "amd64"
@${REINPLACE_CMD} -e 's|-prefer-non-pic||' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.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)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/libmpeg2.txt ${DOCSDIR}
.endif
@${INSTALL_DATA} ${WRKSRC}/libvo/libvo.a ${PREFIX}/lib
@${INSTALL_DATA} ${WRKSRC}/include/video_out.h \
${PREFIX}/include/mpeg2dec
.include <bsd.port.post.mk>