mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Introduce shared library version
This commit is contained in:
parent
6b01de01db
commit
2aeebefcdb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=499686
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user