5b58a992f8
- Convert to option helpers but don't use _CONFIGURE_WITH due to inverse logic - Fix compiler warning on amd64 due to (size_t)(-1) being larger than UINT_MAX PR: 199612 Submitted by: Thomas Hurst <tom@hur.st> (maintainer)
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
# Created by: Thomas Hurst <tom@hur.st>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= optipng
|
|
PORTVERSION= 0.7.5
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/${PORTNAME}/OptiPNG/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= tom@hur.st
|
|
COMMENT= Optimizer for PNG files
|
|
|
|
LICENSE= ZLIB
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
OPTIONS_DEFINE= BUNDLED_LIBPNG BUNDLED_ZLIB
|
|
|
|
BUNDLED_LIBPNG_DESC= Use bundled libpng
|
|
BUNDLED_LIBPNG_CONFIGURE_OFF= --with-system-libpng
|
|
BUNDLED_LIBPNG_CONFIGURE_ON= --without-system-libpng
|
|
BUNDLED_LIBPNG_LIB_DEPENDS_OFF= libpng.so:${PORTSDIR}/graphics/png
|
|
BUNDLED_LIBPNG_CFLAGS_OFF= -I${LOCALBASE}/include
|
|
BUNDLED_LIBPNG_LDFLAGS_OFF= -L${LOCALBASE}/lib
|
|
|
|
BUNDLED_ZLIB_DESC= Use bundled zlib
|
|
BUNDLED_ZLIB_CONFIGURE_OFF= --with-system-zlib
|
|
BUNDLED_ZLIB_CONFIGURE_ON= --without-system-zlib
|
|
|
|
USES= gmake
|
|
HAS_CONFIGURE= yes
|
|
|
|
PLIST_FILES= bin/optipng man/man1/optipng.1.gz
|
|
PORTDOCS= history.txt optipng.man.html optipng.man.pdf optipng.man.txt \
|
|
png_optimization.html todo.txt
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/optipng/optipng ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_MAN} ${WRKSRC}/src/optipng/man/optipng.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
|
|
|
|
post-install:
|
|
${INSTALL} -d ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.include <bsd.port.mk>
|