diff --git a/devel/mrc/Makefile b/devel/mrc/Makefile index 3a8ae54bb053..61cd2b05508f 100644 --- a/devel/mrc/Makefile +++ b/devel/mrc/Makefile @@ -1,36 +1,34 @@ PORTNAME= mrc DISTVERSIONPREFIX= v DISTVERSION= 1.3.17 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= Maartens Resource Compiler WWW= https://github.com/mhekkel/mrc LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= libmcfp>0:devel/libmcfp TEST_DEPENDS= catch2>0:devel/catch2 USES= cmake:testing USE_GITHUB= yes GH_ACCOUNT= mhekkel CMAKE_OFF= BUILD_TESTING PLIST_FILES= bin/mrc \ share/man/man1/mrc.1.gz \ share/mrc/cmake/mrc-config.cmake OPTIONS_DEFINE= EXAMPLES PORTEXAMPLES= * -post-install: # workaround for https://github.com/mhekkel/mrc/issues/9 - @${INSTALL_PROGRAM} ${BUILD_WRKSRC}/mrc ${STAGEDIR}${PREFIX}/bin - -# tests as of 1.3.16: 100% tests passed, 0 tests failed out of 1 +# tests as of 1.3.17: 100% tests passed, 0 tests failed out of 1 .include diff --git a/devel/mrc/files/patch-CMakeLists.txt b/devel/mrc/files/patch-CMakeLists.txt index 52216a326af3..b1b894a10e21 100644 --- a/devel/mrc/files/patch-CMakeLists.txt +++ b/devel/mrc/files/patch-CMakeLists.txt @@ -1,11 +1,15 @@ ---- CMakeLists.txt.orig 2025-05-26 08:12:33 UTC +-- Install examples to share/examples/mrc instead of share/doc/mrc +-- so that the EXAMPLES option works correctly in the FreeBSD port. +-- The trailing slash on "examples/" installs directory contents +-- rather than the directory itself. +-- +--- CMakeLists.txt.orig 2026-04-08 13:44:36 UTC +++ CMakeLists.txt -@@ -100,7 +100,7 @@ endif() - endif() +@@ -110,6 +110,6 @@ endif() + install(FILES doc/mrc.1 DESTINATION share/man/man1) endif() --install(TARGETS mrc) -+#install(DIRECTORY example DESTINATION share/examples/mrc) +-install(DIRECTORY examples DESTINATION share/doc/mrc PATTERN build EXCLUDE) ++install(DIRECTORY examples/ DESTINATION share/examples/mrc PATTERN build EXCLUDE) - if(WIN32) - install(FILES cmake/mrc-config.cmake DESTINATION cmake) + # add_subdirectory(examples/simple)