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:=88b867bc118a183af56efc67014bdf27
18 PKG_BUILD_DIR:=$(BUILD_DIR)/wxGTK-$(PKG_VERSION)
20 include $(INCLUDE_DIR)/package.mk
22 define Package/libwxbase
25 TITLE:=Cross-platform C++ framework
26 URL:=http://www.wxwidgets.org/
27 DEPENDS:=+libexpat +libstdcpp +zlib
30 define Package/libwxbase/description
31 wxBase contains most of the non-GUI classes from the wxWindows cross-
32 -platform C++ framework. There are 2 categories: generally useful portable
33 code (date/time handling, command line parsing, regular expression support)
34 and wrappers for the OS objects (files, directories, sockets, threads,
35 etc.) allowing you to write portable programs easily.
38 TARGET_CFLAGS += $(FPIC)
40 # XXX: aMule *needs* the following configure options to be enabled:
51 --disable-monolithic \
61 --disable-debug_flag \
62 --disable-debug_info \
64 --disable-debug_cntxt \
65 --disable-mem_tracing \
68 --disable-no_exceptions \
93 --without-gnomeprint \
100 --without-gtk-prefix \
102 --without-libiconv-prefix \
103 --without-sdl-prefix \
104 --without-cppunit-prefix \
108 ifeq ($(UNICODE),yes)
109 CONFIGURE_ARGS+= --enable-unicode
112 CONFIGURE_ARGS+= --disable-unicode
117 $(MAKE) -C $(PKG_BUILD_DIR) \
118 DESTDIR="$(PKG_INSTALL_DIR)" \
122 define Build/InstallDev
123 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/include $(1)/usr/lib
124 $(CP) -L $(PKG_BUILD_DIR)/wx-config $(1)/usr/bin/
125 $(CP) $(PKG_INSTALL_DIR)/usr/include/wx-2.8 $(1)/usr/include/
126 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwx_base$(LIB_PFX){,_net,_xml}-*.so* $(1)/usr/lib/
127 $(CP) $(PKG_INSTALL_DIR)/usr/lib/wx $(1)/usr/lib/
128 $(SED) 's,-I$$$${includedir}/wx-2.8,-I$(STAGING_DIR)/usr/include/wx-2.8,g' $(1)/usr/bin/wx-config
129 $(SED) 's,-I$$$${libdir}/wx/include,-I$(STAGING_DIR)/usr/lib/wx/include,g' $(1)/usr/bin/wx-config
132 define Package/libwxbase/install
133 $(INSTALL_DIR) $(1)/usr/lib
134 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwx_base$(LIB_PFX){,_net,_xml}-*.so.* $(1)/usr/lib/
137 $(eval $(call BuildPackage,libwxbase))