[libxpm] Update, cleanup (#41313)

This commit is contained in:
Kai Pastor 2024-10-03 17:13:36 +02:00 committed by GitHub
parent b41666aa53
commit 108a28eaa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 37 additions and 29 deletions

View File

@ -1,19 +1,24 @@
if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS) if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS)
message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet") message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet")
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
else() return()
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) endif()
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()
vcpkg_from_gitlab( vcpkg_from_gitlab(
GITLAB_URL https://gitlab.freedesktop.org/xorg GITLAB_URL https://gitlab.freedesktop.org/xorg
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO lib/libxpm REPO lib/libxpm
REF "libXpm-${VERSION}" REF "libXpm-${VERSION}"
SHA512 006d5fb2fd951b8857b8d409d65ebe4f819dc51df3bbe933ef9b879a9dc832b0828481c7c0cac453a82a1e81f39990fc49819314a443a1082bdaea6044bb3013 SHA512 30d473b6184d56643114ab1f7719f033ac5ecfd9fd46ebefc03db171a82a809d996046a039c922c184046310fc12a088467ca73740386b3e73b1e699bde78db7
PATCHES PATCHES
remove_strings_h.patch remove_strings_h.patch
fix-dependency-gettext.patch fix-dependency-gettext.patch
strcasecmp.patch strcasecmp.patch
subdirs.diff
tools.patch # will look for libxt otherwise tools.patch # will look for libxt otherwise
) )
@ -33,18 +38,9 @@ vcpkg_configure_make(
) )
vcpkg_install_make() vcpkg_install_make()
vcpkg_fixup_pkgconfig()
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES pthread)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
if(VCPKG_LIBRARY_LINKAGE STREQUAL static OR NOT VCPKG_TARGET_IS_WINDOWS) vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
#vcpkg_copy_tools(TOOL_NAMES sxpm cxpm AUTOCLEAN)
# Handle copyright
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
endif()

View File

@ -2,15 +2,13 @@ diff --git a/src/XpmI.h b/src/XpmI.h
index 4360ad3b9..a8d78b0ba 100644 index 4360ad3b9..a8d78b0ba 100644
--- a/src/XpmI.h --- a/src/XpmI.h
+++ b/src/XpmI.h +++ b/src/XpmI.h
@@ -325,8 +325,10 @@ FUNC(xpmstrcasecmp, int, (char *s1, char *s2)); @@ -332,7 +332,9 @@ FUNC(xpmstrcasecmp, int, (char *s1, char *s2));
#else #else
#undef xpmstrcasecmp #undef xpmstrcasecmp
#define xpmstrcasecmp strcasecmp #define xpmstrcasecmp strcasecmp
+#if !defined(_MSC_VER) +# if !defined(_MSC_VER)
#include <strings.h> #include <strings.h>
+# endif
#endif #endif
+#endif
FUNC(xpmatoui, unsigned int, HFUNC(xpmatoui, unsigned int,
(char *p, unsigned int l, unsigned int *ui_return));

13
ports/libxpm/subdirs.diff Normal file
View File

@ -0,0 +1,13 @@
diff --git a/Makefile.am b/Makefile.am
index 235ee1f..d8d0f66 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
# Daniel Stone disowns all copyright on this file; no warranty is given as to its
# suitability or otherwise.
-SUBDIRS = doc include man src sxpm cxpm test
+SUBDIRS = include src
ACLOCAL_AMFLAGS = -I m4

View File

@ -1,17 +1,12 @@
{ {
"name": "libxpm", "name": "libxpm",
"version": "3.5.16", "version": "3.5.17",
"port-version": 1,
"description": "XPM format pixmap library", "description": "XPM format pixmap library",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxpm", "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxpm",
"license": "MIT", "license": "MIT",
"supports": "windows | linux", "supports": "windows | linux",
"dependencies": [ "dependencies": [
"libx11", "libx11",
{
"name": "vcpkg-cmake",
"host": true
},
"xorg-macros", "xorg-macros",
"xproto" "xproto"
], ],
@ -25,7 +20,8 @@
"features": [ "features": [
"tools" "tools"
] ]
} },
"gettext-libintl"
] ]
} }
} }

View File

@ -5397,8 +5397,8 @@
"port-version": 1 "port-version": 1
}, },
"libxpm": { "libxpm": {
"baseline": "3.5.16", "baseline": "3.5.17",
"port-version": 1 "port-version": 0
}, },
"libxpresent": { "libxpresent": {
"baseline": "1.0.0", "baseline": "1.0.0",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "6fc4a6c29ce84daa8d65a1bacca9350793a816a8",
"version": "3.5.17",
"port-version": 0
},
{ {
"git-tree": "3c8857f61f5ee49bd9b25deac150fc95a47eaf87", "git-tree": "3c8857f61f5ee49bd9b25deac150fc95a47eaf87",
"version": "3.5.16", "version": "3.5.16",