2001-10-16 21:25:34 +02:00
|
|
|
# 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
|
2003-01-02 06:03:52 +01:00
|
|
|
PORTVERSION= 0.3.1
|
2003-01-14 16:54:22 +01:00
|
|
|
PORTREVISION= 1
|
2002-11-28 01:09:51 +01:00
|
|
|
CATEGORIES= multimedia
|
2001-10-16 21:25:34 +02:00
|
|
|
MASTER_SITES= http://libmpeg2.sourceforge.net/files/
|
|
|
|
DISTNAME= mpeg2dec-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
|
|
|
|
|
|
USE_XLIB= yes
|
|
|
|
USE_LIBTOOL= yes
|
2002-07-03 21:15:17 +02:00
|
|
|
USE_REINPLACE= yes
|
2001-10-16 21:25:34 +02:00
|
|
|
|
2003-01-02 06:03:52 +01:00
|
|
|
CONFIGURE_ARGS= --enable-shared \
|
|
|
|
--with-x
|
|
|
|
|
|
|
|
MAN1= extract_mpeg2.1 mpeg2dec.1
|
2001-10-16 21:25:34 +02:00
|
|
|
|
|
|
|
.ifdef(WITH_MGA)
|
|
|
|
CONFIGURE_ARGS+= --enable-mga
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef(WITH_SDL)
|
2003-01-02 16:06:10 +01:00
|
|
|
LIB_DEPENDS+= SDL-1.1.5:${PORTSDIR}/devel/sdl12
|
2001-10-16 21:25:34 +02:00
|
|
|
|
2002-04-25 02:50:02 +02:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libvo::configure.incl
|
2001-10-16 21:25:34 +02:00
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}"
|
|
|
|
CONFIGURE_ARGS+= --enable-sdl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-sdl
|
|
|
|
.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} "====>"
|
|
|
|
|
2002-04-25 02:50:02 +02:00
|
|
|
post-patch:
|
2002-07-03 21:15:17 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|<SDL/|<SDL11/|' ${WRKSRC}/libvo/*
|
|
|
|
@${REINPLACE_CMD} -e 's|-O3||;s|<termio.h>|<termios.h>|' ${WRKSRC}/configure
|
2003-01-02 06:03:52 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
|
|
|
|
${WRKSRC}/libmpeg2/Makefile.in
|
2001-10-16 21:25:34 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/libvo.txt ${DOCSDIR}
|
|
|
|
.endif
|
2002-07-09 19:27:09 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/libvo/libvo.a ${PREFIX}/lib
|
2003-01-02 06:03:52 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/include/video_out.h \
|
|
|
|
${PREFIX}/include/mpeg2dec
|
2001-10-16 21:25:34 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|