2 # Copyright (C) 2007-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=wxGTK-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/wxwindows
16 PKG_MD5SUM:=08f81ab60647308058f6ce99712b14f8
18 PKG_BUILD_DIR:=$(BUILD_DIR)/wxGTK-$(PKG_VERSION)
22 include $(INCLUDE_DIR)/package.mk
24 define Package/libwxbase
27 TITLE:=Cross-platform C++ framework
28 URL:=http://www.wxwidgets.org/
29 DEPENDS:=+libexpat +libstdcpp +zlib +libpthread
32 define Package/libwxbase/description
33 wxBase contains most of the non-GUI classes from the wxWindows cross-
34 -platform C++ framework. There are 2 categories: generally useful portable
35 code (date/time handling, command line parsing, regular expression support)
36 and wrappers for the OS objects (files, directories, sockets, threads,
37 etc.) allowing you to write portable programs easily.
40 TARGET_CFLAGS += $(FPIC)
42 # XXX: aMule *needs* the following configure options to be enabled:
53 --disable-monolithic \
63 --disable-debug_flag \
64 --disable-debug_info \
66 --disable-debug_cntxt \
67 --disable-mem_tracing \
70 --disable-no_exceptions \
95 --without-gnomeprint \
102 --without-gtk-prefix \
104 --without-libiconv-prefix \
105 --without-sdl-prefix \
106 --without-cppunit-prefix \
110 ifeq ($(UNICODE),yes)
111 CONFIGURE_ARGS+= --enable-unicode
114 CONFIGURE_ARGS+= --disable-unicode
118 define Build/InstallDev
119 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/include $(1)/usr/lib
120 $(CP) -L $(PKG_BUILD_DIR)/wx-config $(1)/usr/bin/
121 $(CP) $(PKG_INSTALL_DIR)/usr/include/wx-2.8 $(1)/usr/include/
122 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwx_base$(LIB_PFX){,_net,_xml}-*.so* $(1)/usr/lib/
123 $(CP) $(PKG_INSTALL_DIR)/usr/lib/wx $(1)/usr/lib/
124 $(SED) 's,-I$$$${includedir}/wx-2.8,-I$(STAGING_DIR)/usr/include/wx-2.8,g' $(1)/usr/bin/wx-config
125 $(SED) 's,-I$$$${libdir}/wx/include,-I$(STAGING_DIR)/usr/lib/wx/include,g' $(1)/usr/bin/wx-config
128 define Package/libwxbase/install
129 $(INSTALL_DIR) $(1)/usr/lib
130 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwx_base$(LIB_PFX){,_net,_xml}-*.so.* $(1)/usr/lib/
133 $(eval $(call BuildPackage,libwxbase))