5ad2ec9682fa82f012ed0ffee4e9d5247d019a8a
[openwrt/svn-archive/archive.git] / libs / wxbase / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=wxbase
12 PKG_VERSION:=2.6.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=wxBase-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/wxwindows
17 PKG_MD5SUM:=6e55324d2a522d23fd8834ad8656e0b6
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/wxBase-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libwxbase
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Cross-platform C++ framework
27 URL:=http://www.wxwidgets.org/
28 DEPENDS:=+libexpat +uclibcxx +zlib
29 endef
30
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.
37 endef
38
39
40 # XXX: aMule *needs* the following configure options to be enabled:
41 # --enable-intl
42 # --enable-largefile
43 # --disable-no_rtti
44 # --with-regex
45 CONFIGURE_ARGS+= \
46 --enable-shared \
47 --disable-rpath \
48 --with-gnu-ld \
49 --disable-gui \
50 --disable-monolithic \
51 --enable-plugins \
52 --disable-universal \
53 --disable-nanox \
54 --disable-gtk2 \
55 --disable-gpe \
56 --disable-optimise \
57 --disable-debug \
58 --disable-stl \
59 --disable-omf \
60 --disable-debug_flag \
61 --disable-debug_info \
62 --disable-debug_gdb \
63 --disable-debug_cntxt \
64 --disable-mem_tracing \
65 --disable-profile \
66 --disable-no_rtti \
67 --disable-no_exceptions \
68 --disable-compat22 \
69 --disable-compat24 \
70 --enable-intl \
71 --disable-backtrace \
72 --enable-exceptions \
73 --disable-unicode \
74 --disable-sound \
75 --enable-largefile \
76 \
77 --without-gtk \
78 --without-motif \
79 --without-mac \
80 --without-cocoa \
81 --without-wine \
82 --without-msw \
83 --without-pm \
84 --without-mgl \
85 --without-microwin \
86 --without-x11 \
87 --without-libpng \
88 --without-libjpeg \
89 --without-libtiff \
90 --without-libxpm \
91 --without-libmspack \
92 --without-sdl \
93 --without-gnomeprint \
94 --without-opengl \
95 --without-dmalloc \
96 --with-regex="sys" \
97 --with-zlib="sys" \
98 --without-odbc \
99 --with-expat="sys" \
100 --without-gtk-prefix \
101 --without-x \
102 --without-libiconv-prefix \
103 --without-sdl-prefix \
104 --without-cppunit-prefix \
105
106 CONFIGURE_VARS+= \
107 CXX="g++-uc+std" \
108
109 define Build/Compile
110 $(MAKE) -C $(PKG_BUILD_DIR) \
111 DESTDIR="$(PKG_INSTALL_DIR)" \
112 all install
113 endef
114
115 define Build/InstallDev
116 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/include $(1)/usr/lib
117 $(CP) -L $(PKG_INSTALL_DIR)/usr/bin/wx-config $(1)/usr/bin/
118 $(CP) $(PKG_INSTALL_DIR)/usr/include/wx-2.6 $(1)/usr/include/
119 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwx_base{,_net,_xml}-2.6-*.so $(1)/usr/lib/
120 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwx_base{,_net,_xml}-2.6.so.* $(1)/usr/lib/
121 $(CP) $(PKG_INSTALL_DIR)/usr/lib/wx $(1)/usr/lib/
122 $(SED) 's,-I$$$${includedir}/wx-2.6,-I$(STAGING_DIR)/usr/include/wx-2.6,g' $(1)/usr/bin/wx-config
123 $(SED) 's,-I$$$${libdir}/wx/include,-I$(STAGING_DIR)/usr/lib/wx/include,g' $(1)/usr/bin/wx-config
124 endef
125
126 define Package/libwxbase/install
127 $(INSTALL_DIR) $(1)/usr/lib
128 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwx_base{,_net,_xml}-2.6.so.* $(1)/usr/lib/
129 endef
130
131 $(eval $(call BuildPackage,libwxbase))