aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/wxgtk29/Makefile
blob: 595ccc5fd615578054c4077ed64dda14b826211e (plain) (blame)
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
# Created by: fjoe@FreeBSD.ORG
# $FreeBSD$

PORTNAME=   wx
PORTVERSION=    2.9.4
PORTREVISION=   1
CATEGORIES= x11-toolkits
MASTER_SITES=   SF/wxwindows/${PORTVERSION}
PKGNAMESUFFIX=  gtk2
DISTNAME=   wxWidgets-${PORTVERSION}

MAINTAINER?=    fjoe@FreeBSD.org
COMMENT?=   The wxWidgets GUI toolkit with GTK+ bindings

LIB_DEPENDS+=   png15:${PORTSDIR}/graphics/png\
        jpeg.11:${PORTSDIR}/graphics/jpeg\
        tiff.4:${PORTSDIR}/graphics/tiff\
        expat.6:${PORTSDIR}/textproc/expat2\
        inotify.0:${PORTSDIR}/devel/libinotify\
        webkitgtk-1.0.0:${PORTSDIR}/www/webkit-gtk2

USES+=      iconv
USE_BZIP2=  yes
USE_GCC=    any
USE_XORG=   x11 sm xxf86vm xinerama
USE_GL=     glu
USE_GMAKE=  yes
USE_GNOME=  gtk20
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-libpng=sys\
        --with-libjpeg=sys\
        --with-libtiff=sys\
        --with-zlib=sys\
        --with-expat=sys\
        --with-opengl\
        --with-mspack\
        --with-gtk\
        --enable-mediactrl\
        --disable-backtrace\
        --enable-graphics_ctx
CONFIGURE_ENV=  LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} -linotify"\
        PTHREAD_LIBS="${PTHREAD_LIBS}"\
        X11BASE="${LOCALBASE}"
CPPFLAGS+=  -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
NO_LATEST_LINK= yes

OPTIONS_DEFINE= GSTREAMER MSPACK
OPTIONS_DEFAULT=    GSTREAMER MSPACK
MSPACK_DESC=    MS archives support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGSTREAMER}
CONFIGURE_ARGS+=--enable-mediactrl
USE_GNOME+= gconf2
USE_GSTREAMER=  yes
PLIST_SUB+= GSTREAMER=""
.else
CONFIGURE_ARGS+=--disable-mediactrl
PLIST_SUB+= GSTREAMER="@comment "
.endif

.if ${PORT_OPTIONS:MMSPACK}
CONFIGURE_ARGS+=--with-libmspack
LIB_DEPENDS+=   mspack.1:${PORTSDIR}/archivers/libmspack
.else
CONFIGURE_ARGS+=--without-libmspack
.endif

.include <bsd.port.mk>