freebsd-ports/x11-toolkits/wxgtk/Makefile

99 lines
2.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: wxGTK
# Date created: September 18, 1999
# Whom: nectar@FreeBSD.ORG
#
1999-08-30 23:04:38 -04:00
# $FreeBSD$
#
2003-11-09 14:23:40 -05:00
PORTNAME= wx
PORTVERSION= 2.4.2
PORTREVISION?= 7
2003-11-09 14:23:40 -05:00
PKGNAMESUFFIX= ${WXGTK_FLAVOR}
CATEGORIES= x11-toolkits
2003-11-09 14:23:40 -05:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://wesley.informatik.uni-freiburg.de/pub/linux/wxxt/source/
2002-09-09 10:17:30 -04:00
MASTER_SITE_SUBDIR= wxwindows
DISTNAME= wxGTK-${PORTVERSION}
2003-11-09 14:23:40 -05:00
MAINTAINER?= fjoe@FreeBSD.org
COMMENT?= The wxWindows GUI toolkit with GTK+ bindings
2001-09-10 23:32:41 -04:00
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
2003-11-09 14:23:40 -05:00
tiff.4:${PORTSDIR}/graphics/tiff \
iconv.3:${PORTSDIR}/converters/libiconv
2002-09-09 10:17:30 -04:00
USE_BZIP2= yes
USE_X_PREFIX= yes
2003-11-09 14:23:40 -05:00
USE_GL= yes
USE_GMAKE= yes
USE_REINPLACE= yes
2001-05-28 16:10:54 -04:00
GNU_CONFIGURE= yes
2000-10-05 02:42:57 -04:00
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --with-libpng=sys \
--with-libjpeg=sys \
--with-libtiff=sys \
--with-zlib=sys \
2003-11-09 14:23:40 -05:00
--with-opengl
CONFIGURE_ENV= CPPFLAGS="-I${WRKSRC}/include \
-I${LOCALBASE}/include \
2003-11-09 14:23:40 -05:00
-I${X11BASE}/include \
${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib -liconv \
-L${X11BASE}/lib \
${PTHREAD_LIBS}"
MAKE_ENV= WXGTK_FLAVOR="${WXGTK_FLAVOR}"
PLIST= ${.CURDIR}/pkg-plist
2000-10-05 02:42:57 -04:00
2003-11-09 14:23:40 -05:00
WXGTK_FLAVOR?= gtk
.if ${WXGTK_FLAVOR} != "gtk-common"
RUN_DEPENDS= ${X11BASE}/include/wx/wx.h:${PORTSDIR}/x11-toolkits/wxgtk-common
.endif
.if ${WXGTK_FLAVOR:M*-common} != ""
NO_BUILD= yes
INSTALL_TARGET= install-common
.endif # *-common
.if ${WXGTK_FLAVOR:M*-contrib*} != ""
BUILD_WRKSRC= ${WRKSRC}/contrib/src
INSTALL_WRKSRC= ${BUILD_WRKSRC}
.if ${WXGTK_FLAVOR} != "gtk-contrib-common"
RUN_DEPENDS= ${X11BASE}/include/wx/stc/stc.h:${PORTSDIR}/x11-toolkits/wxgtk-contrib-common
.if ${WXGTK_FLAVOR} == "gtk-contrib"
LIB_DEPENDS+= wx_gtk-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk
2003-11-09 14:23:40 -05:00
.elif ${WXGTK_FLAVOR} == "gtk2-contrib"
LIB_DEPENDS+= wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2
.elif ${WXGTK_FLAVOR} == "gtk2-unicode-contrib"
LIB_DEPENDS+= wx_gtk2u-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2-unicode
.endif
.endif # !gtk-contrib-common
.endif # *-contrib*
.if ${WXGTK_FLAVOR:Mgtk2*} != ""
USE_GNOME= gtk20
CONFIGURE_ARGS+=--enable-gtk2 ${MACHINE_ARCH}-portbld-freebsd${OSREL}
.else
USE_GNOME= gtk12
CONFIGURE_ARGS+=--host=${CONFIGURE_TARGET} --build=${CONFIGURE_TARGET}
.endif
2003-11-09 14:23:40 -05:00
.include <bsd.port.pre.mk>
.if ${WXGTK_FLAVOR:M*-unicode*} != ""
.if ${OSVERSION} < 500000
IGNORE= Systems prior to FreeBSD 5.0 currently out of support
2003-11-09 14:23:40 -05:00
.endif
CONFIGURE_ARGS+=--enable-unicode
2003-11-09 14:23:40 -05:00
.endif # *-unicode*
pre-patch:
.if ${WXGTK_FLAVOR:Mgtk2*} != ""
@${REINPLACE_CMD} -e 's|lgdk|lgdk-x11-2.0|g' ${WRKSRC}/configure
.else
@${REINPLACE_CMD} -e 's|lgdk|lgdk12|g' ${WRKSRC}/configure
.endif
2000-10-05 02:42:57 -04:00
2003-11-09 14:23:40 -05:00
.include <bsd.port.post.mk>