openbsd-ports/x11/wxWidgets/Makefile

107 lines
2.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.40 2012/03/30 12:03:03 ajacoutot Exp $
SHARED_ONLY = Yes
COMMENT-main = C++ cross-platform GUI toolkit
COMMENT-media = wxMediaCtrl class for wxWidgets
V = 2.8.12
DISTNAME = wxWidgets-${V}
PKGNAME-main = wxWidgets-gtk2-${V}
PKGNAME-media = wxWidgets-media-${V}
REVISION-main = 4
REVISION-media =1
CATEGORIES = x11
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=wxwindows/}
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 \
wx_gtk2_media 2.1 \
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
HOMEPAGE = http://www.wxwidgets.org/
# modified LGPL
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
MULTI_PACKAGES = -main -media
WANTLIB += GL SM X11 Xcomposite Xcursor Xdamage Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0 expat
WANTLIB += fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0
WANTLIB += glib-2.0 gobject-2.0 gthread-2.0 gtk-x11-2.0
WANTLIB += jpeg m pango-1.0 pangoft2-1.0 pixman-1 png pthread-stubs
WANTLIB += stdc++ tiff xcb xcb-render xcb-shm z
MODULES = devel/gettext
BUILD_DEPENDS = devel/cppunit
LIB_DEPENDS = x11/gtk+2
REGRESS_DEPENDS = ${BUILD_PKGPATH}>=${V}
LIB_DEPENDS-main = ${LIB_DEPENDS} \
archivers/libmspack \
databases/iodbc \
devel/sdl
WANTLIB-main += ${WANTLIB} GLU SDL c iodbc mspack pthread
LIB_DEPENDS-media = ${LIB_DEPENDS} \
devel/gconf2 \
multimedia/gstreamer-0.10/core \
multimedia/gstreamer-0.10/plugins-base \
${BASE_PKGPATH},-main>=${V}
WANTLIB-media += ${WANTLIB} gconf-2 gstinterfaces-0.10 \
gstreamer-0.10 wx_base wx_gtk2_core xml2 \
gmodule-2.0
VMEM_WARNING = Yes
MAKE_FLAGS = WXUNICODEFLAG=""
.for _l _v in ${SHARED_LIBS}
MAKE_ENV += LIB${_l}_VERSION=${_v}
.endfor
USE_GMAKE = Yes
AUTOCONF_VERSION = 2.59
CONFIGURE_STYLE =autoconf no-autoheader
CONFIGURE_ARGS =--disable-backtrace \
--enable-mediactrl \
--enable-unicode \
--with-odbc \
--with-opengl \
--with-sdl \
--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
.ifdef DEBUG
CONFIGURE_ARGS += --enable-debug
.endif
do-regress:
@cd ${WRKSRC}/tests && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} && ./test
.include <bsd.port.mk>