freebsd-ports/graphics/optipng/files/patch-src__scripts__unix-secure.mak
Andrew Pantyukhin ffb74fea62 - Update to 0.5.4
Approved by:	Thomas 'Freaky' Hurst <tom@hur.st> (maintainer timeout, since Jul 24)
2006-08-25 19:20:43 +00:00

34 lines
727 B
Makefile

--- ./src/scripts/unix-secure.mak.orig Fri Aug 11 19:08:00 2006
+++ ./src/scripts/unix-secure.mak Sat Aug 12 10:56:39 2006
@@ -12,17 +12,14 @@
# Usage: make -f scripts/unix-secure.mak
-prefix=/usr/local
+prefix=${PREFIX}
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
-mandir=${prefix}/man
-man1dir=${mandir}/man1
+man1dir=${MAN1PREFIX}/man/man1
-CC = cc
-LD = $(CC)
-MAKE = make
-CFLAGS = -O
-LDFLAGS = -s
+CFLAGS ?= -O
+LDFLAGS += -s -L${LOCALBASE}/lib
+CFLAGS += -I${LOCALBASE}/include
OPTIPNG = optipng
PNGXLIB = pngxtern.a
@@ -35,7 +32,7 @@
$(OPTIPNG): $(OBJS) $(LIBS)
- $(LD) -o $(OPTIPNG) $(LDFLAGS) $(OBJS) $(LIBS) -lpng -lz
+ $(CC) -o $(OPTIPNG) $(LDFLAGS) $(OBJS) $(LIBS) -lpng -lz
.c.o: