1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/graphics/pnglite/Makefile
2021-04-08 02:19:01 +03:00

31 lines
742 B
Makefile

PORTNAME= pnglite
PORTVERSION= 0.1.17
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Lightweight PNG C library
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 lib/libpnglite.so.${SOVERSION}
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -shared pnglite.c -o libpnglite.so.${SOVERSION}
do-install:
${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>