Date: Mon, 22 Apr 2019 20:55:10 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r499686 - head/graphics/pnglite Message-ID: <201904222055.x3MKtAxB050301@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Mon Apr 22 20:55:10 2019 New Revision: 499686 URL: https://svnweb.freebsd.org/changeset/ports/499686 Log: - Introduce shared library version Modified: head/graphics/pnglite/Makefile Modified: head/graphics/pnglite/Makefile ============================================================================== --- head/graphics/pnglite/Makefile Mon Apr 22 20:52:52 2019 (r499685) +++ head/graphics/pnglite/Makefile Mon Apr 22 20:55:10 2019 (r499686) @@ -3,6 +3,7 @@ PORTNAME= pnglite PORTVERSION= 0.1.17 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= SF @@ -13,16 +14,20 @@ LICENSE= ZLIB USES= dos2unix zip USE_LDCONFIG= yes +SOVERSION= 0 +LDFLAGS+= -fPIC -Wl,-soname,libpnglite.so.${SOVERSION} + NO_WRKSUBDIR= yes -PLIST_FILES= include/pnglite.h lib/libpnglite.so +PLIST_FILES= include/pnglite.h lib/libpnglite.so lib/libpnglite.so.${SOVERSION} do-build: - cd ${WRKSRC} && ${CC} -o libpnglite.so -shared ${CFLAGS} -fPIC ${LDFLAGS} -lz pnglite.c + cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -shared pnglite.c -o libpnglite.so.${SOVERSION} do-install: - ${INSTALL_LIB} ${WRKSRC}/libpnglite.so ${STAGEDIR}${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/pnglite.h ${STAGEDIR}${PREFIX}/include + ${INSTALL_LIB} ${WRKSRC}/libpnglite.so.${SOVERSION} ${STAGEDIR}${PREFIX}/lib + ${LN} -s libpnglite.so.${SOVERSION} ${STAGEDIR}${PREFIX}/lib/libpnglite.so .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904222055.x3MKtAxB050301>