freebsd-ports/graphics/optipng/files/patch-src-scripts-unix.mak.in
Wesley Shields 02618f7fa0 - Update to 0.6.2
- Add OPTIONS for bundled libpng and zlib (both off by default)
- Update maintainer address

PR:		ports/128877
Submitted by:	Thomas Hurst <tom@hur.st> (maintainer)
Security:	http://www.vuxml.org/freebsd/2bc960c4-e665-11dd-afcd-00e0815b8da8.html
2009-01-19 20:44:24 +00:00

33 lines
782 B
Makefile

--- src/scripts/unix.mak.in.orig 2008-09-03 23:56:00.000000000 +0100
+++ src/scripts/unix.mak.in 2008-11-14 18:29:12.000000000 +0000
@@ -4,16 +4,16 @@
# Usage: make -f scripts/unix.mak
-prefix=/usr/local
+prefix=${PREFIX}
exec_prefix=$(prefix)
bindir=$(exec_prefix)/bin
mandir=$(prefix)/man
man1dir=$(mandir)/man1
-CC = cc
-LD = $(CC)
-CFLAGS = -O
-LDFLAGS = -s
+CC ?= cc
+LD = $(CC)
+CFLAGS ?= -O
+LDFLAGS += -s -L${LOCALBASE}/lib
OPTIPNG = optipng
ZLIB = libz.a
@@ -28,7 +28,7 @@
BACKDIR = ../../src
OBJS = optipng.o opngoptim.o opngreduc.o cbitset.o osys.o strutil.o
-INCS = -I$(ZDIR) -I$(PNGDIR) -I$(PNGXDIR)
+INCS = -I$(ZDIR) -I$(PNGDIR) -I$(PNGXDIR) -I${LOCALBASE}/include
LIBS = $(PNGXDIR)/$(PNGXLIB) $(PNGDIR)/$(PNGLIB) $(ZDIR)/$(ZLIB)
SYSLIBS =