openbsd-ports/graphics/optipng/Makefile
bcallah 9ae1bb94e1 Minor update to 0.7.5
ok Kyle Isom (MAINTAINER)
2014-06-20 03:17:43 +00:00

30 lines
713 B
Makefile

# $OpenBSD: Makefile,v 1.2 2014/06/20 03:17:43 bcallah Exp $
COMMENT = lossless PNG optimizer
DISTNAME = optipng-0.7.5
CATEGORIES = graphics
HOMEPAGE = http://optipng.sourceforge.net/
MAINTAINER = Kyle Isom <kyle@tyrfingr.is>
# zlib
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c m png z
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=optipng/}
LIB_DEPENDS = graphics/png
CONFIGURE_STYLE = simple
CONFIGURE_ARGS += -with-system-zlib -with-system-libpng
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/optipng/optipng ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/src/optipng/man/optipng.1 ${PREFIX}/man/man1
.include <bsd.port.mk>