2005-05-12 19:45:30 +02:00
|
|
|
# New ports collection makefile for: wxgtk26
|
2004-06-27 23:17:17 +02:00
|
|
|
# Date created: June 27, 2004
|
|
|
|
# Whom: fjoe@FreeBSD.ORG
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= wx
|
2008-07-07 18:39:04 +02:00
|
|
|
PORTVERSION= 2.8.8
|
|
|
|
PORTREVISION?= 0
|
2004-06-27 23:17:17 +02:00
|
|
|
CATEGORIES= x11-toolkits
|
- 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
|
|
|
MASTER_SITES= SF/wxwindows
|
2005-05-12 19:45:30 +02:00
|
|
|
PKGNAMESUFFIX= ${WXGTK_FLAVOR}
|
2006-12-03 16:35:23 +01:00
|
|
|
DISTNAME= wxGTK-${PORTVERSION:rc1=-rc1}
|
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
|
|
|
|
2004-11-25 21:06:45 +01:00
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png\
|
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg\
|
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff\
|
2006-01-31 00:20:05 +01:00
|
|
|
expat.6:${PORTSDIR}/textproc/expat2\
|
2006-04-30 01:03:03 +02:00
|
|
|
mspack.1:${PORTSDIR}/archivers/libmspack
|
2004-06-27 23:17:17 +02:00
|
|
|
|
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
|
|
|
|
USE_ICONV= yes
|
2007-01-08 19:37:22 +01:00
|
|
|
USE_GNOME= gtk20 gconf2
|
2006-12-03 16:35:23 +01:00
|
|
|
USE_GSTREAMER= yes
|
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\
|
2005-05-16 17:13:28 +02:00
|
|
|
--disable-backtrace
|
2006-12-03 16:35:23 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}"\
|
|
|
|
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"\
|
|
|
|
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}"
|
2004-06-27 23:17:17 +02:00
|
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
|
|
|
|
|
|
WXGTK_FLAVOR?= gtk2
|
|
|
|
|
2005-02-20 20:04:45 +01:00
|
|
|
.if ${WXGTK_FLAVOR} == "gtk2"
|
2007-06-24 19:50:53 +02:00
|
|
|
PORTREVISION= 0
|
2005-02-20 20:04:45 +01:00
|
|
|
.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' \
|
|
|
|
${WRKSRC}/configure
|
2004-06-27 23:17:17 +02:00
|
|
|
|
2007-10-04 08:27:14 +02:00
|
|
|
.include <bsd.port.mk>
|