FreeBSD Bugzilla – Attachment 255104 Details for
Bug 282692
devel/libchdr: New port: Standalone library for reading MAME CHDv1-v5 formats
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
new port devel/libchdr
0001-devel-libchdr-New-port-Standalone-library-for-readin.patch (text/plain), 4.09 KB, created by
Stefan Schlosser
on 2024-11-11 18:29:54 UTC
(
hide
)
Description:
new port devel/libchdr
Filename:
MIME Type:
Creator:
Stefan Schlosser
Created:
2024-11-11 18:29:54 UTC
Size:
4.09 KB
patch
obsolete
>From 203fc9a188300fe0f1b6f142ed75a545dcd8f5d6 Mon Sep 17 00:00:00 2001 >From: Stefan Schlosser <bsdcode@disroot.org> >Date: Sat, 9 Nov 2024 21:51:33 +0100 >Subject: [PATCH] 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. > >https://github.com/rtissera/libchdr >--- > devel/Makefile | 1 + > devel/libchdr/Makefile | 26 ++++++++++++++++++++++++ > devel/libchdr/distinfo | 3 +++ > devel/libchdr/files/patch-CMakeLists.txt | 11 ++++++++++ > devel/libchdr/pkg-descr | 5 +++++ > devel/libchdr/pkg-plist | 13 ++++++++++++ > 6 files changed, 59 insertions(+) > create mode 100644 devel/libchdr/Makefile > create mode 100644 devel/libchdr/distinfo > create mode 100644 devel/libchdr/files/patch-CMakeLists.txt > create mode 100644 devel/libchdr/pkg-descr > create mode 100644 devel/libchdr/pkg-plist > >diff --git a/devel/Makefile b/devel/Makefile >index 8eabc936adaf..188873398cb9 100644 >--- a/devel/Makefile >+++ b/devel/Makefile >@@ -1219,6 +1219,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..63547ac276e1 >--- /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 >+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: >+ ${LN} -s libchdr-static.a ${STAGEDIR}${PREFIX}/lib/libchdr.a >+ >+.include <bsd.port.mk> >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..dd744e6f168c >--- /dev/null >+++ b/devel/libchdr/files/patch-CMakeLists.txt >@@ -0,0 +1,11 @@ >+--- CMakeLists.txt.orig 2024-11-11 11:46:30 UTC >++++ CMakeLists.txt >+@@ -83,7 +83,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 >-- >2.47.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
bsdcode
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 282692
:
255097
|
255104
|
255122