summaryrefslogtreecommitdiff
path: root/multimedia/gnash/Makefile
blob: ef2a6ee30f751c6014fa56d4e32a7fa5fcc4a537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# $NetBSD: Makefile,v 1.81 2014/02/12 23:18:16 tron Exp $
#

DISTNAME=		gnash-0.8.10
PKGREVISION=		30
CATEGORIES=		multimedia
MASTER_SITES=		${MASTER_SITE_GNU:=gnash/${PKGVERSION_NOREV}/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.gnashdev.org/
COMMENT=		GPL SWF player
LICENSE=		gnu-gpl-v3

USE_PKGLOCALEDIR=	yes
USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes
USE_TOOLS+=		bash gmake msgfmt pkg-config
INSTALL_TARGET=		install install-plugin

# /bin/sh finds a syntax error without line number
CONFIG_SHELL=		${TOOLS_BASH}
CONFIGURE_ARGS+=	--with-boost-incl=${BUILDLINK_PREFIX.boost-headers}/include
CONFIGURE_ARGS+=	--with-boost-lib=${BUILDLINK_PREFIX.boost-libs}/lib
CONFIGURE_ARGS+=	--without-gconf
CONFIGURE_ARGS+=	--with-x11-incl=${X11BASE}/include
CONFIGURE_ARGS+=	--with-x11-lib=${X11BASE}/lib

EGDIR=			${PREFIX}/share/examples/gnash
INSTALLATION_DIRS=	${EGDIR}
INSTALL_MAKE_FLAGS+=	sysconfdir=${EGDIR}
CONF_FILES+=		${EGDIR}/gnashpluginrc ${PKG_SYSCONFDIR}/gnashpluginrc
CONF_FILES+=		${EGDIR}/gnashrc ${PKG_SYSCONFDIR}/gnashrc

.include "options.mk"

#ld: .libs/libgnashplugin_la-plugin.o(.text+0x5564): unresolvable relocation
# against symbol `_ZNKSs5c_strEv'
BUILDLINK_TRANSFORM+=	rm:-fvisibility-inlines-hidden

.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CXXFLAGS+=	-std=c++11
.endif

.include "../../audio/speex/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/giflib.buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXi/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"