Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= gmerlin-avdecoder |
8 |
PORTNAME= gmerlin-avdecoder |
9 |
PORTVERSION= 1.0.1 |
9 |
PORTVERSION= 1.1.0 |
10 |
PORTREVISION= 13 |
|
|
11 |
CATEGORIES= multimedia |
10 |
CATEGORIES= multimedia |
12 |
MASTER_SITES= SF/gmerlin/${PORTNAME}/${PORTVERSION} |
11 |
MASTER_SITES= SF/gmerlin/${PORTNAME}/${PORTVERSION} |
13 |
|
12 |
|
Lines 16-31
Link Here
|
16 |
|
15 |
|
17 |
LIB_DEPENDS= gavl.1:${PORTSDIR}/multimedia/gavl |
16 |
LIB_DEPENDS= gavl.1:${PORTSDIR}/multimedia/gavl |
18 |
|
17 |
|
19 |
GNU_CONFIGURE= yes |
|
|
20 |
USE_GETTEXT= yes |
21 |
CONFIGURE_ARGS= --without-cpuflags --without-doxygen |
22 |
USE_GNOME= gnomehack pkgconfig |
23 |
USE_LDCONFIG= yes |
24 |
|
25 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" |
26 |
|
27 |
PORTDOCS= README |
28 |
|
29 |
OPTIONS= GMERLIN "Enable gmerlin support" on \ |
18 |
OPTIONS= GMERLIN "Enable gmerlin support" on \ |
30 |
FFMPEG "Enable ffmpeg support" on \ |
19 |
FFMPEG "Enable ffmpeg support" on \ |
31 |
THEORA "Enable theora support" on \ |
20 |
THEORA "Enable theora support" on \ |
Lines 43-59
Link Here
|
43 |
MAD "Enable mp3 support" on \ |
32 |
MAD "Enable mp3 support" on \ |
44 |
A52 "Enable A52 support" on \ |
33 |
A52 "Enable A52 support" on \ |
45 |
DCA "Enable DTS Coherent Acoustics decoder" on \ |
34 |
DCA "Enable DTS Coherent Acoustics decoder" on \ |
46 |
LIBCDIO "Enable libcdio support" on \ |
35 |
CDIO "Enable libcdio support" on \ |
47 |
OPENJPEG "Enable JPEG2000 support" on \ |
36 |
OPENJPEG "Enable JPEG2000 support" on \ |
48 |
SCHROEDINGER "Enable dirac support" on \ |
37 |
SCHROEDINGER "Enable dirac support" on \ |
49 |
OPTIMIZED_CFLAGS "Additional optimizations" on |
38 |
OPTIMIZED_CFLAGS "Additional optimizations" on |
50 |
|
39 |
|
51 |
.include <bsd.port.pre.mk> |
40 |
USE_GNOME= gnomehack pkgconfig |
|
|
41 |
USE_GETTEXT= yes |
42 |
GNU_CONFIGURE= yes |
43 |
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" |
44 |
CONFIGURE_ARGS= --without-cpuflags --without-doxygen |
45 |
USE_LDCONFIG= yes |
52 |
|
46 |
|
53 |
# Hack for 6.x to properly detect ffmpeg |
47 |
CPPFLAGS= -I${LOCALBASE}/include |
54 |
.if ${OSVERSION} < 700000 |
48 |
LDFLAGS= -L${LOCALBASE}/lib |
55 |
CONFIGURE_ENV+= AVCODEC_LIBS="`pkg-config --libs libavcodec` ${PTHREAD_LIBS}" |
49 |
|
56 |
.endif |
50 |
.include <bsd.port.pre.mk> |
57 |
|
51 |
|
58 |
.if !defined(WITHOUT_GMERLIN) |
52 |
.if !defined(WITHOUT_GMERLIN) |
59 |
LIB_DEPENDS+= gmerlin.0:${PORTSDIR}/multimedia/gmerlin |
53 |
LIB_DEPENDS+= gmerlin.0:${PORTSDIR}/multimedia/gmerlin |
Lines 72-78
Link Here
|
72 |
.if !defined(WITHOUT_THEORA) |
66 |
.if !defined(WITHOUT_THEORA) |
73 |
LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora |
67 |
LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora |
74 |
.else |
68 |
.else |
75 |
CONFIGURE_ARGS+=--disable-theora |
69 |
CONFIGURE_ARGS+=--disable-theoradec |
76 |
.endif |
70 |
.endif |
77 |
|
71 |
|
78 |
.if !defined(WITHOUT_SPEEX) |
72 |
.if !defined(WITHOUT_SPEEX) |
Lines 94-105
Link Here
|
94 |
CONFIGURE_ARGS+=--disable-vorbis |
88 |
CONFIGURE_ARGS+=--disable-vorbis |
95 |
.endif |
89 |
.endif |
96 |
|
90 |
|
97 |
.if !defined(WITHOUT_VORBIS) |
|
|
98 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
99 |
.else |
100 |
CONFIGURE_ARGS+=--disable-vorbis |
101 |
.endif |
102 |
|
103 |
.if !defined(WITHOUT_MPEG2) |
91 |
.if !defined(WITHOUT_MPEG2) |
104 |
LIB_DEPENDS+= mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 |
92 |
LIB_DEPENDS+= mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 |
105 |
.else |
93 |
.else |
Lines 169-180
Link Here
|
169 |
CONFIGURE_ARGS+=--disable-libcda --disable-libdca |
157 |
CONFIGURE_ARGS+=--disable-libcda --disable-libdca |
170 |
.endif |
158 |
.endif |
171 |
|
159 |
|
172 |
.if !defined(WITHOUT_LIBCDIO) |
160 |
.if !defined(WITHOUT_CDIO) |
173 |
LIB_DEPENDS+= cdio.12:${PORTSDIR}/sysutils/libcdio |
161 |
LIB_DEPENDS+= cdio.12:${PORTSDIR}/sysutils/libcdio |
174 |
PLIST_SUB+= LIBCDIO="" |
162 |
PLIST_SUB+= CDIO="" |
175 |
.else |
163 |
.else |
176 |
CONFIGURE_ARGS+=--disable-libcdio |
164 |
CONFIGURE_ARGS+=--disable-libcdio |
177 |
PLIST_SUB+= LIBCDIO="@comment " |
165 |
PLIST_SUB+= CDIO="@comment " |
178 |
.endif |
166 |
.endif |
179 |
|
167 |
|
180 |
.if !defined(WITHOUT_OPENJPEG) |
168 |
.if !defined(WITHOUT_OPENJPEG) |
Lines 196-215
Link Here
|
196 |
.endif |
184 |
.endif |
197 |
|
185 |
|
198 |
post-patch: |
186 |
post-patch: |
199 |
@${REINPLACE_CMD} -e 's|-O3 -funroll-all-loops -ffast-math||g; \ |
187 |
@${REINPLACE_CMD} -e \ |
200 |
/LIBS/ s|-ldl||g; s|^LDFLAGS="|&$${LDFLAGS} |' \ |
188 |
's|-O3 -funroll-all-loops -ffast-math||g; \ |
201 |
${WRKSRC}/configure |
189 |
/LIBS/ s|-ldl||g; \ |
202 |
@${REINPLACE_CMD} -e 's|#if DVDREAD_VERSION < 905|#if DVDREAD_VERSION < 904|' \ |
190 |
s|^LDFLAGS="|&$${LDFLAGS} |' ${WRKSRC}/configure |
203 |
${WRKSRC}/configure |
191 |
@${REINPLACE_CMD} -e \ |
204 |
@${REINPLACE_CMD} -e '/^LIBS = / s|$$| @LIBINTL@ -lz|' \ |
192 |
's|#if DVDREAD_VERSION < 905|#if DVDREAD_VERSION < 904|' ${WRKSRC}/configure |
205 |
${WRKSRC}/tests/Makefile.in |
193 |
@${REINPLACE_CMD} -e \ |
206 |
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/lib/in_smb.c |
194 |
'/^LIBS = / s|$$| @LIBINTL@ -lz|' ${WRKSRC}/tests/Makefile.in |
207 |
@${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \ |
195 |
@${REINPLACE_CMD} -e \ |
208 |
${WRKSRC}/lib/pngreader.c |
196 |
's|malloc.h|stdlib.h|' ${WRKSRC}/lib/in_smb.c |
209 |
|
197 |
|
210 |
.if !defined(NOPORTDOCS) |
|
|
211 |
post-install: |
198 |
post-install: |
212 |
${MKDIR} ${DOCSDIR} |
199 |
.if !defined(NOPORTDOCS) |
|
|
200 |
@${MKDIR} ${DOCSDIR} |
213 |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
201 |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
214 |
.endif |
202 |
.endif |
215 |
|
203 |
|