1ee4da6dd1
USES=localbase:ldflags can be used to set LDFLAGS. Normally LDFLAGS appears too early on the command line causing some ports to link with their own libraries in LOCALBASE (if installed) instead of WRKSRC. Also make use of _USES_POST so -L${LOCALBASE}/lib is added as late as possible after anything a port Makefile might set. Use _USES_POST instead of .include in libedit.mk and libarchive.mk so things like 'USES=libedit localbase:ldflags' work correctly. Fix some issues with LIBS in some ports. Switch ports that don't support LIBS to localbase:ldflags. PR: 212987 Exp-run by: antoine Approved by: portmgr (antoine)
33 lines
683 B
Makefile
33 lines
683 B
Makefile
# Created by: Daniel Roethlisberger <daniel@roe.ch>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pngrewrite
|
|
PORTVERSION= 1.4.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://entropymine.com/jason/pngrewrite/ \
|
|
http://mirror.roe.ch/dist/pngrewrite/
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= PNG palette optimizer
|
|
|
|
LICENSE= ZLIB
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
|
|
|
USES= localbase zip
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
PLIST_FILES= bin/pngrewrite
|
|
|
|
do-build:
|
|
${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${LIBS} -lm -lpng -lz \
|
|
${WRKSRC}/libpngrewrite.c ${WRKSRC}/pngrewrite.c \
|
|
-o ${WRKSRC}/pngrewrite
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pngrewrite ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.include <bsd.port.mk>
|