summaryrefslogtreecommitdiffstats
path: root/converters/ascii2binary/files
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2006-01-30 23:25:17 +0000
committerthierry <thierry@FreeBSD.org>2006-01-30 23:25:17 +0000
commit880dae9b5ecdb9035fb976b06ea3426259195592 (patch)
tree5060fb5e7563119a0cecc22eb3a442e75aa24577 /converters/ascii2binary/files
parent851fe01f3c02de8b97b480871b0c789c5b35e733 (diff)
downloadFreeBSD-ports-880dae9b5ecdb9035fb976b06ea3426259195592.zip
FreeBSD-ports-880dae9b5ecdb9035fb976b06ea3426259195592.tar.gz
ascii2binary and binary2ascii convert between textual and binary
representations of numbers. The two programs are useful for generating test data, for inspecting binary files, and for interfacing programs that generate textual output to programs that require binary input and conversely. They can also be useful when it is desired to reformat numbers. WWW: http://billposer.org/Software/a2b.html
Diffstat (limited to 'converters/ascii2binary/files')
-rw-r--r--converters/ascii2binary/files/patch-Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/converters/ascii2binary/files/patch-Makefile b/converters/ascii2binary/files/patch-Makefile
new file mode 100644
index 0000000..ef22206
--- /dev/null
+++ b/converters/ascii2binary/files/patch-Makefile
@@ -0,0 +1,49 @@
+--- Makefile.orig Mon Sep 12 19:35:10 2005
++++ Makefile Mon Jan 30 00:09:11 2006
+@@ -1,28 +1,27 @@
+-CC=gcc
+-BINDIR=/usr/local/bin
+-MANDIR=/usr/local/man/man1
++BINDIR=${PREFIX}/bin
++MANDIR=${PREFIX}/man/man1
+ BINS= ascii2binary binary2ascii
+ MANS= ascii2binary.1 binary2ascii.1
+-LOCALEDIR=/usr/local/share/locale
+-CFLAGS= -DPACKAGE=\"ascii2binary\" -DLOCALEDIR=\"${LOCALEDIR}\"
++LOCALEDIR=${PREFIX}/share/locale
++CFLAGS= ${CPPFLAGS} -DPACKAGE=\"ascii2binary\" -DLOCALEDIR=\"${LOCALEDIR}\"
+ all: ${BINS} mo
+ #CFLAGS= -DPACKAGE=\"ascii2binary\" -DLOCALEDIR=\"${LOCALEDIR}\"
+ #all: ${BINS}
+
+ ascii2binary: ascii2binary.o GetWord.o MachineInfo.o endian.o exitcodes.o
+- ${CC} -o ascii2binary ascii2binary.o GetWord.o MachineInfo.o endian.o exitcodes.o
++ ${CC} ${LDFLAGS} -o ascii2binary ascii2binary.o GetWord.o MachineInfo.o endian.o exitcodes.o ${LIBS}
+
+ binary2ascii: binary2ascii.o binfmt.o MachineInfo.o endian.o exitcodes.o
+- ${CC} -o binary2ascii binary2ascii.o binfmt.o MachineInfo.o endian.o exitcodes.o
++ ${CC} ${LDFLAGS} -o binary2ascii binary2ascii.o binfmt.o MachineInfo.o endian.o exitcodes.o ${LIBS}
+
+ MachineInfo.o: MachineInfo.c
+- ${CC} -c MachineInfo.c
++ ${CC} -c ${CFLAGS} MachineInfo.c
+
+ GetWord.o: GetWord.c
+- ${CC} -c GetWord.c
++ ${CC} -c ${CFLAGS} GetWord.c
+
+ binfmt.o: binfmt.c
+- ${CC} -c binfmt.c
++ ${CC} -c ${CFLAGS} binfmt.c
+
+ exitcodes.o: exitcodes.c
+ ${CC} -c ${CFLAGS} exitcodes.c
+@@ -33,7 +32,7 @@
+ binary2ascii.o: binary2ascii.c
+ ${CC} ${CFLAGS} -c binary2ascii.c
+
+-mo:
++mo:
+ (cd locale/fr/LC_MESSAGES; make ascii2binary.mo)
+
+ install: ${BINS} ${MANS}
OpenPOWER on IntegriCloud