blob: b76e1eb90952c56e109c567fd4f60d7db201c5c7 (
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
50
51
52
53
54
55
56
57
58
|
# Created by: Philippe Charnier <charnier@lirmm.fr>
# $FreeBSD$
PORTNAME= mpeg2codec
PORTVERSION= 1.2
PORTREVISION= 4
CATEGORIES= multimedia
MASTER_SITES= http://fossies.org/unix/misc/old/ \
http://www.imagemagick.org/download/delegates/ \
http://gd.tuwien.ac.at/graphics/libs/alsolibs/ \
http://www.mpeg.org/pub_ftp/mpeg/mssg/
DISTNAME= mpeg2vidcodec_v12
MAINTAINER= multimedia@FreeBSD.org
COMMENT= MPEG-2 Encoder and Decoder
OPTIONS_DEFINE= X11 DOCS
OPTIONS_DEFAULT= X11
WRKSRC= ${WRKDIR}/mpeg2
USES= pkgconfig
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
DATADIR= ${PREFIX}/share/mpeg2
CFLAGS+= -DVERIFY -DVERBOSE -DTRACE
PORTDOCS= mpeg2enc.doc
PLIST_FILES= bin/mpeg2decode bin/mpeg2encode \
%%DATADIR%%/MPEG-1.par %%DATADIR%%/NTSC.par \
%%DATADIR%%/PAL.par %%DATADIR%%/inter.mat \
%%DATADIR%%/intra.mat
PLIST_DIRS= %%DATADIR%%
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MX11}
USE_XORG= xext
MAKE_ARGS+= USE_DISP="-DDISPLAY" \
USE_SHMEM="-DSH_MEM" \
LIBS="$$(pkg-config --libs xext) -lX11" \
INCLUDEDIR="$$(pkg-config --cflags xext)"
.endif
do-install:
.for i in dec enc
${INSTALL_PROGRAM} ${WRKSRC}/src/mpeg2${i}/mpeg2${i}ode ${PREFIX}/bin
.endfor
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/par/* ${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/mpeg2enc.doc ${DOCSDIR}
.endif
.include <bsd.port.mk>
|