mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-05 14:26:24 +08:00
update 2025-10-06 17:03:41
This commit is contained in:
120
wxbase/Makefile
120
wxbase/Makefile
@@ -1,120 +0,0 @@
|
||||
#
|
||||
# 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
|
||||
PKG_VERSION:=3.2.8
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=wxWidgets-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=https://github.com/wxWidgets/wxWidgets/releases/download/v$(PKG_VERSION)
|
||||
PKG_HASH:=c74784904109d7229e6894c85cfa068f1106a4a07c144afd78af41f373ee0fe6
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/wxWidgets-$(PKG_VERSION)
|
||||
PKG_CHECK_FORMAT_SECURITY:=0
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
DISABLE_NLS:=
|
||||
|
||||
define Package/libwxbase
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Cross-platform C++ framework
|
||||
URL:=http://www.wxwidgets.org/
|
||||
DEPENDS:=+libexpat +libstdcpp +zlib +libpcre2-32 +libcurl
|
||||
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)
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-backtrace \
|
||||
--disable-compat28 \
|
||||
--disable-compat30 \
|
||||
--disable-debug \
|
||||
--disable-debug_flag \
|
||||
--disable-debug_info \
|
||||
--disable-debug_gdb \
|
||||
--disable-debug_cntxt \
|
||||
--disable-gpe \
|
||||
--disable-gui \
|
||||
--disable-mediactrl \
|
||||
--disable-mem_tracing \
|
||||
--disable-monolithic \
|
||||
--disable-nanox \
|
||||
--disable-no_rtti \
|
||||
--disable-no_exceptions \
|
||||
--disable-precomp-headers \
|
||||
--disable-profile \
|
||||
--disable-rpath \
|
||||
--disable-sound \
|
||||
--disable-stl \
|
||||
--disable-universal \
|
||||
--enable-exceptions \
|
||||
--enable-intl \
|
||||
--enable-largefile \
|
||||
--enable-optimise \
|
||||
--enable-plugins \
|
||||
--enable-shared \
|
||||
--enable-unicode \
|
||||
\
|
||||
--with-expat="sys" \
|
||||
--with-regex="sys" \
|
||||
--with-zlib="sys" \
|
||||
--without-cocoa \
|
||||
--without-dmalloc \
|
||||
--without-gtk-prefix \
|
||||
--without-gtk \
|
||||
--without-libiconv-prefix \
|
||||
--without-libjbig \
|
||||
--without-libjpeg \
|
||||
--without-libmspack \
|
||||
--without-libpng \
|
||||
--without-libtiff \
|
||||
--without-libxpm \
|
||||
--without-mac \
|
||||
--without-motif \
|
||||
--without-msw \
|
||||
--without-opengl \
|
||||
--without-sdl \
|
||||
--without-sdl-prefix \
|
||||
--without-wine \
|
||||
--without-x \
|
||||
--without-x11
|
||||
|
||||
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
|
||||
$(SED) 's,-I$$$${includedir}/wx-3.2,-I$(STAGING_DIR)/usr/include/wx-3.2,g' $(1)/usr/bin/wx-config
|
||||
$(SED) 's,-I$$$${libdir}/wx/include,-I$(STAGING_DIR)/usr/lib/wx/include,g' $(1)/usr/bin/wx-config
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/wx-3.2 $(1)/usr/include/
|
||||
|
||||
$(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))
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/wx-config.in
|
||||
+++ b/wx-config.in
|
||||
@@ -969,7 +969,7 @@ fi
|
||||
|
||||
is_monolithic() { [ "x@MONOLITHIC@" = "x1" ]; }
|
||||
is_static() { [ -n "$this_linkage" ]; }
|
||||
-is_installed() { [ -z "$this_prefix" ]; }
|
||||
+is_installed() { [ "$this_prefix" ]; }
|
||||
|
||||
|
||||
# Is the user after a support utility?
|
||||
@@ -1,12 +0,0 @@
|
||||
--- a/include/wx/matrix.h
|
||||
+++ b/include/wx/matrix.h
|
||||
@@ -37,8 +37,8 @@
|
||||
// at a certain coordinate and angle within another parent picture.
|
||||
// At all times m_isIdentity is set if the matrix itself is an Identity matrix.
|
||||
// It is used where possible to optimize calculations.
|
||||
-class
|
||||
wxDEPRECATED_EXPORT_CORE("use wxAffineMatrix2D instead")
|
||||
+class
|
||||
wxTransformMatrix: public wxObject
|
||||
{
|
||||
public:
|
||||
@@ -1,12 +0,0 @@
|
||||
nothing sets this to 0, but for some reason it gets undef'd
|
||||
--- a/build/cmake/setup.h.in
|
||||
+++ b/build/cmake/setup.h.in
|
||||
@@ -867,7 +867,7 @@
|
||||
/*
|
||||
* Define if large (64 bit file offsets) files are supported.
|
||||
*/
|
||||
-#cmakedefine HAVE_LARGEFILE_SUPPORT 1
|
||||
+#define HAVE_LARGEFILE_SUPPORT 1
|
||||
|
||||
/*
|
||||
* Use OpenGL
|
||||
Reference in New Issue
Block a user