2006-01-14 21:38:18 +01:00
|
|
|
# New ports collection makefile for: gnash
|
|
|
|
# Date created: 12 Jan 2006
|
|
|
|
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gnash
|
2006-05-08 07:46:58 +02:00
|
|
|
PORTVERSION= 0.7.1
|
2006-09-20 13:21:59 +02:00
|
|
|
PORTREVISION= 1
|
2006-01-14 21:38:18 +01:00
|
|
|
CATEGORIES= graphics
|
2006-05-08 07:46:58 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
2006-01-14 21:38:18 +01:00
|
|
|
|
|
|
|
MAINTAINER= amdmi3@mail.ru
|
|
|
|
COMMENT= GNU Flash movie player
|
|
|
|
|
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
2006-04-22 15:52:03 +02:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2006-04-27 08:41:12 +02:00
|
|
|
ogg.5:${PORTSDIR}/audio/libogg
|
2006-01-14 21:38:18 +01:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GL= yes
|
|
|
|
USE_GMAKE= yes
|
2006-05-08 07:46:58 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-04-27 08:41:12 +02:00
|
|
|
USE_GNOME= gnomehier glib20 pkgconfig libxml2
|
2006-04-22 15:52:03 +02:00
|
|
|
USE_SDL= sdl mixer
|
|
|
|
USE_X_PREFIX= yes
|
2006-01-14 21:38:18 +01:00
|
|
|
USE_GCC= 3.4+
|
|
|
|
|
2006-04-22 15:52:03 +02:00
|
|
|
PLUGIN_DIR= ${PREFIX}/lib/browser_plugins
|
2006-01-14 21:38:18 +01:00
|
|
|
|
2006-09-20 13:21:59 +02:00
|
|
|
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -Wl,--rpath,${PREFIX}/lib/gnash" \
|
|
|
|
CFLAGS="-I${LOCALBASE}/include ${CFLAGS}"
|
2006-01-14 21:38:18 +01:00
|
|
|
|
2006-04-22 15:52:03 +02:00
|
|
|
CONFIGURE_ARGS= --libdir="${PREFIX}/lib/gnash" \
|
|
|
|
--with-plugindir=${PLUGIN_DIR}
|
2006-01-14 21:38:18 +01:00
|
|
|
|
2006-09-11 08:03:55 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64"
|
2006-09-10 02:11:27 +02:00
|
|
|
OPTIONS= PLUGIN "Enable firefox plugin" on
|
|
|
|
.else
|
2006-04-27 08:41:12 +02:00
|
|
|
OPTIONS= PLUGIN "Enable firefox plugin" off
|
2006-09-10 02:11:27 +02:00
|
|
|
.endif
|
2006-04-27 08:41:12 +02:00
|
|
|
|
|
|
|
.if !defined(WITH_PLUGIN)
|
|
|
|
CONFIGURE_ARGS+= --disable-plugin
|
|
|
|
PLIST_SUB+= PLUGIN="@comment "
|
|
|
|
.else
|
|
|
|
USE_GNOME+= atk pango gtk20
|
2006-07-02 18:28:43 +02:00
|
|
|
LIB_DEPENDS+= gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext
|
2006-04-27 08:41:12 +02:00
|
|
|
PLIST_SUB+= PLUGIN=""
|
|
|
|
.endif
|
|
|
|
|
2006-01-14 21:38:18 +01:00
|
|
|
post-patch:
|
2006-06-05 22:27:40 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|gnash-dbg.log|.gnash-dbg.log|' ${WRKSRC}/libbase/log.h
|
2006-05-08 07:46:58 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g;s|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2006-04-27 08:41:12 +02:00
|
|
|
.if !defined(WITH_PLUGIN)
|
2006-05-08 07:46:58 +02:00
|
|
|
@${REINPLACE_CMD} -e '/STD_DIRS/ s|plugin||' ${WRKSRC}/Makefile.in
|
2006-04-27 08:41:12 +02:00
|
|
|
.endif
|
2006-01-14 21:38:18 +01:00
|
|
|
|
2006-04-27 08:41:12 +02:00
|
|
|
.include <bsd.port.post.mk>
|