From nobody Thu Nov 14 08:44:23 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XptxN0ztvz5cLk2; Thu, 14 Nov 2024 08:44:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XptxM72h0z4pYM; Thu, 14 Nov 2024 08:44:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731573864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LV0vyIxrXmZVl+ACfbBVdJe7MVmGYA49CDMZcR6cmWk=; b=pGo6KsgjCwrYuWnwbXzHP01F7UZ5q84rJM1yDCPGOYNFotj7g6ix53P7yRGWCiu6rK8a+o dV4FC9BM9R6I86AGM1SwGGJViOqSKMjUC+Bh64b6IjqVXK53vI2EMu8Ppyd/pKRuxlnohM aeH8/uDb19hwJ2sUDJasekpu8PnYiDR4BebUhHVzVE9nPqBN0vGFXoG1TydkaoqWz1K81F kjbQQGGMraWC/GYSXjygwoT3h4GeEOE0SG+oC9G8Z+m5VPjYdSxRihDf3lCPs40jKf114H +8etUAEN8eqn7QWKhUpVke1sRGcO8LSRjpzsARqsmCKoKmx33hLt5lLT8MFq3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731573864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LV0vyIxrXmZVl+ACfbBVdJe7MVmGYA49CDMZcR6cmWk=; b=rF2wB5ECuZTO4XiZIfgIDAkmmddPMnw9bDoC6GOajxg9PSwoyoLOJSSN9yBwt/urzIc3Kk 1iqiG6+cJuA7fXB3hOdTphQfOlwnS0IdbHy+gykq8VLrqjwii77SNTAlUoWw0KAwOQC8l7 tP6dL8ER3L0UHCtbUnW+NDaHKSXgbQFwGTtz3KLmHIHZtlbqXaTU4qj+DjAC4TUoNyCzK4 hqItyYgg+0WEr4+waDUFoEFJ25LQhiiLDIlfYsdooxx7SDEMrqYmdMQciZ98BH37hS0Ywn e1tIr8sAw1vApBnCSqIYK4x1f1xKOcQXZMv18z8J6qfWFz8iGvAwXZ5+GahJ+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731573864; a=rsa-sha256; cv=none; b=JjBxV7E1ja9JjoWpJRnRJOdXDEjiMAw6PuZy8d+pIXPLvJOrzaVkapGQ6xYCxsNq6oI0XM f8HLb0VksuGVpsOJAV/2Bk4R5Ag6/KdXBKGFZB9xqaTMnG1BN7s2r7NK4orOOdtn2Wbz8j 7G+0XumDqFvW2ULxuT4Y3XarYIMU5zIIAADL3D5mejym5wk0F/A8DGwD+u9tmPrpthhedX zsNeiELTxbvo53tvGyMFre2yx6GyhdbpJZwGC/r5SaS0rtR5Gn+2VFKzjSonxn1dBNLNvG amkmsAVJE/7XSJ7f+gBRyi90RnUwcMALWGLs24P5VqlBKpL9Zg59L/6oh/sTQQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XptxM6g1bzXSF; Thu, 14 Nov 2024 08:44:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AE8iNo7020948; Thu, 14 Nov 2024 08:44:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AE8iNj9020945; Thu, 14 Nov 2024 08:44:23 GMT (envelope-from git) Date: Thu, 14 Nov 2024 08:44:23 GMT Message-Id: <202411140844.4AE8iNj9020945@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: c66fa584263e - main - devel/libchdr: New port: Standalone library for reading MAME CHDv1-v5 formats List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c66fa584263efe3b13cf9d2dee1a5c97448c4a26 Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=c66fa584263efe3b13cf9d2dee1a5c97448c4a26 commit c66fa584263efe3b13cf9d2dee1a5c97448c4a26 Author: Stefan Schlosser AuthorDate: 2024-11-09 20:51:33 +0000 Commit: Robert Clausecker CommitDate: 2024-11-14 08:43:26 +0000 devel/libchdr: New port: Standalone library for reading MAME CHDv1-v5 formats libchdr is a standalone library for reading MAME's CHDv1-v5 formats. The code is based off of MAME's old C codebase which read up to CHDv4 with OS-dependent features removed, and CHDv5 support backported from MAME's current C++ codebase. WWW: https://github.com/rtissera/libchdr PR: 282692 --- devel/Makefile | 1 + devel/libchdr/Makefile | 26 ++++++++++++++++++++++++++ devel/libchdr/distinfo | 3 +++ devel/libchdr/files/patch-CMakeLists.txt | 26 ++++++++++++++++++++++++++ devel/libchdr/pkg-descr | 5 +++++ devel/libchdr/pkg-plist | 13 +++++++++++++ 6 files changed, 74 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index daf9f8cc8642..e64fa0f42543 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1221,6 +1221,7 @@ SUBDIR += libcdb SUBDIR += libcds SUBDIR += libcfu + SUBDIR += libchdr SUBDIR += libchipcard SUBDIR += libcidr SUBDIR += libcii diff --git a/devel/libchdr/Makefile b/devel/libchdr/Makefile new file mode 100644 index 000000000000..a5ca39c65376 --- /dev/null +++ b/devel/libchdr/Makefile @@ -0,0 +1,26 @@ +PORTNAME= libchdr +DISTVERSION= g20241111 +CATEGORIES= devel + +MAINTAINER= bsdcode@disroot.org +COMMENT= Standalone library for reading MAME CHDv1-v5 formats +WWW= https://github.com/rtissera/libchdr + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +LIB_DEPENDS= libzstd.so:archivers/zstd + +USES= cmake pathfix pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= rtissera +GH_TAGNAME= b3974651d869c2f804e9879b063c23280d2ae617 +USE_LDCONFIG= yes + +CMAKE_ARGS= -DBUILD_LTO=${defined(WITH_LTO):?ON:OFF} +CMAKE_ON= INSTALL_STATIC_LIBS WITH_SYSTEM_ZLIB WITH_SYSTEM_ZSTD + +post-install: + ${RLN} ${STAGEDIR}${PREFIX}/lib/libchdr-static.a ${STAGEDIR}${PREFIX}/lib/libchdr.a + +.include diff --git a/devel/libchdr/distinfo b/devel/libchdr/distinfo new file mode 100644 index 000000000000..129e3d7d1f45 --- /dev/null +++ b/devel/libchdr/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1731325563 +SHA256 (rtissera-libchdr-g20241111-b3974651d869c2f804e9879b063c23280d2ae617_GH0.tar.gz) = e17270412aaa7158073ec6d8e6287f80a64354ba2b4edbd5786f2d8571f9e787 +SIZE (rtissera-libchdr-g20241111-b3974651d869c2f804e9879b063c23280d2ae617_GH0.tar.gz) = 4222329 diff --git a/devel/libchdr/files/patch-CMakeLists.txt b/devel/libchdr/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..80417eff28fc --- /dev/null +++ b/devel/libchdr/files/patch-CMakeLists.txt @@ -0,0 +1,26 @@ +--- CMakeLists.txt.orig 2024-11-12 19:29:11 UTC ++++ CMakeLists.txt +@@ -51,8 +51,12 @@ if (WITH_SYSTEM_ZSTD) + + # zstd + if (WITH_SYSTEM_ZSTD) +- find_package(zstd REQUIRED) +- list(APPEND PLATFORM_LIBS zstd::libzstd_shared) ++ # find_package(zstd) fails on i386 because of a known problem with the ++ # provided cmake module. Use pkg_check_modules instead. ++ find_package(PkgConfig REQUIRED) ++ pkg_check_modules(zstd REQUIRED libzstd) ++ list(APPEND CHDR_INCLUDES ${zstd_INCLUDE_DIRS}) ++ list(APPEND PLATFORM_LIBS ${zstd_LINK_LIBRARIES}) + else() + option(ZSTD_BUILD_SHARED "BUILD SHARED LIBRARIES" OFF) + option(ZSTD_BUILD_PROGRAMS "BUILD PROGRAMS" OFF) +@@ -83,7 +87,7 @@ if (INSTALL_STATIC_LIBS) + endif() + + if (INSTALL_STATIC_LIBS) +- install(TARGETS chdr-static ${CHDR_LIBS} ++ install(TARGETS chdr-static + ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" + ) + endif() diff --git a/devel/libchdr/pkg-descr b/devel/libchdr/pkg-descr new file mode 100644 index 000000000000..b3e772f746ae --- /dev/null +++ b/devel/libchdr/pkg-descr @@ -0,0 +1,5 @@ +libchdr is a standalone library for reading MAME's CHDv1-v5 formats. + +The code is based off of MAME's old C codebase which read up to CHDv4 with +OS-dependent features removed, and CHDv5 support backported from MAME's current +C++ codebase. diff --git a/devel/libchdr/pkg-plist b/devel/libchdr/pkg-plist new file mode 100644 index 000000000000..49bdddd8b05e --- /dev/null +++ b/devel/libchdr/pkg-plist @@ -0,0 +1,13 @@ +include/libchdr/bitstream.h +include/libchdr/cdrom.h +include/libchdr/chd.h +include/libchdr/chdconfig.h +include/libchdr/coretypes.h +include/libchdr/flac.h +include/libchdr/huffman.h +lib/libchdr-static.a +lib/libchdr.a +lib/libchdr.so +lib/libchdr.so.0 +lib/libchdr.so.0.2 +libdata/pkgconfig/libchdr.pc