2011-12-06 05:23:37 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.37 2011/12/06 10:23:37 dcoppa Exp $
|
2006-10-12 10:09:32 -04:00
|
|
|
|
2010-11-02 09:10:51 -04:00
|
|
|
SHARED_ONLY = Yes
|
2006-10-12 10:09:32 -04:00
|
|
|
|
2011-12-06 05:23:37 -05:00
|
|
|
COMMENT = C++ cross-platform GUI toolkit
|
2006-10-12 10:09:32 -04:00
|
|
|
|
2011-05-22 04:13:18 -04:00
|
|
|
V = 2.8.12
|
2010-11-02 09:10:51 -04:00
|
|
|
DISTNAME = wxWidgets-${V}
|
|
|
|
PKGNAME = wxWidgets-gtk2-${V}
|
2011-12-06 05:23:37 -05:00
|
|
|
REVISION = 1
|
|
|
|
CATEGORIES = x11
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=wxwindows/}
|
2009-10-04 14:22:31 -04:00
|
|
|
|
2011-05-22 04:13:18 -04:00
|
|
|
SHARED_LIBS = wx_base 2.1 \
|
|
|
|
wx_base_net 2.1 \
|
|
|
|
wx_base_odbc 2.1 \
|
|
|
|
wx_base_xml 2.1 \
|
|
|
|
wx_gtk2_adv 2.1 \
|
|
|
|
wx_gtk2_aui 2.1 \
|
|
|
|
wx_gtk2_core 2.1 \
|
|
|
|
wx_gtk2_dbgrid 2.1 \
|
|
|
|
wx_gtk2_fl 2.1 \
|
|
|
|
wx_gtk2_gizmos 2.1 \
|
|
|
|
wx_gtk2_gizmos_xrc 2.1 \
|
|
|
|
wx_gtk2_gl 2.1 \
|
|
|
|
wx_gtk2_html 2.1 \
|
2011-12-06 05:23:37 -05:00
|
|
|
wx_gtk2_media 2.1 \
|
2011-05-22 04:13:18 -04:00
|
|
|
wx_gtk2_ogl 2.1 \
|
|
|
|
wx_gtk2_plot 2.1 \
|
|
|
|
wx_gtk2_qa 2.1 \
|
|
|
|
wx_gtk2_richtext 2.1 \
|
|
|
|
wx_gtk2_stc 2.1 \
|
|
|
|
wx_gtk2_svg 2.1 \
|
|
|
|
wx_gtk2_xrc 2.1
|
2006-10-12 10:09:32 -04:00
|
|
|
|
2010-11-02 09:10:51 -04:00
|
|
|
HOMEPAGE = http://www.wxwidgets.org/
|
2006-10-12 10:09:32 -04:00
|
|
|
|
|
|
|
# modified LGPL
|
2010-11-02 09:10:51 -04:00
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
2006-10-12 10:09:32 -04:00
|
|
|
|
2011-12-06 05:23:37 -05:00
|
|
|
WANTLIB += GL GLU SDL SM X11 Xcomposite Xcursor Xdamage Xext Xfixes
|
|
|
|
WANTLIB += Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0 c expat
|
|
|
|
WANTLIB += fontconfig freetype gconf-2 gdk-x11-2.0 gdk_pixbuf-2.0
|
|
|
|
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gstinterfaces-0.10
|
|
|
|
WANTLIB += gstreamer-0.10 gthread-2.0 gtk-x11-2.0 iodbc jpeg m
|
|
|
|
WANTLIB += mspack pango-1.0 pangoft2-1.0 pixman-1 pthread pthread-stubs
|
|
|
|
WANTLIB += stdc++ tiff xcb xcb-render xcb-shm xml2 z
|
2006-10-12 10:09:32 -04:00
|
|
|
|
2010-11-02 09:10:51 -04:00
|
|
|
MODULES = devel/gettext
|
2006-10-12 10:09:32 -04:00
|
|
|
|
2010-11-22 03:36:47 -05:00
|
|
|
BUILD_DEPENDS = devel/cppunit
|
|
|
|
LIB_DEPENDS = archivers/libmspack \
|
2011-12-06 05:23:37 -05:00
|
|
|
databases/iodbc \
|
2010-11-22 03:36:47 -05:00
|
|
|
devel/sdl \
|
2011-12-06 05:23:37 -05:00
|
|
|
multimedia/gstreamer-0.10/core \
|
|
|
|
multimedia/gstreamer-0.10/plugins-base \
|
|
|
|
x11/gtk+2
|
|
|
|
REGRESS_DEPENDS = ${BUILD_PKGPATH}>=${V}
|
2010-11-02 09:10:51 -04:00
|
|
|
|
2011-12-06 05:23:37 -05:00
|
|
|
VMEM_WARNING = Yes
|
2007-10-23 07:28:09 -04:00
|
|
|
|
2011-12-06 05:23:37 -05:00
|
|
|
MAKE_FLAGS = WXUNICODEFLAG=""
|
|
|
|
.for _l _v in ${SHARED_LIBS}
|
|
|
|
MAKE_ENV += LIB${_l}_VERSION=${_v}
|
|
|
|
.endfor
|
2006-10-12 10:09:32 -04:00
|
|
|
|
2011-12-06 05:23:37 -05:00
|
|
|
USE_GMAKE = Yes
|
2010-11-02 09:10:51 -04:00
|
|
|
AUTOCONF_VERSION = 2.59
|
|
|
|
CONFIGURE_STYLE =autoconf no-autoheader
|
2011-12-06 05:23:37 -05:00
|
|
|
CONFIGURE_ARGS =--disable-backtrace \
|
|
|
|
--enable-mediactrl \
|
|
|
|
--enable-unicode \
|
|
|
|
--with-odbc \
|
2010-11-02 09:10:51 -04:00
|
|
|
--with-opengl \
|
|
|
|
--with-sdl \
|
2011-12-06 05:23:37 -05:00
|
|
|
--without-gnomeprint
|
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng -I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
|
|
|
|
ac_cv_lib_esd_esd_close=no
|
2006-10-12 10:09:32 -04:00
|
|
|
|
2010-11-04 08:05:25 -04:00
|
|
|
.ifdef DEBUG
|
|
|
|
CONFIGURE_ARGS += --enable-debug
|
|
|
|
.endif
|
|
|
|
|
2010-11-02 09:10:51 -04:00
|
|
|
do-regress:
|
|
|
|
@cd ${WRKSRC}/tests && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} && ./test
|
2006-10-12 10:09:32 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|