Skip to content

Commit

Permalink
libcredid-0.3.5 (rebuild with gcc-12.4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Jan 5, 2025
1 parent fa0ea43 commit 6233c57
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 93 deletions.
25 changes: 13 additions & 12 deletions libcredid/README
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@ libcredid
Credid client API implementation

Runtime requirements:
cygwin-2.10.0-1
libcredid-devel-0.3.5-1bl1
libcredid0-0.3.5-1bl1
pkg-config-0.29.1-1
cygwin-3.5.4-1
libcredid-devel-0.3.5-1bl2
libcredid0-0.3.5-1bl2
pkg-config-2.3.0-1

Build requirements:
(besides corresponding -devel packages)
autoconf-13-1
automake-10-1
binutils-2.29-1
cygport-0.31.0-1
gcc-core-6.4.0-5
libtool-2.4.6-5
make-4.2.1-2
binutils-2.43.1-1
cmake-3.28.3-1
cygport-0.36.9-1
gcc-core-12.4.0-3
ninja-1.12.0-1

Canonical website:
https://github.com/Credid/libcredid-client

Canonical download:
https://github.com/Credid/libcredid-client/archive/v0.3.5.tar.gz
https://github.com/Credid/libcredid-client/archive/refs/tags/v0.3.5.tar.gz

-------------------------------------------

Expand Down Expand Up @@ -60,5 +58,8 @@ Files included in the binary package:

Port Notes:

----- version 0.3.5-1bl2 -----
Rebuild with gcc-12.4.0

----- version 0.3.5-1bl1 -----
Initial release by fd0 <https://github.com/fd00/>
76 changes: 0 additions & 76 deletions libcredid/libcredid-0.3.5-1bl1.src.patch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
HOMEPAGE="https://github.com/Credid/${PN}-client"
SRC_URI="https://github.com/Credid/${PN}-client/archive/v${PV}.tar.gz"
SRC_URI="https://github.com/Credid/${PN}-client/archive/refs/tags/v${PV}.tar.gz"
SRC_DIR="${PN}-client-${PV}"

CATEGORY="Libs"
SUMMARY="Credid client API implementation"
DESCRIPTION="${SUMMARY}"

DIFF_EXCLUDES="
Makefile
"
LICENSE="GPL-3.0-or-later"
LICENSE_SPDX="SPDX-License-Identifier: GPL-3.0-or-later"
LICENSE_URI="LICENSE"

inherit cmake

PKG_NAMES="
libcredid
Expand All @@ -19,7 +21,7 @@ libcredid_CONTENTS="
usr/share
"
libcredid0_CONTENTS="
usr/bin
usr/bin/cyg*-0.dll
"
libcredid_devel_CONTENTS="
usr/include
Expand Down
42 changes: 42 additions & 0 deletions libcredid/libcredid-0.3.5-1bl2.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
--- origsrc/libcredid-client-0.3.5/CMakeLists.txt 1970-01-01 09:00:00.000000000 +0900
+++ src/libcredid-client-0.3.5/CMakeLists.txt 2025-01-05 15:11:27.925428200 +0900
@@ -0,0 +1,26 @@
+cmake_minimum_required(VERSION 3.28)
+project(libcredid
+ VERSION 0.3.5
+ DESCRIPTION "Credid client API implementation"
+ HOMEPAGE_URL "https://github.com/Credid/libcredid-client")
+
+include(GNUInstallDirs)
+
+file(GLOB_RECURSE LIB_SOURCES credid.c)
+add_library(credid SHARED "${LIB_SOURCES}")
+set_target_properties(credid PROPERTIES SOVERSION 0)
+install(TARGETS credid
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+install(FILES credid.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+
+add_executable(credid-test test.c)
+target_link_libraries(credid-test credid)
+
+set(prefix ${CMAKE_INSTALL_PREFIX})
+set(exec_prefix ${CMAKE_INSTALL_PREFIX})
+set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
+set(includedir ${CMAKE_INSTALL_PREFIX}/include)
+configure_file(${CMAKE_SOURCE_DIR}/libcredid.pc.in ${CMAKE_BINARY_DIR}/libcredid.pc @ONLY)
+install(FILES ${CMAKE_BINARY_DIR}/libcredid.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
--- origsrc/libcredid-client-0.3.5/libcredid.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/libcredid-client-0.3.5/libcredid.pc.in 2025-01-05 15:11:34.325589200 +0900
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libcredid
+Description: Credid client API implementation
+Version: @PROJECT_VERSION@
+Libs: -L${libdir} -lcredid
+Cflags: -I${includedir}

0 comments on commit 6233c57

Please sign in to comment.