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

(-)gnash/Makefile (-75 / +26 lines)
Lines 7-106 Link Here
7
7
8
PORTNAME=	gnash
8
PORTNAME=	gnash
9
PORTVERSION=	0.7
9
PORTVERSION=	0.7
10
PORTREVISION=	1
10
CATEGORIES=	graphics
11
CATEGORIES=	graphics
11
MASTER_SITES=	http://www.gnu.org/software/gnash/releases/
12
MASTER_SITES=	${MASTER_SITE_LOCAL}
12
DISTNAME=	${PORTNAME}-20051226
13
DISTNAME=	${PORTNAME}-20060407
13
14
14
MAINTAINER=	amdmi3@mail.ru
15
MAINTAINER=	amdmi3@mail.ru
15
COMMENT=	GNU Flash movie player
16
COMMENT=	GNU Flash movie player
16
17
17
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
18
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
18
		jpeg.9:${PORTSDIR}/graphics/jpeg
19
		jpeg.9:${PORTSDIR}/graphics/jpeg \
20
		ogg.5:${PORTSDIR}/audio/libogg \
21
		gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext \
22
		gstreamer-0.8.5:${PORTSDIR}/multimedia/gstreamer
23
BUILD_DEPENDS=	${LOCALBASE}/bin/xml2-config:${PORTSDIR}/textproc/libxml2
19
24
20
USE_X_PREFIX=	yes
21
USE_GNOME=	gnomehier
22
USE_SDL=	sdl mixer
23
USE_BZIP2=	yes
25
USE_BZIP2=	yes
24
USE_GL=		yes
26
USE_GL=		yes
25
USE_GMAKE=	yes
27
USE_GMAKE=	yes
26
USE_REINPLACE=	yes
28
USE_GNOME=	gnomehier gtk20 glib20 atk pango pkgconfig
29
USE_SDL=	sdl mixer
30
USE_X_PREFIX=	yes
27
GNU_CONFIGURE=	yes
31
GNU_CONFIGURE=	yes
28
#INSTALLS_OMF=	yes
29
USE_GCC=	3.4+
30
32
31
WRKSRC=		${WRKDIR}/${PORTNAME}-0.7
33
PANGO_VERSION=	1.0
34
GSTREAMER_VERSION=	0.8
35
PLUGIN_DIR=	${PREFIX}/lib/browser_plugins
32
36
33
CPPFLAGS=	`${SDL_CONFIG} --cflags` -I${X11BASE}/include
37
CPPFLAGS=	`${SDL_CONFIG} --cflags` -I${X11BASE}/include
34
LDFLAGS=	`${SDL_CONFIG} --libs` -L${X11BASE}/lib -Wl,--rpath,${PREFIX}/lib/gnash
38
LDFLAGS=	`${SDL_CONFIG} --libs` -L${X11BASE}/lib -Wl,--rpath,${PREFIX}/lib/gnash
35
39
36
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
40
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
37
CONFIGURE_ARGS=	--program-prefix=''
38
39
INSTALLS_SHLIB=	yes
40
LDCONFIG_DIRS=	%%PREFIX%%/lib %%PREFIX%%/lib/gnash
41
41
42
MAN1=		gnash.1
42
CONFIGURE_ARGS=	--with-sdl-incl="${LOCALBASE}/include/SDL11" --with-pango-incl="${X11BASE}/include/pango-${PANGO_VERSION}" \
43
		--with-pango-lib="${X11BASE}/lib" --with-gstreamer-incl="${X11BASE}/include/gstreamer-${GSTREAMER_VERSION}" \
44
		--with-gstreamer-lib="${X11BASE}/lib" --libdir="${PREFIX}/lib/gnash" --with-plugindir=${PLUGIN_DIR}
