mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
0d2725682b
structure (i.e. include/SDL for includes and sdl-config for configuration binary) - Update graphics/sdl_ttf to version 2.0.8 - Update graphics/sdl_image to version 1.2.5 - Update audio/sdl_mixer to version 1.2.7 - Update net/sdl_net to version 1.2.6 - Update Mk/bsd.sdl.mk accordingly - Fix dependent ports to fit the new directory structure and avoid several API breakages - Bump up portrevisions for all dependent ports to allow them to be upgraded by portupgrade/portmaster etc tools Approved by: kris (portmgr), sem (mentor)
65 lines
1.6 KiB
Makefile
65 lines
1.6 KiB
Makefile
# New ports collection makefile for: gnash
|
|
# Date created: 12 Jan 2006
|
|
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gnash
|
|
PORTVERSION= 0.7.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
|
|
|
MAINTAINER= amdmi3@mail.ru
|
|
COMMENT= GNU Flash movie player
|
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
ogg.5:${PORTSDIR}/audio/libogg
|
|
|
|
USE_BZIP2= yes
|
|
USE_GL= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_GNOME= gnomehier glib20 pkgconfig libxml2
|
|
USE_SDL= sdl mixer
|
|
USE_X_PREFIX= yes
|
|
USE_GCC= 3.4+
|
|
|
|
PLUGIN_DIR= ${PREFIX}/lib/browser_plugins
|
|
|
|
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -Wl,--rpath,${PREFIX}/lib/gnash" \
|
|
CFLAGS="-I${LOCALBASE}/include ${CFLAGS}"
|
|
|
|
CONFIGURE_ARGS= --libdir="${PREFIX}/lib/gnash" \
|
|
--with-plugindir=${PLUGIN_DIR}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64"
|
|
OPTIONS= PLUGIN "Enable firefox plugin" on
|
|
.else
|
|
OPTIONS= PLUGIN "Enable firefox plugin" off
|
|
.endif
|
|
|
|
.if !defined(WITH_PLUGIN)
|
|
CONFIGURE_ARGS+= --disable-plugin
|
|
PLIST_SUB+= PLUGIN="@comment "
|
|
.else
|
|
USE_GNOME+= atk pango gtk20
|
|
LIB_DEPENDS+= gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext
|
|
PLIST_SUB+= PLUGIN=""
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|gnash-dbg.log|.gnash-dbg.log|' ${WRKSRC}/libbase/log.h
|
|
@${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
|
|
.if !defined(WITH_PLUGIN)
|
|
@${REINPLACE_CMD} -e '/STD_DIRS/ s|plugin||' ${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|