freebsd-ports/print/pnm2ppa/files/patch-aa
FUJISHIMA Satsuki 29d1daf787 rename pbm2ppa to pnm2ppa with updating to 1.04 (repository copied).
PR:		24880
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2001-03-03 21:19:13 +00:00

26 lines
657 B
Plaintext

--- Makefile.orig Fri Nov 3 03:33:08 2000
+++ Makefile Tue Jan 30 21:25:55 2001
@@ -2,16 +2,16 @@
# Makefile for pnm2ppa
#
-INSTALLDIR=/usr/local/bin
-CONFDIR=/etc
-MANDIR=/usr/local/man/man1
+INSTALLDIR=${PREFIX}/bin
+CONFDIR=${PREFIX}/etc
+MANDIR=${PREFIX}/man/man1
-CC=gcc
+CC?=gcc
INSTALL=install
# production build
-CFLAGS=-Wall -pedantic -O2 -g -DNDEBUG
-LDFLAGS=-lm
+CFLAGS+=-DCONFDIR=\"$(CONFDIR)\" -DNDEBUG -I${LOCALBASE}/include
+LDFLAGS=-lm -L${LOCALBASE}/lib -lgnugetopt
OBJS = pnm2ppa.o syslog.o ppa.o image.o dither.o cutswath.o hash_ink.o gamma.o
SRC = pnm2ppa.c syslog.c ppa.c image.c dither.c cutswath.c hash_ink.c gamma.c