43
45
44
# As the project was just recently announced, firefox plugin doesn't work
46
WRKSRC=		${WRKDIR}/${PORTNAME}-0.7
45
# correctly yet. You can still try it with specifying WITH_FIREFOX=yes as
46
# make parameter - feel free to mail reports (preferrably of success) and
47
# your ideas to port maintainer.
48
# See also http://lists.gnu.org/archive/html/gnash/
49
50
OPTIONS=	XML "Enable support for xml and xmlsocket" off
51
#		FIREFOX "Build firefox plugin" off
52
53
.include <bsd.port.pre.mk>
54
55
.if defined(WITH_FIREFOX)
56
BUILD_DEPENDS+=		${X11BASE}/bin/firefox-config:${PORTSDIR}/www/firefox
57
CONFIGURE_ARGS+=	--enable-plugin
58
CPPFLAGS+=		`firefox-config --cflags`
59
LDFLAGS+=		`firefox-config --libs`
60
PLIST_SUB=		PLUGIN:=""
61
.else
62
CONFIGURE_ARGS+=	--disable-reader
63
PLIST_SUB=		PLUGIN:="@comment "
64
.endif
65
66
.if defined(WITH_XML)
67
BUILD_DEPENDS+=		${LOCALBASE}/bin/xml2-config:${PORTSDIR}/textproc/libxml2
68
CPPFLAGS+=		`xml2-config --cflags`
69
LDFLAGS+=		`xml2-config --libs`
70
.else
71
CONFIGURE_ARGS+=	--disable-xml
72
.endif
73
74
post-extract:
75
	@${FIND} ${WRKSRC} -name "*.cpp" -o -name "*.h" | \
76
		${XARGS} ${REINPLACE_CMD} -e "s|$$(${PRINTF} '\r')||g"
77
47
78
post-patch:
48
post-patch:
79
	@${REINPLACE_CMD} -e '/INCLUDES/ s|$$(srcdir)||' ${WRKSRC}/libgeometry/Makefile.in ${WRKSRC}/libbase/Makefile.in
49
	@${REINPLACE_CMD} -e 's|-lSDL\([ "]\)|`${SDL_CONFIG} --libs`\1|' ${WRKSRC}/configure
80
	@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/libbase/dlmalloc.c ${WRKSRC}/libbase/dlmalloc.h
