1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/graphics/libmng/Makefile
Mikhail Teterin d555a0e335 Restore the post-patch target to the previous version (using test(1)).
The make's ``.if exists'' works differently...

Submitted by:	KATO Tsuguru
2001-07-17 14:21:36 +00:00

37 lines
807 B
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.2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.libmng.com/download/
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= mi@aldan.algebra.com
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
lcms.1:${PORTSDIR}/graphics/lcms
MAKEFILE= ${FILESDIR}/Makefile.bsd
MAKE_ARGS+= -j2
INSTALLS_SHLIB= yes
MAN3= libmng.3
MAN5= mng.5 jng.5
post-patch:
test ! -e ${PREFIX}/include/lcms.h || ${PERL} -pi -e \
's%lcms/lcms.h%lcms.h%' ${WRKSRC}/libmng_types.h
post-install:
cd ${WRKSRC}/doc/man && ${INSTALL_MAN} ${MAN3} ${PREFIX}/man/man3 \
&& ${INSTALL_MAN} ${MAN5} ${PREFIX}/man/man5
.include <bsd.port.mk>