git: 00682fbf1bb6 - main - archivers/lzlib: Enable shared libraries

From: Xin LI <delphij_at_FreeBSD.org>
Date: Sun, 25 Aug 2024 06:11:49 UTC
The branch main has been updated by delphij:

URL: https://cgit.FreeBSD.org/ports/commit/?id=00682fbf1bb65a6577cade2d4f19c217290db107

commit 00682fbf1bb65a6577cade2d4f19c217290db107
Author:     Eero Hanninen <fax@nohik.ee>
AuthorDate: 2024-08-13 11:49:12 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2024-08-25 06:11:31 +0000

    archivers/lzlib: Enable shared libraries
    
    PR:             ports/280795
---
 archivers/lzlib/Makefile | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/archivers/lzlib/Makefile b/archivers/lzlib/Makefile
index 2be4808f5e1f..af08a056bf07 100644
--- a/archivers/lzlib/Makefile
+++ b/archivers/lzlib/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	lzlib
 PORTVERSION=	1.14
+PORTREVISION=	1
 CATEGORIES=	archivers
 MASTER_SITES=	SAVANNAH/lzip/lzlib
 
@@ -10,12 +11,18 @@ WWW=		https://www.nongnu.org/lzip/lzlib.html
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		gmake
+CONFIGURE_ARGS=	--enable-shared
 GNU_CONFIGURE=	yes
-MAKE_ARGS=	${MAKE_ENV}
 INFO=		lzlib
+INSTALL_TARGET=	install-strip
+MAKE_ARGS=	${MAKE_ENV}
+USES=		gmake
+USE_LDCONFIG=	yes
 
 PLIST_FILES=	include/lzlib.h \
-		lib/liblz.a
+		lib/liblz.a \
+		lib/liblz.so \
+		lib/liblz.so.${PORTVERSION:R} \
+		lib/liblz.so.${PORTVERSION}
 
 .include <bsd.port.mk>