50
	@${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/configure
81
	@${REINPLACE_CMD} -e '/APPLE_CC/ s|^.*$$|#if 0|' ${WRKSRC}/libbase/utility.cpp
51
	@${REINPLACE_CMD} -e 's|libpangopango-x11|libpango|g' ${WRKSRC}/configure
82
	@${REINPLACE_CMD} -e '/cd doc/ s|^.*$$|	@true|; /DIRS/ s/ doc//' ${WRKSRC}/Makefile.in
52
	@${REINPLACE_CMD} -e '/Check whether --with-pango_lib/,/Atk/ s|$${version}|${PANGO_VERSION}|g' ${WRKSRC}/configure
83
	@${REINPLACE_CMD} -e '/^include_HEADERS/ s|^|#|' ${WRKSRC}/Makefile.in
53
	@${REINPLACE_CMD} -e 's|libgstreamergstreamer-x11|libgstreamer|g' ${WRKSRC}/configure
84
	@${REINPLACE_CMD} -e '/FIREFOX_PLUGINS=.*FIREFOX_LIBS/ s|^.*$$|FIREFOX_PLUGINS=${X11BASE}/lib/browser_plugins|' ${WRKSRC}/configure
54
	@${REINPLACE_CMD} -e 's|gstreamer/gstreamergl.h|gst/gst.h|g' ${WRKSRC}/configure
85
.if !defined(WITH_FIREFOX)
55
	@${REINPLACE_CMD} -e '/Check whether --with-gstreamer_lib/,/Gtk GL/ s|$${version}|${GSTREAMER_VERSION}|g' ${WRKSRC}/configure
86
	@${REINPLACE_CMD} -e 's|firefox-config|firefox-config1|g' ${WRKSRC}/configure
87
.endif
88
89
.if defined(WITH_FIREFOX)
90
pre-install:
91
	${MKDIR} ${PREFIX}/lib/browser_plugins
92
.endif
93
94
post-install:
95
	${INSTALL_MAN} ${WRKSRC}/doc/C/gnash.1 ${PREFIX}/man/man1
96
	${MKDIR} ${PREFIX}/share/gnome/omf/gnash
97
	${INSTALL_DATA} ${WRKSRC}/doc/C/gnash.omf ${PREFIX}/share/gnome/omf/gnash
98
.if !defined(NOPORTDOCS)
99
	${MKDIR} ${DOCSDIR}/images
100
.for i in gnash.html gnash.pdf gnash.xml legal.xml
101
	${INSTALL_DATA} ${WRKSRC}/doc/C/${i} ${DOCSDIR}
102
.endfor
103
	${INSTALL_DATA} ${WRKSRC}/doc/C/images/* ${DOCSDIR}/images
104
.endif
105
56
106
.include <bsd.port.post.mk>
57
.include <bsd.port.mk>
(-)gnash/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (gnash-20051226.tar.bz2) = 16d3261d0ec22be7cc738e30b42dc9ac
1
MD5 (gnash-20060407.tar.bz2) = 60eb3b2aecb3409752923987a739c9d3
2
SHA256 (gnash-20051226.tar.bz2) = 49a1e958d1cf62e8cda1605abeb61b7924f3f0bb5978f78ff08d657243263350
2
SHA256 (gnash-20060407.tar.bz2) = e260a478038bae2689e63b74fcd9db111459aa5228720aaca6bbb823d6a2c22c
3
SIZE (gnash-20051226.tar.bz2) = 742001
3
SIZE (gnash-20060407.tar.bz2) = 3719044
(-)gnash/pkg-plist (-22 / +26 lines)
Lines 1-26 Link Here
1
bin/gnash
1
bin/gnash
2
bin/gparser
2
bin/gparser
3
bin/gprocessor
3
bin/gprocessor
4
lib/gnash/libbase.a
4
lib/browser_plugins/libgnashplugin.so
5
lib/gnash/libbase.la
5
lib/gnash/libgnashasobjs.a
6
lib/gnash/libbase.so
6
lib/gnash/libgnashasobjs.la
7
lib/gnash/libbase.so.0
7
lib/gnash/libgnashasobjs.so
8
lib/gnash/libgeometry.a
8
lib/gnash/libgnashasobjs.so.0
9
lib/gnash/libgeometry.la
9
lib/gnash/libgnashbackend.a
10
lib/gnash/libgeometry.so
10
lib/gnash/libgnashbackend.la
11
lib/gnash/libgeometry.so.0
11
lib/gnash/libgnashbackend.so
12
lib/gnash/libserver.a
12
lib/gnash/libgnashbackend.so.0
13
lib/gnash/libserver.la
13
lib/gnash/libgnashbase.a
14
lib/gnash/libserver.so
14
lib/gnash/libgnashbase.la
15
lib/gnash/libserver.so.0
15
lib/gnash/libgnashbase.so
16
%%PLUGIN:%%lib/browser_plugins/libgnash.so
16
lib/gnash/libgnashbase.so.0
17
share/gnome/omf/gnash/gnash.omf
17
lib/gnash/libgnashgeo.a
18
%%PORTDOCS%%%%DOCSDIR%%/gnash.html
18
lib/gnash/libgnashgeo.la
19
%%PORTDOCS%%%%DOCSDIR%%/gnash.pdf
19
lib/gnash/libgnashgeo.so
20
%%PORTDOCS%%%%DOCSDIR%%/gnash.xml
20
lib/gnash/libgnashgeo.so.0
21
%%PORTDOCS%%%%DOCSDIR%%/legal.xml
21
lib/gnash/libgnashserver.a
22
%%PORTDOCS%%%%DOCSDIR%%/images/car_crash.png
22
lib/gnash/libgnashserver.la
23
lib/gnash/libgnashserver.so
24
lib/gnash/libgnashserver.so.0
25
lib/gnash/libmozsdk.a
26
lib/gnash/libmozsdk.la
27
lib/gnash/libmozsdk.so
28
lib/gnash/libmozsdk.so.0
23
@dirrm lib/gnash
29
@dirrm lib/gnash
24
@dirrm share/gnome/omf/gnash
30
@dirrmtry lib/browser_plugins
25
%%PORTDOCS%%@dirrm %%DOCSDIR%%/images
26
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 95605