blob: d01d167cbdb79068f73c9d64097ecb1b1ea7820c (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= mjpegtools
PORTVERSION= 2.0.0
PORTREVISION= 4
CATEGORIES= multimedia
MASTER_SITES= SF/${PORTNAME:S/tools//}/${PORTNAME}/${PORTVERSION}
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Set of tools to record/playback/edit videos in MPEG format
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg
OPTIONS_DEFINE= GTK2 SDL PNG DV QUICKTIME SIMD DOCS
OPTIONS_DEFAULT=GTK2 SDL PNG
QUICKTIME_DESC= Enable libQuickTime support
CONFLICTS= mplex-[0-9]*
USES= pkgconfig
USE_GMAKE= yes
USE_AUTOTOOLS= libtoolize aclocal autoheader automake autoconf
LIBTOOLIZE_ARGS=--force
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
AUTOMAKEL_ARGS= --add-missing --foreign
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
CONFIGURE_ARGS= --without-x
USE_LDCONFIG= yes
MAN1= jpeg2yuv.1 lav2mpeg.1 lav2wav.1 lav2yuv.1 lavpipe.1 lavplay.1 \
lavrec.1 lavtrans.1 mjpegtools.1 mp2enc.1 mpeg2enc.1 mplex.1 \
pgmtoy4m.1 png2yuv.1 pnmtoy4m.1 ppmtoy4m.1 y4mcolorbars.1 \
y4mdenoise.1 y4munsharp.1 y4mtopnm.1 y4mtoppm.1 yuv2lav.1 \
yuvdenoise.1 yuvfps.1 yuvinactive.1 yuvkineco.1 \
yuvmedianfilter.1 yuvplay.1 yuvscaler.1 yuvycsnoise.1
MAN5= yuv4mpeg.5
INFO= mjpeg-howto
DOC_FILES= AUTHORS BUGS CHANGES ChangeLog HINTS NEWS PLANS README \
README.DV README.avilib README.glav README.AltiVec \
README.lavpipe README.transist TODO
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTK2}
.if empty(PORT_OPTIONS:MSDL)
IGNORE= GTK+2 player needs SDL
.endif # GTK2/SDL
USE_GNOME+= gtk20
PLIST_SUB+= GTK2:=""
.else
PLIST_SUB+= GTK2:="@comment "
CONFIGURE_ARGS+=--without-gtk
.endif # GTK2
.if ${PORT_OPTIONS:MSDL}
USE_SDL+= gfx sdl
PLIST_SUB+= SDL:=""
.else
CONFIGURE_ENV+= ac_cv_path_SDL_CONFIG=no
PLIST_SUB+= SDL:="@comment "
CONFIGURE_ARGS+=--without-libsdl
.endif # SDL
.if ${PORT_OPTIONS:MPNG}
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
CONFIGURE_ARGS+=--with-libpng
PLIST_SUB+= PNG:=""
.else
CONFIGURE_ARGS+=--without-libpng
PLIST_SUB+= PNG:="@comment "
.endif # PNG
.if ${PORT_OPTIONS:MDV}
LIB_DEPENDS+= dv:${PORTSDIR}/multimedia/libdv
CONFIGURE_ARGS+=--with-libdv
.else
CONFIGURE_ARGS+=--without-libdv
.endif # DV
.if ${PORT_OPTIONS:MQUICKTIME}
PLIST_SUB+= QUICKTIME=""
LIB_DEPENDS+= quicktime:${PORTSDIR}/multimedia/libquicktime
CONFIGURE_ARGS+=--with-libquicktime
.else
PLIST_SUB+= QUICKTIME="@comment "
CONFIGURE_ARGS+=--without-libquicktime
.endif # QUICKTIME
.if ${PORT_OPTIONS:MSIMD}
CONFIGURE_ARGS+=--enable-simd-accel
.else
CONFIGURE_ARGS+=--disable-simd-accel
.endif # SIMD
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
CFLAGS:= ${CFLAGS:N-O*:N-fno-strict*}
.endif
.if ${ARCH} == "powerpc" && ${OSVERSION} > 900000
BROKEN= Does not build on powerpc-9
.endif
post-patch:
@${REINPLACE_CMD} -e \
'/ARCHFLAGS=/s|^|#|g' ${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e \
'/^pkgconfigdir/s|$$(libdir)|$$(prefix)/libdata|g' ${WRKSRC}/Makefile.am
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif # NOPORTDOCS
.include <bsd.port.post.mk>
|