From cbe40d5759b7a4b422fad7b6c9af83be1903ea8c Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Fri, 14 Feb 2014 09:59:19 +0000 Subject: [PATCH] - Allow packaging as a regular user - New LIB_DEPENDS syntax - Use OPTIONS helpers --- graphics/libmng/Makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/graphics/libmng/Makefile b/graphics/libmng/Makefile index aef3e12fdc59..8e0ec4794964 100644 --- a/graphics/libmng/Makefile +++ b/graphics/libmng/Makefile @@ -11,8 +11,8 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-devel/${PORTVERSION} \ MAINTAINER= mi@aldan.algebra.com COMMENT= Multiple-image Network Graphics (MNG) reference library -LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \ - lcms:${PORTSDIR}/graphics/lcms +LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ + liblcms.so:${PORTSDIR}/graphics/lcms OPTIONS_DEFINE= MNG_OPTIMIZE MNG_OPTIMIZE_DESC= Use vendor's new optimization flags @@ -20,14 +20,11 @@ MNG_OPTIMIZE_DESC= Use vendor's new optimization flags MAKEFILE= ${FILESDIR}/Makefile.bsd #USE_BZIP2= yes # Please, uncomment on next upgrade +USES= uidfix USE_LDCONFIG= yes -.include -.if ${PORT_OPTIONS:MMNG_OPTIMIZE} -MAKE_ARGS+= WITH_MNG_OPTIMIZE=true -.else -MAKE_ARGS+= WITH_MNG_OPTIMIZE=off -.endif +MNG_OPTIMIZE_MAKE_ARGS= WITH_MNG_OPTIMIZE=true +MNG_OPTIMIZE_MAKE_ARGS_OFF= WITH_MNG_OPTIMIZE=off post-install: cd ${WRKSRC}/doc/man && ${INSTALL_MAN} libmng.3 ${STAGEDIR}${PREFIX}/man/man3 \