freebsd-ports/textproc/nfbtrans/files/patch-aa
Masafumi Max NAKANE ffe8118d73 Upgrade to 7.58.
PR:		23893
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2001-06-07 00:58:36 +00:00

43 lines
874 B
Text

--- makefile.orig Sat Sep 23 13:46:52 2000
+++ makefile Thu Nov 30 04:13:38 2000
@@ -3,6 +3,11 @@
#translation software written by the National Federation of the Blind
#compile under the Unix operating system.
#
+#Installation prefix:
+PREFIX?=/usr/local
+#Library path:
+UNIX_PATH?=${PREFIX}/share/nfbtrans/
+#
#The source and object files are as follows:
SRCFILES=nfbtrans.c nfbpatch.c
@@ -10,8 +15,8 @@
LIBS= -ltermcap
#Compiler and linking flags are as follows:
-CFLAGS="-O"
-CC=gcc
+CFLAGS+=-O -DUNIX_PATH=\\\"${UNIX_PATH}\\\"
+CC?=gcc
LDFLAGS=-Bdynamic
default:
@@ -21,6 +26,7 @@
@echo "make ultrix"
@echo "make aix"
@echo "make linux"
+ @echo "make freebsd"
all: nfbtrans
nfbtrans: $(OBJFILES)
@@ -28,6 +34,9 @@
ultrix:
$(MAKE) CFLAGS=-O
+
+freebsd:
+ ${MAKE} all CFLAGS="${CFLAGS} -Dfreebsd"
linux:
$(MAKE) all CFLAGS="-O -Dlinux"