aboutsummaryrefslogtreecommitdiff
path: root/graphics/pnglite/Makefile
blob: b546889ab9b896c58c9974aa831603033588d8fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PORTNAME=	pnglite
PORTVERSION=	0.1.17
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	SF

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Lightweight PNG C library
WWW=		https://sourceforge.net/projects/pnglite/

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>