freebsd-ports/x11-toolkits/wxgtk24/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

60 lines
1.4 KiB
Makefile

# New ports collection makefile for: wxGTK
# Date created: September 18, 1999
# Whom: nectar@FreeBSD.ORG
#
# $FreeBSD$
#
PORTNAME= wx
PORTVERSION= 2.4.2
PORTREVISION?= 20
PKGNAMESUFFIX= ${WXGTK_FLAVOR}
CATEGORIES= x11-toolkits
MASTER_SITES= SF/wxwindows/wxGTK/${PORTVERSION}
DISTNAME= wxGTK-${PORTVERSION}
MAINTAINER?= fjoe@FreeBSD.org
COMMENT?= The wxWidgets GUI toolkit with GTK+ bindings
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png \
jpeg.11:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff
USE_BZIP2= yes
USE_XORG= x11 sm xxf86vm xinerama
USE_GL= glu
USE_GMAKE= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_GNOME= gtk20
CONFIGURE_ARGS= --with-libpng=sys \
--with-libjpeg=sys \
--with-libtiff=sys \
--with-zlib=sys \
--with-opengl\
--enable-gtk2 \
--includedir=${PREFIX}/include/wx-2.4
CONFIGURE_ENV= X11BASE="${LOCALBASE}"
CPPFLAGS+= -I${WRKSRC}/include \
-I${LOCALBASE}/include \
${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib -liconv \
${PTHREAD_LIBS}
NO_LATEST_LINK= yes
PLIST= ${.CURDIR}/pkg-plist
WXGTK_FLAVOR?= gtk2
.include <bsd.port.pre.mk>
pre-patch:
@${REINPLACE_CMD} -e 's|lgdk|lgdk-x11-2.0|g' ${WRKSRC}/configure
post-patch:
@${REINPLACE_CMD} -e 's|pkg_config_args --cflags|pkg_config_args pangox --cflags|g ; \
s|pkg_config_args --libs|pkg_config_args pangox --libs|g ; \
s|png_check_sig|png_sig_cmp|g' \
${WRKSRC}/configure
.include <bsd.port.post.mk>