small-package/wxbase/Makefile

121 lines
3.1 KiB
Makefile
Raw Normal View History

2023-01-28 01:28:48 +08:00
#
# Copyright (C) 2007-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=wxbase
2023-12-02 18:43:07 +08:00
PKG_VERSION:=3.2.4
2023-04-16 09:23:45 +08:00
PKG_RELEASE:=1
2023-01-28 01:28:48 +08:00
2023-04-16 09:23:45 +08:00
PKG_SOURCE:=wxWidgets-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://github.com/wxWidgets/wxWidgets/releases/download/v$(PKG_VERSION)
2023-12-02 18:43:07 +08:00
PKG_HASH:=0640e1ab716db5af2ecb7389dbef6138d7679261fbff730d23845ba838ca133e
2023-01-28 01:28:48 +08:00
2023-04-16 09:23:45 +08:00
PKG_BUILD_DIR:=$(BUILD_DIR)/wxWidgets-$(PKG_VERSION)
2023-01-28 01:28:48 +08:00
PKG_CHECK_FORMAT_SECURITY:=0
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
2023-04-18 16:22:03 +08:00
DISABLE_NLS:=
2023-01-28 01:28:48 +08:00
define Package/libwxbase
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Cross-platform C++ framework
URL:=http://www.wxwidgets.org/
2023-04-25 16:22:00 +08:00
DEPENDS:=+libexpat +libstdcpp +zlib +libpcre2-32 +libcurl
2023-01-28 01:28:48 +08:00
endef
define Package/libwxbase/description
wxBase contains most of the non-GUI classes from the wxWindows cross-
-platform C++ framework. There are 2 categories: generally useful portable
code (date/time handling, command line parsing, regular expression support)
and wrappers for the OS objects (files, directories, sockets, threads,
etc.) allowing you to write portable programs easily.
endef
TARGET_CFLAGS += $(FPIC)
2023-04-16 09:23:45 +08:00
CONFIGURE_ARGS += \
--disable-backtrace \
--disable-compat28 \
--disable-compat30 \
2023-01-28 01:28:48 +08:00
--disable-debug \
--disable-debug_flag \
--disable-debug_info \
--disable-debug_gdb \
--disable-debug_cntxt \
2023-04-16 09:23:45 +08:00
--disable-gpe \
--disable-gui \
--disable-mediactrl \
2023-01-28 01:28:48 +08:00
--disable-mem_tracing \
2023-04-16 09:23:45 +08:00
--disable-monolithic \
--disable-nanox \
2023-01-28 01:28:48 +08:00
--disable-no_rtti \
--disable-no_exceptions \
2023-04-16 09:23:45 +08:00
--disable-precomp-headers \
--disable-profile \
--disable-rpath \
2023-01-28 01:28:48 +08:00
--disable-sound \
2023-04-16 09:23:45 +08:00
--disable-stl \
--disable-universal \
--enable-exceptions \
--enable-intl \
2023-01-28 01:28:48 +08:00
--enable-largefile \
2023-04-16 09:23:45 +08:00
--enable-optimise \
--enable-plugins \
--enable-shared \
2023-01-28 01:28:48 +08:00
--enable-unicode \
\
2023-04-16 09:23:45 +08:00
--with-expat="sys" \
--with-regex="sys" \
--with-zlib="sys" \
2023-01-28 01:28:48 +08:00
--without-cocoa \
2023-04-16 09:23:45 +08:00
--without-dmalloc \
--without-gtk-prefix \
--without-gtk \
--without-libiconv-prefix \
--without-libjbig \
2023-01-28 01:28:48 +08:00
--without-libjpeg \
2023-04-16 09:23:45 +08:00
--without-libmspack \
--without-libpng \
2023-01-28 01:28:48 +08:00
--without-libtiff \
--without-libxpm \
2023-04-16 09:23:45 +08:00
--without-mac \
--without-motif \
--without-msw \
2023-01-28 01:28:48 +08:00
--without-opengl \
2023-04-16 09:23:45 +08:00
--without-sdl \
2023-01-28 01:28:48 +08:00
--without-sdl-prefix \
2023-04-16 09:23:45 +08:00
--without-wine \
--without-x \
--without-x11
2023-01-28 01:28:48 +08:00
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wx-config $(1)/usr/bin/
$(SED) "s,$(PKG_BUILD_DIR),$(STAGING_DIR)/usr,g" $(1)/usr/bin/wx-config
2023-04-16 09:23:45 +08:00
$(SED) 's,-I$$$${includedir}/wx-3.2,-I$(STAGING_DIR)/usr/include/wx-3.2,g' $(1)/usr/bin/wx-config
2023-01-28 01:28:48 +08:00
$(SED) 's,-I$$$${libdir}/wx/include,-I$(STAGING_DIR)/usr/lib/wx/include,g' $(1)/usr/bin/wx-config
$(INSTALL_DIR) $(1)/usr/include
2023-04-16 09:23:45 +08:00
$(CP) $(PKG_INSTALL_DIR)/usr/include/wx-3.2 $(1)/usr/include/
2023-01-28 01:28:48 +08:00
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libwx_*.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/wx $(1)/usr/lib/
endef
define Package/libwxbase/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libwx_*.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libwxbase))