2013-03-22 09:16:07 +01:00
|
|
|
# Created by: fjoe@FreeBSD.ORG
|
2004-06-27 23:17:17 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= wx
|
2011-05-09 10:26:29 +02:00
|
|
|
PORTVERSION= 2.8.12
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION?= 1
|
2004-06-27 23:17:17 +02:00
|
|
|
CATEGORIES= x11-toolkits
|
2011-02-18 08:54:38 +01:00
|
|
|
MASTER_SITES= SF/wxwindows/${PORTVERSION}
|
2005-05-12 19:45:30 +02:00
|
|
|
PKGNAMESUFFIX= ${WXGTK_FLAVOR}
|
2011-02-18 08:54:38 +01:00
|
|
|
DISTNAME= wxGTK-${PORTVERSION}
|
2004-06-27 23:17:17 +02:00
|
|
|
|
|
|
|
MAINTAINER?= fjoe@FreeBSD.org
|
2005-05-12 19:45:30 +02:00
|
|
|
COMMENT?= The wxWidgets GUI toolkit with GTK+ bindings
|
2004-06-27 23:17:17 +02:00
|
|
|
|
2012-06-01 07:26:28 +02:00
|
|
|
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png\
|
2010-02-05 12:46:55 +01:00
|
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg\
|
2004-11-25 21:06:45 +01:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff\
|
2010-08-02 13:52:04 +02:00
|
|
|
expat.6:${PORTSDIR}/textproc/expat2
|
2004-06-27 23:17:17 +02:00
|
|
|
|
2013-04-28 00:09:15 +02:00
|
|
|
USES= iconv
|
2007-01-08 19:37:22 +01:00
|
|
|
USE_BZIP2= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11 sm xxf86vm xinerama
|
|
|
|
USE_GL= glu
|
2004-06-27 23:17:17 +02:00
|
|
|
USE_GMAKE= yes
|
2012-06-28 13:22:19 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2010-08-02 13:52:04 +02:00
|
|
|
USE_GNOME= gtk20
|
2004-06-27 23:17:17 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2004-11-25 21:06:45 +01:00
|
|
|
CONFIGURE_ARGS= --with-libpng=sys\
|
|
|
|
--with-libjpeg=sys\
|
|
|
|
--with-libtiff=sys\
|
|
|
|
--with-zlib=sys\
|
|
|
|
--with-expat=sys\
|
|
|
|
--with-opengl\
|
|
|
|
--with-mspack\
|
2005-05-16 17:13:28 +02:00
|
|
|
--with-gtk\
|
2006-01-18 08:39:33 +01:00
|
|
|
--enable-mediactrl\
|
2008-09-01 17:31:10 +02:00
|
|
|
--disable-backtrace\
|
|
|
|
--enable-graphics_ctx
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"\
|
2006-12-03 16:35:23 +01:00
|
|
|
WXCONFIG_CPPFLAGS="${PTHREAD_CFLAGS}"\
|
2006-12-03 18:15:19 +01:00
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"\
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
X11BASE="${LOCALBASE}"
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
2004-06-27 23:17:17 +02:00
|
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
|
|
|
|
|
|
WXGTK_FLAVOR?= gtk2
|
|
|
|
|
2013-03-22 09:16:07 +01:00
|
|
|
OPTIONS_DEFINE= GSTREAMER MSPACK
|
|
|
|
OPTIONS_DEFAULT= GSTREAMER MSPACK
|
|
|
|
MSPACK_DESC= MS archives support
|
2010-08-02 13:52:04 +02:00
|
|
|
|
2013-03-22 09:16:07 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2010-08-02 13:52:04 +02:00
|
|
|
|
2013-03-22 09:16:07 +01:00
|
|
|
.if ${PORT_OPTIONS:MGSTREAMER}
|
2010-08-02 13:52:04 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-mediactrl
|
|
|
|
USE_GNOME+= gconf2
|
|
|
|
USE_GSTREAMER= yes
|
|
|
|
PLIST_SUB+= GSTREAMER=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-mediactrl
|
|
|
|
PLIST_SUB+= GSTREAMER="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-22 09:16:07 +01:00
|
|
|
.if ${PORT_OPTIONS:MMSPACK}
|
2010-08-02 13:52:04 +02:00
|
|
|
CONFIGURE_ARGS+=--with-libmspack
|
|
|
|
LIB_DEPENDS+= mspack.1:${PORTSDIR}/archivers/libmspack
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libmspack
|
|
|
|
.endif
|
|
|
|
|
2004-06-27 23:17:17 +02:00
|
|
|
.if ${WXGTK_FLAVOR} != "gtk2-common"
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/include/wx-2.8/wx/wx.h:${PORTSDIR}/x11-toolkits/wxgtk28-common
|
2004-06-27 23:17:17 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${WXGTK_FLAVOR:M*-common} != ""
|
|
|
|
NO_BUILD= yes
|
|
|
|
INSTALL_TARGET= install-common
|
|
|
|
.else
|
2006-09-02 14:29:18 +02:00
|
|
|
USE_LDCONFIG= yes
|
2004-06-27 23:17:17 +02:00
|
|
|
.endif # *-common
|
|
|
|
|
2004-07-11 10:14:35 +02:00
|
|
|
.if ${WXGTK_FLAVOR:M*-contrib*} != ""
|
2004-06-27 23:17:17 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/contrib
|
|
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
|
|
|
|
.if ${WXGTK_FLAVOR} != "gtk2-contrib-common"
|
2007-10-28 15:56:33 +01:00
|
|
|
USE_WX= 2.8
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/include/wx-2.8/wx/stc/stc.h:${PORTSDIR}/x11-toolkits/wxgtk28-contrib-common
|
2004-06-27 23:17:17 +02:00
|
|
|
|
|
|
|
.if ${WXGTK_FLAVOR:M*-unicode*} != ""
|
2006-12-01 08:39:02 +01:00
|
|
|
WX_UNICODE= yes
|
2004-06-27 23:17:17 +02:00
|
|
|
.endif
|
|
|
|
|
2004-07-07 15:33:48 +02:00
|
|
|
pre-configure:
|
2004-11-25 21:06:45 +01:00
|
|
|
@${FIND} ${BUILD_WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
|
2006-12-01 08:39:02 +01:00
|
|
|
-e "s|@CXXFLAGS@|${CFLAGS} `${WX_CONFIG} --cxxflags`|" \
|
|
|
|
-e "s|@CFLAGS@|${CFLAGS} `${WX_CONFIG} --cflags`|" \
|
2005-05-30 16:47:25 +02:00
|
|
|
-e "s|@CPPFLAGS@||"
|
2004-06-27 23:17:17 +02:00
|
|
|
|
2005-05-22 17:02:07 +02:00
|
|
|
.endif # !gtk2-contrib-common
|
2004-11-25 21:06:45 +01:00
|
|
|
.endif # *-contrib*
|
|
|
|
|
2004-06-27 23:17:17 +02:00
|
|
|
.if ${WXGTK_FLAVOR:M*-unicode*} != ""
|
|
|
|
CONFIGURE_ARGS+=--enable-unicode
|
|
|
|
.endif
|
|
|
|
|
2006-12-01 08:39:02 +01:00
|
|
|
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' \
|
2010-03-28 17:02:31 +02:00
|
|
|
-e 's|png_check_sig|png_sig_cmp|g' \
|
2006-12-01 08:39:02 +01:00
|
|
|
${WRKSRC}/configure
|
2004-06-27 23:17:17 +02:00
|
|
|
|
2013-03-22 09:16:07 +01:00
|
|
|
.include <bsd.port.mk>
|