2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=wxBase-
$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=@SF
/wxwindows
17 PKG_MD5SUM
:=6e55324d2a522d23fd8834ad8656e0b6
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/wxBase-
$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libwxbase
26 TITLE
:=Cross-platform C
++ framework
27 URL
:=http
://www.wxwidgets.org
/
28 DEPENDS
:=+libexpat
+uclibcxx
+zlib
31 define Package
/libwxbase
/description
32 wxBase contains most of the non-GUI classes from the wxWindows cross-
33 -platform C
++ framework. There are
2 categories
: generally useful portable
34 code
(date
/time handling
, command line parsing
, regular expression support
)
35 and wrappers for the OS objects
(files
, directories
, sockets
, threads
,
36 etc.
) allowing you to write portable programs easily.
40 # XXX: aMule *needs* the following configure options to be enabled:
50 --disable-monolithic \
60 --disable-debug_flag \
61 --disable-debug_info \
63 --disable-debug_cntxt \
64 --disable-mem_tracing \
67 --disable-no_exceptions \
93 --without-gnomeprint \
100 --without-gtk-prefix \
102 --without-libiconv-prefix \
103 --without-sdl-prefix \
104 --without-cppunit-prefix \
110 DESTDIR
="$(PKG_INSTALL_DIR)" \
113 define Build
/InstallDev
114 mkdir
-p
$(STAGING_DIR
)/usr
/bin
115 $(CP
) -L
$(PKG_INSTALL_DIR
)/usr
/bin
/wx-config
$(STAGING_DIR
)/usr
/bin
/
116 mkdir
-p
$(STAGING_DIR
)/usr
/include
117 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/wx-2.6
$(STAGING_DIR
)/usr
/include/
118 mkdir
-p
$(STAGING_DIR
)/usr
/lib
119 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libwx_base
{,_net
,_xml
}-2.6-*.so
$(STAGING_DIR
)/usr
/lib
/
120 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libwx_base
{,_net
,_xml
}-2.6.so.
* $(STAGING_DIR
)/usr
/lib
/
121 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/wx
$(STAGING_DIR
)/usr
/lib
/
122 $(SED
) 's,-I$$$${includedir}/wx-2.6,-I$(STAGING_DIR)/usr/include/wx-2.6,g' $(STAGING_DIR
)/usr
/bin
/wx-config
123 $(SED
) 's,-I$$$${libdir}/wx/include,-I$(STAGING_DIR)/usr/lib/wx/include,g' $(STAGING_DIR
)/usr
/bin
/wx-config
126 define Build
/UninstallDev
127 rm -rf
$(STAGING_DIR
)/usr
/bin
/wx-config \
128 $(STAGING_DIR
)/usr
/include/wx-2.6 \
129 $(STAGING_DIR
)/usr
/lib
/libwx_base
{,_net
,_xml
}-2.6-*.so \
130 $(STAGING_DIR
)/usr
/lib
/libwx_base
{,_net
,_xml
}-2.6.so.
* \
131 $(STAGING_DIR
)/usr
/lib
/wx
134 define Package
/libwxbase
/install
135 $(INSTALL_DIR
) $(1)/usr
/lib
136 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libwx_base
{,_net
,_xml
}-2.6.so.
* $(1)/usr
/lib
/
139 $(eval
$(call BuildPackage
,libwxbase
))