1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/textproc/nfbtrans/files/patch-aa
Masafumi Max NAKANE ebf88ffc8a New port, nfbtrans:
NFBTRANS is a very accurate Grade Two braille translator.  It can also
back translate a Grade Two file into normal text.  The program has
many options which allow the user to customize its operation.
Formatting commands can be used to generate Tables of Contents, ink
print page numbers, running headers and much more. Translation rules
are in a text file and can easily be modified by the user.  The
program can be configured to hyphenate words to save space.

Because the copyright status is unclear, I'm marking this as
RESTRICTED until I can find out from the author.
1998-08-30 02:32:23 +00:00

42 lines
810 B
Plaintext

--- makefile.orig Sun Aug 30 06:13:32 1998
+++ makefile Sun Aug 30 07:58:37 1998
@@ -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}/lib/nfbtrans/
+#
#The source and object files are as follows:
SRCFILES=nfbtrans.c nfbpatch.c
@@ -10,7 +15,7 @@
LIBS= -ltermcap
#Compiler and linking flags are as follows:
-CFLAGS=-O
+CFLAGS+=-O -dUNIX_PATH=${UNIX_PATH}
CC=gcc
LDFLAGS=-Bdynamic
@@ -22,6 +27,7 @@
@echo "ultrix"
@echo "aix"
@echo "linux"
+ @echo "freebsd"
all: nfbtrans
#Lint can wait a while
@@ -31,6 +37,9 @@
ultrix:
$(MAKE) CFLAGS=-O
+
+freebsd:
+ ${MAKE} all CFLAGS="${CFLAGS} -Dfreebsd"
linux:
$(MAKE) CFLAGS=-O