Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= gmerlin-avdecoder |
4 |
PORTNAME= gmerlin-avdecoder |
5 |
PORTVERSION= 1.2.0 |
5 |
PORTVERSION= 1.2.0 |
6 |
PORTREVISION= 15 |
6 |
PORTREVISION= 16 |
7 |
CATEGORIES= multimedia |
7 |
CATEGORIES= multimedia |
8 |
MASTER_SITES= SF/gmerlin/${PORTNAME}/${PORTVERSION} |
8 |
MASTER_SITES= SF/gmerlin/${PORTNAME}/${PORTVERSION} |
9 |
|
9 |
|
Lines 25-38
DVDREAD_DESC= libdvdread support
Link Here
|
25 |
GMERLIN_DESC= gmerlin support |
25 |
GMERLIN_DESC= gmerlin support |
26 |
SAMBA_DESC= Samba support using libsmbclient |
26 |
SAMBA_DESC= Samba support using libsmbclient |
27 |
|
27 |
|
28 |
USES= gettext libtool pathfix pkgconfig |
28 |
USES= gettext libtool localbase:ldflags pathfix pkgconfig |
29 |
GNU_CONFIGURE= yes |
29 |
GNU_CONFIGURE= yes |
30 |
CONFIGURE_ARGS= --with-cpuflags=none --without-doxygen |
30 |
CONFIGURE_ARGS= --with-cpuflags=none --without-doxygen |
31 |
USE_LDCONFIG= yes |
31 |
USE_LDCONFIG= yes |
32 |
|
32 |
|
33 |
CPPFLAGS+= -I${LOCALBASE}/include/ffmpeg0 -I${LOCALBASE}/include |
|
|
34 |
LDFLAGS+= -L${LOCALBASE}/lib/ffmpeg0 -L${LOCALBASE}/lib |
35 |
|
36 |
.include <bsd.port.options.mk> |
33 |
.include <bsd.port.options.mk> |
37 |
|
34 |
|
38 |
.if ${PORT_OPTIONS:MGMERLIN} |
35 |
.if ${PORT_OPTIONS:MGMERLIN} |
Lines 44-50
PLIST_SUB+= GMERLIN="@comment "
Link Here
|
44 |
.endif |
41 |
.endif |
45 |
|
42 |
|
46 |
.if ${PORT_OPTIONS:MFFMPEG} |
43 |
.if ${PORT_OPTIONS:MFFMPEG} |
47 |
LIB_DEPENDS+= libavcodec0.so:multimedia/ffmpeg0 |
44 |
LIB_DEPENDS+= libavcodec.so:multimedia/ffmpeg |
48 |
.else |
45 |
.else |
49 |
CONFIGURE_ARGS+=--disable-libavcodec --disable-libpostproc --disable-libswscale --disable-libavformat |
46 |
CONFIGURE_ARGS+=--disable-libavcodec --disable-libpostproc --disable-libswscale --disable-libavformat |
50 |
.endif |
47 |
.endif |
Lines 180-190
post-patch:
Link Here
|
180 |
's|-O3 -funroll-all-loops -ffast-math||g; \ |
177 |
's|-O3 -funroll-all-loops -ffast-math||g; \ |
181 |
/LIBS/ s|-ldl||g; \ |
178 |
/LIBS/ s|-ldl||g; \ |
182 |
s|^LDFLAGS="|&$${LDFLAGS} |' \ |
179 |
s|^LDFLAGS="|&$${LDFLAGS} |' \ |
183 |
-e 's|^(.*PKG_CONFIG.*)libavcodec(.*)|\1libavcodec0\2|g' \ |
|
|
184 |
-e 's|^(.*PKG_CONFIG.*)libavformat(.*)|\1libavformat0\2|g' \ |
185 |
-e 's|^(.*PKG_CONFIG.*)libavutil(.*)|\1libavutil0\2|g' \ |
186 |
-e 's|^(.*PKG_CONFIG.*)libpostproc(.*)|\1libpostproc0\2|g' \ |
187 |
-e 's|^(.*PKG_CONFIG.*)libswscale(.*)|\1libswscale0\2|g' \ |
188 |
${WRKSRC}/configure |
180 |
${WRKSRC}/configure |
189 |
@${REINPLACE_CMD} -e \ |
181 |
@${REINPLACE_CMD} -e \ |
190 |
's|#if DVDREAD_VERSION < 905|#if DVDREAD_VERSION < 904|' ${WRKSRC}/configure |
182 |
's|#if DVDREAD_VERSION < 905|#if DVDREAD_VERSION < 904|' ${WRKSRC}/configure |
Lines 192-197
post-patch:
Link Here
|
192 |
'/^LIBS = / s|$$| @LIBINTL@ -lz|' ${WRKSRC}/tests/Makefile.in |
184 |
'/^LIBS = / s|$$| @LIBINTL@ -lz|' ${WRKSRC}/tests/Makefile.in |
193 |
@${REINPLACE_CMD} -e \ |
185 |
@${REINPLACE_CMD} -e \ |
194 |
's|malloc.h|stdlib.h|' ${WRKSRC}/lib/in_smb.c |
186 |
's|malloc.h|stdlib.h|' ${WRKSRC}/lib/in_smb.c |
|
|
187 |
@${REINPLACE_CMD} -e 's/[[:<:]]CodecID/AV&/g' \ |
188 |
-e 's/[[:<:]]CODEC_ID/AV_&/g' \ |
189 |
-e 's/[[:<:]]PixelFormat/AV&/g' \ |
190 |
-e 's/[[:<:]]PIX_FMT/AV_&/g' \ |
191 |
-e 's/codec_alloc_frame/_frame_alloc/' \ |
192 |
${WRKSRC}/lib/*_ffmpeg.c |
195 |
|
193 |
|
196 |
post-install: |
194 |
post-install: |
197 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
195 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |