summaryrefslogtreecommitdiff
path: root/x11/wxGTK28/Makefile.common
blob: 5d10714e68ed3672688ab039fd35d0ded0e18cd2 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# $NetBSD: Makefile.common,v 1.14 2012/10/29 05:06:56 asau Exp $
#
# used by x11/wxGTK28/Makefile
# used by x11/wxGTK28-contrib/Makefile

DISTNAME=		wxGTK-2.8.10
CATEGORIES=		x11
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=wxwindows/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		joerg@NetBSD.org
HOMEPAGE=		http://www.wxwidgets.org/

PATCHDIR=		${.CURDIR}/../../x11/wxGTK28/patches
DISTINFO_FILE=		${.CURDIR}/../../x11/wxGTK28/distinfo

PATCHFILES=		${DISTNAME}-libtool.diff.bz2
PATCH_SITES=		${MASTER_SITE_LOCAL}
PATCH_DIST_STRIP.${DISTNAME}-libtool.diff.bz2= -p1

USE_TOOLS+=		pkg-config msgfmt
USE_LIBTOOL=		yes
USE_PKGLOCALEDIR=	YES
USE_LANGUAGES=		c c++
GNU_CONFIGURE=		YES
USE_GNU_CONFIGURE_HOST=	no
CONFIGURE_ARGS+=	--with-gtk=2
CONFIGURE_ARGS+=	--with-libjpeg=sys
CONFIGURE_ARGS+=	--with-libpng=sys
CONFIGURE_ARGS+=	--with-libtiff=sys
CONFIGURE_ARGS+=	--with-opengl
CONFIGURE_ARGS+=	--with-expat=sys
CONFIGURE_ARGS+=	--with-zlib=sys
CONFIGURE_ARGS+=	--with-regex=builtin
CONFIGURE_ARGS+=	--enable-mediactrl

DOCDIR=			${PREFIX}/share/doc/wxGTK
PKGLOCALEDIR=		share

CONFIGURE_DIRS=	build-non-unicode build-unicode

INSTALL_MAKE_FLAGS+=	LN_S="ln -fs"

#CONFIGURE_ARGS+=	--enable-debug
#PLIST_SUBST+=	DEBUG_LIB=d DEBUG_CONFIG=-config

PLIST_SUBST+=	DEBUG_LIB= DEBUG_CONFIG=-release

SUBST_CLASSES+=			fix-paths
SUBST_STAGE.fix-paths=		pre-configure
SUBST_MESSAGE.fix-paths=	Fixing absolute paths.
SUBST_FILES.fix-paths=		configure
SUBST_SED.fix-paths=		-e 's,/usr/pkg/include,${PREFIX}/include,g'
SUBST_SED.fix-paths+=		-e 's,@PREFIX@,${PREFIX},g'

pre-configure:
	mkdir ${WRKSRC}/build-non-unicode ${WRKSRC}/build-unicode
	printf '#!%s\n../configure --enable-unicode "$$@"' ${SH} \
	    > ${WRKSRC}/build-unicode/configure
	printf '#!%s\n../configure --disable-unicode "$$@"' ${SH} \
	    > ${WRKSRC}/build-non-unicode/configure

.include "../../multimedia/gstreamer0.10/buildlink3.mk"
.include "../../multimedia/gst-plugins0.10-base/buildlink3.mk"
.include "../../devel/GConf/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"

.include "../../mk/pthread.buildlink3.mk"