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> |