1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/graphics/libmng/Makefile
Martin Wilke 7fa9fcc5dc - Update to 1.0.10
PR:		125666
Submitted by:	Wen heping <wenheping@gmail.com>
Approved by:	maintainer timeout
2008-08-13 07:07:36 +00:00

45 lines
1.1 KiB
Makefile

# New ports collection makefile for: libmng
# Date created: Nov 2, 2000
# Whom: Mikhail Teterin <mi@aldan.algebra.com>
#
# $FreeBSD$
#
PORTNAME= libmng
PORTVERSION= 1.0.10
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.libmng.com/download/
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= mi@aldan.algebra.com
COMMENT= Multiple-image Network Graphics (MNG) reference library
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
lcms:${PORTSDIR}/graphics/lcms
OPTIONS= MNG_OPTIMIZE "Use vendor's new optimization flags" no
REINPLACE_ARGS= -i ""
MAKEFILE= ${FILESDIR}/Makefile.bsd
MAKE_ARGS+= -j2 WITH_MNG_OPTIMIZE=${WITH_MNG_OPTIMIZE}
USE_LDCONFIG= yes
MAN3= libmng.3
MAN5= mng.5 jng.5
post-extract:
#
# Getting rid of the DOS-style end-of-lines left by the vendor
#
${FIND} ${WRKSRC} -type f | ${XARGS} ${FILE} | \
${AWK} -F: '/CRLF/ { print $$1 }' | \
${XARGS} ${REINPLACE_CMD} -Ee 's,[[:space:]]+$$,,'
post-install:
cd ${WRKSRC}/doc/man && ${INSTALL_MAN} ${MAN3} ${PREFIX}/man/man3 \
&& ${INSTALL_MAN} ${MAN5} ${PREFIX}/man/man5
.include <bsd.port.mk>