mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
ac1f9c8397
Modernize LIB_DEPENDS Tested with poudriere Approved by: jsa (maintainer)
28 lines
701 B
Makefile
28 lines
701 B
Makefile
# Created by: Chris D. Faulhaber <jedgar@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pngcrush
|
|
PORTVERSION= 1.7.67
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/pmt/${PORTNAME}/${PORTVERSION}/ \
|
|
SF/pmt/${PORTNAME}/old-versions/1.7/${PORTVERSION}/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-nolib
|
|
|
|
MAINTAINER= jsa@FreeBSD.org
|
|
COMMENT= Optimizer for PNG files
|
|
|
|
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
|
|
|
|
USE_XZ= yes
|
|
CFLAGS+= -DPNGCRUSH_COUNT_COLORS -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}"
|
|
|
|
PLIST_FILES= bin/pngcrush
|
|
|
|
NO_STAGE= yes
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pngcrush ${PREFIX}/bin/pngcrush
|
|
|
|
.include <bsd.port.mk>
|