freebsd-ports/print/pnm2ppa/files/patch-aa
Norikatsu Shigemura 531a30ff85 Conditionalize libgnugetopt dependencies.
PR:		ports/47754
Submitted by:	Ports Fury
2003-02-02 14:46:15 +00:00

24 lines
695 B
Plaintext

--- Makefile.orig Sun Oct 6 10:27:36 2002
+++ Makefile Mon Nov 18 21:08:50 2002
@@ -5,14 +5,14 @@
# paths to locations where the pnm2ppa binary, the configuration file,
# and the man page should be installed. On some systems (like Solaris)
# the install command requires the syntax BINDIR="-f /usr/local/bin".
-BINDIR="/usr/local/bin"
-CONFDIR="/etc"
-MANDIR="/usr/local/man/man1"
+BINDIR="${PREFIX}/bin"
+CONFDIR="${PREFIX}/etc"
+MANDIR="${PREFIX}/man/man1"
#compiler and linker options:
-CC=gcc
-CFLAGS=-Wall -pedantic -O2
-LDFLAGS=-lm
+CC?=gcc
+CFLAGS+=-DCONFDIR=\"$(CONFDIR)\"
+LDFLAGS+=-lm
INSTALL=install
# Install under Linux and other versions with the -b (backup) option