[packages] openvpn: stop instances even if they are disabled (#9404)
[openwrt/svn-archive/archive.git] / libs / wxbase / Makefile
1 #
2 # Copyright (C) 2007-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=wxbase
11 PKG_VERSION:=2.8.10
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=wxGTK-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/wxwindows
16 PKG_MD5SUM:=88b867bc118a183af56efc67014bdf27
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/wxGTK-$(PKG_VERSION)
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libwxbase
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=Cross-platform C++ framework
28 URL:=http://www.wxwidgets.org/
29 DEPENDS:=+libexpat +libstdcpp +zlib
30 endef
31
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.
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41
42 # XXX: aMule *needs* the following configure options to be enabled:
43 # --enable-intl
44 # --enable-largefile
45 # --disable-no_rtti
46 # --with-regex
47 # --enable-unicode
48 CONFIGURE_ARGS+= \
49 --enable-shared \
50 --disable-rpath \
51 --with-gnu-ld \
52 --disable-gui \
53 --disable-monolithic \
54 --enable-plugins \
55 --disable-universal \
56 --disable-nanox \
57 --disable-gtk2 \
58 --disable-gpe \
59 --disable-optimise \
60 --disable-debug \
61 --disable-stl \
62 --disable-omf \
63 --disable-debug_flag \
64 --disable-debug_info \
65 --disable-debug_gdb \
66 --disable-debug_cntxt \
67 --disable-mem_tracing \
68 --disable-profile \
69 --disable-no_rtti \
70 --disable-no_exceptions \
71 --disable-compat22 \
72 --disable-compat24 \
73 --enable-intl \
74 --disable-backtrace \
75 --enable-exceptions \
76 --disable-sound \
77 --enable-largefile \
78 \
79 --without-gtk \
80 --without-motif \
81 --without-mac \
82 --without-cocoa \
83 --without-wine \
84 --without-msw \
85 --without-pm \
86 --without-mgl \
87 --without-microwin \
88 --without-x11 \
89 --without-libpng \
90 --without-libjpeg \
91 --without-libtiff \
92 --without-libxpm \
93 --without-libmspack \
94 --without-sdl \
95 --without-gnomeprint \
96 --without-opengl \
97 --without-dmalloc \
98 --with-regex="sys" \
99 --with-zlib="sys" \
100 --without-odbc \
101 --with-expat="sys" \
102 --without-gtk-prefix \
103 --without-x \
104 --without-libiconv-prefix \
105 --without-sdl-prefix \
106 --without-cppunit-prefix \
107
108 UNICODE=yes
109
110 ifeq ($(UNICODE),yes)
111 CONFIGURE_ARGS+= --enable-unicode
112 LIB_PFX:=u
113 else
114 CONFIGURE_ARGS+= --disable-unicode
115 LIB_PFX:=
116 endif
117
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
126 endef
127
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/
131 endef
132
133 $(eval $(call BuildPackage,libwxbase))