aboutsummaryrefslogtreecommitdiff
path: root/graphics/pngrewrite/Makefile
blob: 8ddb652b3a10689c79bf253cc581b1fc14c5bc50 (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
PORTNAME=	pngrewrite
PORTVERSION=	1.4.0
PORTREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	http://entropymine.com/jason/pngrewrite/ \
		http://mirror.roe.ch/dist/pngrewrite/

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	PNG palette optimizer
WWW=		https://entropymine.com/jason/pngrewrite/

LICENSE=	ZLIB

LIB_DEPENDS=	libpng.so:graphics/png

USES=		localbase zip

NO_WRKSUBDIR=	yes

PLIST_FILES=	bin/pngrewrite

do-build:
	${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${LIBS} -lm -lpng -lz \
		${WRKSRC}/libpngrewrite.c ${WRKSRC}/pngrewrite.c \
		-o ${WRKSRC}/pngrewrite

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/pngrewrite ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>