freebsd-ports/graphics/pngcrush/Makefile
Bernhard Froehlich 32ea85334f graphics/pngcrush: Add CPE information
Approved by:    portmgr (blanket)
2021-10-08 11:18:59 +00:00

35 lines
911 B
Makefile

# Created by: Chris D. Faulhaber <jedgar@FreeBSD.org>
PORTNAME= pngcrush
PORTVERSION= 1.8.13
CATEGORIES= graphics
MASTER_SITES= SF/pmt/${PORTNAME}/${PORTVERSION}/ \
SF/pmt/${PORTNAME}/old-versions/${PORTVERSION:R}/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-nolib
MAINTAINER= vsasjason@gmail.com
COMMENT= Optimizer for PNG files
LICENSE= Pngcrush
LICENSE_NAME= Pngcrush License
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
LIB_DEPENDS= libpng.so:graphics/png
USES= cpe localbase:ldflags tar:xz
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" LD="${CC}" \
LDFLAGS="${LDFLAGS}"
CPE_VENDOR= pngcrush_project
PLIST_FILES= bin/pngcrush
post-patch:
@${REINPLACE_CMD} -e '/^LIBS/s|-L$$([[:alnum:]]*) ||g' \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/pngcrush
.include <bsd.port.mk>