git: 98c97356ecd2 - main - archivers/star: include libstreamar

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sat, 10 Feb 2024 13:48:05 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=98c97356ecd292742d635da2e4e11ac7848ce7ad

commit 98c97356ecd292742d635da2e4e11ac7848ce7ad
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-02-04 21:59:53 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-02-10 13:41:52 +0000

    archivers/star: include libstreamar
    
    This library is needed only for strar.  Installing it in this package
    simplifies omitting the man pages from devel/schilybases.
---
 archivers/star/Makefile  | 14 +++++++++++---
 archivers/star/pkg-plist |  6 ++++++
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/archivers/star/Makefile b/archivers/star/Makefile
index 3252b35c8cf7..ff9a7d4e9771 100644
--- a/archivers/star/Makefile
+++ b/archivers/star/Makefile
@@ -1,4 +1,5 @@
 PORTNAME=	star
+PORTREVISION=	1
 CATEGORIES=	archivers
 
 COMMENT=	Unique standard tape archiver with many enhancements
@@ -6,19 +7,26 @@ WWW=		https://cdrtools.sourceforge.net/private/star.html
 
 PORTDOCS=	README* STARvsGNUTAR
 
-OPTIONS_DEFINE+=DOCS GNUTAR
+OPTIONS_DEFINE+=DOCS GNUTAR PROFILE
 OPTIONS_SUB=	yes
 GNUTAR_DESC=	Install a gnutar binary
 
 MASTERDIR=	${.CURDIR}/../../devel/schilybase
-COMPONENTS=	mt \
+COMPONENTS=	libstreamar \
+		mt \
 		rmt \
 		star \
 		star_sym \
 		strar
 
-# these are shipped in archivers/tartest
+post-patch-PROFILE-off:
+	@${ECHO_MSG} '=> Patching Makefiles to disable profiled libraries'
+	@${REINPLACE_CMD} -e '/^MK_FILES/s, [a-z]*_p.mk,,' ${WRKSRC}/*/Makefile
+
 post-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/include/schily
+	${INSTALL_DATA} ${WRKSRC}/include/schily/strar.h ${STAGEDIR}${PREFIX}/include/schily/
+	# these are shipped in archivers/tartest
 	${RM} -r ${STAGEDIR}${DOCSDIR}/testscripts
 
 .include "${MASTERDIR}/Makefile.master"
diff --git a/archivers/star/pkg-plist b/archivers/star/pkg-plist
index b070681f84ab..57d48ba5b8e7 100644
--- a/archivers/star/pkg-plist
+++ b/archivers/star/pkg-plist
@@ -9,6 +9,11 @@ bin/suntar
 bin/ustar
 etc/default/srmt
 etc/default/star
+include/schily/strar.h
+lib/libstreamar.a
+lib/libstreamar.so
+lib/libstreamar.so.1.0
+%%PROFILE%%lib/profiled/libstreamar.a
 sbin/srmt
 share/doc/srmt/default-srmt.sample
 %%GNUTAR%%share/man/man1/gnutar.1.gz
@@ -22,3 +27,4 @@ share/man/man1/strar.1.gz
 share/man/man1/suntar.1.gz
 share/man/man1/ustar.1.gz
 share/man/man5/star.5.gz
+share/man/man5/streamarchive.5.gz