blob: 44aeb480d3b734509e2ea4d1353cf935f81dd755 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= libmpeg2
PORTVERSION= 0.5.1
PORTREVISION= 5
CATEGORIES= multimedia
MASTER_SITES= http://libmpeg2.sourceforge.net/files/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Free library for decoding MPEG-2 and MPEG-1 video streams
USES= libtool:keepla pathfix
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --enable-shared
PORTDOCS= libmpeg2.txt README
OPTIONS_DEFINE= DOCS SDL X11
SDL_USE= SDL=yes
SDL_CONFIGURE_ENABLE= sdl
X11_USE= XORG=sm,xv
X11_CONFIGURE_WITH= x
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's| -O3|| ; s|<termio|&s|' \
${WRKSRC}/configure
# AMD64 prefers position independent code
.if ${ARCH:tl} == "amd64"
@${REINPLACE_CMD} -e '/CFLAGS/s| -prefer-non-pic||' \
${WRKSRC}/configure
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/libmpeg2.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/libvo/libvo.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/include/video_out.h \
${STAGEDIR}${PREFIX}/include/mpeg2dec
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpeg2convert.so.0
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpeg2.so.0
.include <bsd.port.mk>
|