openbsd-ports/www/gnash/Makefile

74 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 2007/05/25 16:17:45 jakemsr Exp $
SHARED_ONLY= Yes
COMMENT= "flash player with firefox browser plugin"
DISTNAME= gnash-0.7.2
PKGNAME= ${DISTNAME}p5
SHARED_LIBS += gnashbase 1.0
SHARED_LIBS += gnashgeo 1.0
SHARED_LIBS += gnashamf 1.0
SHARED_LIBS += gnashserver 1.0
SHARED_LIBS += gnashbackend 1.0
SHARED_LIBS += gnashgui 1.0
EXTRACT_SUFX= .tar.bz2
CATEGORIES= www
MASTER_SITES= ftp://ftp.gnu.org/pub/gnu/gnash/0.7.2/
HOMEPAGE= http://www.gnu.org/software/gnash/
MAINTAINER= Deanna Phillips <deanna@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
LIBTOOL_FLAGS+= --tag=disable-static
MODULES= gettext
NO_REGRESS= "testsuite available at http://www.gnu.org/software/gnash/testcases"
USE_GMAKE= Yes
USE_LIBTOOL= Yes
USE_X11= Yes
BUILD_DEPENDS+= ::devel/boost
LIB_DEPENDS+= curl.>=4::net/curl \
xml2.>=9.0::textproc/libxml \
theora.>=2::multimedia/libtheora \
agg.>=2::graphics/agg \
avcodec.>=7,avutil.>=1,avformat.>=7::graphics/ffmpeg \
gdk_pixbuf-2.0,gtk-x11-2.0,gdk-x11-2.0::x11/gtk+2
WANTLIB= Xau Xcursor Xdmcp Xfixes Xi Xinerama Xrandr expat \
freetype fontconfig Xrender usbhid Xext X11 z \
stdc++ m pthread c ssl crypto ogg cairo \
glib-2.0 pango-1.0 pangoft2-1.0 pangocairo-1.0 pangox-1.0 \
gobject-2.0 gmodule-2.0 atk-1.0 png jpeg glitz SDL idn
CONFIGURE_STYLE=gnu
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ac_cv_lib_gsm_gsm_encode=no
CONFIGURE_ARGS+=--enable-plugin \
--enable-sound=SDL \
--with-plugindir=${LOCALBASE}/lib/mozilla-plugins \
--without-arts \
--disable-klash \
--enable-renderer=agg \
--enable-gui=gtk \
--with-mp3-decoder=ffmpeg \
--without-gcc-arch
MAKE_FLAGS+= libgnashbase_la_LDFLAGS='-version-info 1:0' \
libgnashgeo_la_LDFLAGS='-version-info 1:0' \
libgnashamf_la_LDFLAGS='-version-info 1:0' \
libgnashserver_la_LDFLAGS='-version-info 1:0' \
libgnashbackend_la_LDFLAGS='-version-info 1:0' \
libgnashgui_la_LDFLAGS='-version-info 1:0'
.include <bsd.port.mk>