From 3c716e2cda24eafdb59ec400f372c3051509fc0f Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Mon, 19 Oct 2015 20:20:21 +0000 Subject: [PATCH] - Use USES=localbase --- graphics/pngrewrite/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/graphics/pngrewrite/Makefile b/graphics/pngrewrite/Makefile index a187675029a9..de2598da110d 100644 --- a/graphics/pngrewrite/Makefile +++ b/graphics/pngrewrite/Makefile @@ -15,16 +15,14 @@ LICENSE= ZLIB LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -lm -lpng -lz -USES= zip +USES= localbase zip NO_WRKSUBDIR= yes PLIST_FILES= bin/pngrewrite do-build: - ${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/pngrewrite ${WRKSRC}/libpngrewrite.c ${WRKSRC}/pngrewrite.c + ${CC} ${CFLAGS} ${LDFLAGS} -lm -lpng -lz -o ${WRKSRC}/pngrewrite ${WRKSRC}/libpngrewrite.c ${WRKSRC}/pngrewrite.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pngrewrite ${STAGEDIR}${PREFIX}/bin/