From 6fbe693355178724f80434b1348fe5e840d5d4ec Mon Sep 17 00:00:00 2001 From: M <1999714+Martinfx@users.noreply.github.com> Date: Sat, 22 Oct 2022 17:52:14 +0200 Subject: [PATCH] new port: darling dmg (#84) * darling: new port --- darling-dmg/Makefile | 25 +++++++++++++++++++++++++ darling-dmg/distinfo | 3 +++ darling-dmg/files/patch-CMakeLists.txt | 16 ++++++++++++++++ darling-dmg/pkg-descr | 1 + darling-dmg/pkg-plist | 3 +++ 5 files changed, 48 insertions(+) create mode 100644 darling-dmg/Makefile create mode 100644 darling-dmg/distinfo create mode 100644 darling-dmg/files/patch-CMakeLists.txt create mode 100644 darling-dmg/pkg-descr create mode 100644 darling-dmg/pkg-plist diff --git a/darling-dmg/Makefile b/darling-dmg/Makefile new file mode 100644 index 00000000..f7174627 --- /dev/null +++ b/darling-dmg/Makefile @@ -0,0 +1,25 @@ +# $FreeBSD$ + +PORTNAME= darling-dmg +PORTVERSION= g20221019 +CATEGORIES= sysutils + +MAINTAINER= freebsd@sysctl.cz +COMMENT= FUSE module for .dmg files (containing an HFS+ filesystem +WWW= https://github.com/darlinghq/darling-dmg + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= libxml2>0:textproc/libxml2 + +USES= cmake fuse +USE_GNOME= libxml2 +LIB_DEPENDS= libicuuc.so:devel/icu + +USE_GITHUB= yes +GH_ACCOUNT= darlinghq +GH_PROJECT= darling-dmg +GH_TAGNAME= 8a2831 + +.include diff --git a/darling-dmg/distinfo b/darling-dmg/distinfo new file mode 100644 index 00000000..a5b295b6 --- /dev/null +++ b/darling-dmg/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1666204751 +SHA256 (darlinghq-darling-dmg-g20221019-8a2831_GH0.tar.gz) = 3e6cad04474492469a6095111d490063860b9e47860243cafebd51874c614371 +SIZE (darlinghq-darling-dmg-g20221019-8a2831_GH0.tar.gz) = 55868 diff --git a/darling-dmg/files/patch-CMakeLists.txt b/darling-dmg/files/patch-CMakeLists.txt new file mode 100644 index 00000000..f1c5f79f --- /dev/null +++ b/darling-dmg/files/patch-CMakeLists.txt @@ -0,0 +1,16 @@ +--- CMakeLists.txt.orig 2021-12-16 16:40:49 UTC ++++ CMakeLists.txt +@@ -41,7 +41,12 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} + "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/") + + add_definitions(-D_FILE_OFFSET_BITS=64) +-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -ggdb -O0") ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") ++ ++if(${CMAKE_SYSTEM_NAME} MATCHES FreeBSD) ++ include_directories("%%LOCALBASE%%/include") ++ link_directories("%%LOCALBASE%%/lib") ++endif() + + include(FindLibXml2) + diff --git a/darling-dmg/pkg-descr b/darling-dmg/pkg-descr new file mode 100644 index 00000000..b120c7f3 --- /dev/null +++ b/darling-dmg/pkg-descr @@ -0,0 +1 @@ +FUSE module for .dmg files (containing an HFS+ filesystem) diff --git a/darling-dmg/pkg-plist b/darling-dmg/pkg-plist new file mode 100644 index 00000000..e1846c28 --- /dev/null +++ b/darling-dmg/pkg-plist @@ -0,0 +1,3 @@ +bin/darling-dmg +lib/libdmg.so +