View | Details | Raw Unified | Return to bug 158467
Collapse All | Expand All

(-)multimedia/gmerlin-avdecoder/Makefile (-40 / +28 lines)
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
(-)multimedia/gmerlin-avdecoder/distinfo (-3 / +2 lines)
Lines 1-3 Link Here
1
MD5 (gmerlin-avdecoder-1.0.1.tar.gz) = 1ae5911a3d90d7afa773e949a1168f31
1
SHA256 (gmerlin-avdecoder-1.1.0.tar.gz) = b0a9efcf152321d8829d2023660c8d14fdde894dc8881bdd67269c4f4cb4cc35
2
SHA256 (gmerlin-avdecoder-1.0.1.tar.gz) = 97f127b1e8bf3e54f61f744f7cbd983d2cb28cb9ce3f149c2b92851ec30929d2
2
SIZE (gmerlin-avdecoder-1.1.0.tar.gz) = 1472068
3
SIZE (gmerlin-avdecoder-1.0.1.tar.gz) = 1393783
(-)multimedia/gmerlin-avdecoder/pkg-plist (-4 / +9 lines)
Lines 1-16 Link Here
1
bin/bgavavdemux
1
bin/bgavdump
2
bin/bgavdump
2
include/gmerlin/avdec.h
3
include/gmerlin/avdec.h
3
include/gmerlin/bgavdefs.h
4
include/gmerlin/bgavdefs.h
4
include/gmerlin/bgav_version.h
5
include/gmerlin/bgav_version.h
5
%%GMERLIN%%lib/gmerlin/plugins/i_avdec.la
6
%%GMERLIN%%lib/gmerlin/plugins/i_avdec.la
6
%%GMERLIN%%lib/gmerlin/plugins/i_avdec.so
7
%%GMERLIN%%lib/gmerlin/plugins/i_avdec.so
7
%%LIBCDIO%%%%DVDREAD%%lib/gmerlin/plugins/i_dvd.la
8
lib/gmerlin/plugins/i_dvb.la
8
%%LIBCDIO%%%%DVDREAD%%lib/gmerlin/plugins/i_dvd.so
9
lib/gmerlin/plugins/i_dvb.so
9
%%LIBCDIO%%lib/gmerlin/plugins/i_vcd.la
10
%%CDIO%%%%DVDREAD%%lib/gmerlin/plugins/i_dvd.la
10
%%LIBCDIO%%lib/gmerlin/plugins/i_vcd.so
11
%%CDIO%%%%DVDREAD%%lib/gmerlin/plugins/i_dvd.so
12
%%CDIO%%lib/gmerlin/plugins/i_vcd.la
13
%%CDIO%%lib/gmerlin/plugins/i_vcd.so
11
lib/libgmerlin_avdec.la
14
lib/libgmerlin_avdec.la
12
lib/libgmerlin_avdec.so
15
lib/libgmerlin_avdec.so
13
lib/libgmerlin_avdec.so.1
16
lib/libgmerlin_avdec.so.1
14
libdata/pkgconfig/gmerlin_avdec.pc
17
libdata/pkgconfig/gmerlin_avdec.pc
18
%%PORTDOCS%%%%DOCSDIR%%/README
15
share/locale/de/LC_MESSAGES/gmerlin-avdecoder.mo
19
share/locale/de/LC_MESSAGES/gmerlin-avdecoder.mo
20
%%PORTDOCS%%@dirrm %%DOCSDIR%%
16
@dirrmtry include/gmerlin
21
@dirrmtry include/gmerlin

Return to bug 158467