Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 2023 09:00:38 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 14f7ae40b2a3 - main - net/opal: unbreak the build and packaging with non-default options
Message-ID:  <202304050900.33590cDM036020@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=14f7ae40b2a31e563b63d1be6ffd661eeb9b7851

commit 14f7ae40b2a31e563b63d1be6ffd661eeb9b7851
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-04-05 09:00:12 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-04-05 09:00:12 +0000

    net/opal: unbreak the build and packaging with non-default options
    
    Fix some minor grammar bugs and beautify port description while here.
    
    PR:     270637
---
 net/opal/Makefile  | 11 +++++++++--
 net/opal/pkg-descr | 14 +++++++-------
 net/opal/pkg-plist |  4 ++--
 3 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/net/opal/Makefile b/net/opal/Makefile
index a47a99136eec..d1db20cba1ff 100644
--- a/net/opal/Makefile
+++ b/net/opal/Makefile
@@ -268,8 +268,15 @@ post-install:
 	${LN} -sf libopal_d.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libopal_d.so.${PVERSION_MINOR}
 .endif
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopal.so.${PORTVERSION}
-	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/opal-${PORTVERSION}/codecs/video/h264_video_pwplugin_helper
-	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/opal-${PORTVERSION}/*/*.so
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/opal-${PORTVERSION}/*/*/*.so
 
+post-install-FAX-on:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/opal-${PORTVERSION}/fax/spandsp_ptplugin.so
+
+post-install-LID-on:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/opal-${PORTVERSION}/lid/vpb_ptplugin.so
+
+post-install-X264-on:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/opal-${PORTVERSION}/codecs/video/h264_video_pwplugin_helper
+
 .include <bsd.port.mk>
diff --git a/net/opal/pkg-descr b/net/opal/pkg-descr
index bd48311d1309..ad5c2193e080 100644
--- a/net/opal/pkg-descr
+++ b/net/opal/pkg-descr
@@ -1,12 +1,12 @@
-Opal is a full-featured voip library that supports a variety of protocols and
-multi-media fornats. Features include:
+Opal is a full-featured VoIP library that supports a variety of protocols
+and multimedia formats.  Features include:
 
-    * Low latency RTP stack designed specifically for real-time multimedia
-    * Full featured H.323, SIP and IAX2 protocol stacks
-    * Audio codecs including G.711, GSM06.10, Speex and iLBC.
+    * Low-latency RTP stack designed specifically for real-time multimedia
+    * Full-featured H.323, SIP, and IAX2 protocol stacks
+    * Audio codecs including G.711, GSM06.10, Speex, and iLBC
     * Video codecs including H.261 and H.263
-    * Run-time loadable codec interface for proprietary or codecs such as G.729,
-      H.263, H.264 and MPEG4
+    * Run-time loadable codec interface for proprietary or codecs such as
+      G.729, H.263, H.264, and MPEG4
     * Completely Open Source using the commercially friendly MPL 1.1 license
 
 Through the use of a platform isolation library called PTLIB, Opal can run on
diff --git a/net/opal/pkg-plist b/net/opal/pkg-plist
index f0f23b92f3a5..b4e98134f25c 100644
--- a/net/opal/pkg-plist
+++ b/net/opal/pkg-plist
@@ -152,10 +152,10 @@ lib/opal-%%VERSION%%/codecs/audio/lpc10_ptplugin.so
 lib/opal-%%VERSION%%/codecs/audio/silk_ptplugin.so
 lib/opal-%%VERSION%%/codecs/audio/speex_ptplugin.so
 lib/opal-%%VERSION%%/codecs/video/h261_vic_ptplugin.so
-lib/opal-%%VERSION%%/codecs/video/h263_ffmpeg_ptplugin.so
+%%FFMPEG%%lib/opal-%%VERSION%%/codecs/video/h263_ffmpeg_ptplugin.so
 %%X264%%lib/opal-%%VERSION%%/codecs/video/h264_video_pwplugin_helper
 %%X264%%lib/opal-%%VERSION%%/codecs/video/h264_x264_ptplugin.so
-lib/opal-%%VERSION%%/codecs/video/mpeg4_ffmpeg_ptplugin.so
+%%FFMPEG%%lib/opal-%%VERSION%%/codecs/video/mpeg4_ffmpeg_ptplugin.so
 %%THEORA%%lib/opal-%%VERSION%%/codecs/video/theora_ptplugin.so
 %%FAX%%lib/opal-%%VERSION%%/fax/spandsp_ptplugin.so
 %%LID%%lib/opal-%%VERSION%%/lid/vpb_ptplugin.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304050900.33590cDM036020>