diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-12 06:12:02 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-12 06:12:02 +0000 |
commit | 230f8c0a602d9143b498d1d7b3a89126ebafffda (patch) | |
tree | 9d2ddaeeaed016d9b9433d3b3a9d2d00dfd49c49 /textproc/rotix/files | |
parent | e443e89ea9837edfacccfbac434a578e59b7407b (diff) | |
download | ports-230f8c0a602d9143b498d1d7b3a89126ebafffda.tar.gz ports-230f8c0a602d9143b498d1d7b3a89126ebafffda.zip |
Notes
Diffstat (limited to 'textproc/rotix/files')
-rw-r--r-- | textproc/rotix/files/patch-Makefile | 37 | ||||
-rw-r--r-- | textproc/rotix/files/patch-Makefile.settings | 19 | ||||
-rw-r--r-- | textproc/rotix/files/patch-rotix.c | 33 |
3 files changed, 89 insertions, 0 deletions
diff --git a/textproc/rotix/files/patch-Makefile b/textproc/rotix/files/patch-Makefile new file mode 100644 index 000000000000..55a4398ffd70 --- /dev/null +++ b/textproc/rotix/files/patch-Makefile @@ -0,0 +1,37 @@ +--- Makefile.orig Sat Nov 10 22:57:10 2001 ++++ Makefile Wed Dec 12 14:03:34 2001 +@@ -33,17 +33,17 @@ + ifdef DEBUG + CFLAGS = -g3 + else +-CFLAGS = -O3 ++CFLAGS = %%CFLAGS%% + endif + + ifdef I18N +-CFLAGS += -DPACKAGE=\"${PACKAGE}\" -D LOCALEDIR=\"${LOCALEDIR}\" ++CFLAGS += -DPACKAGE=\"${PACKAGE}\" -D LOCALEDIR=\"${LOCALEDIR}\" -I%%LOCALBASE%%/include + endif + + all : rotix po + + rotix : rot.o help.o rotix.o +- gcc -Wall $(CFLAGS) -o rotix rot.o help.o rotix.o ++ gcc -Wall $(CFLAGS) -o rotix rot.o help.o rotix.o -L%%LOCALBASE%%/lib -lintl + ifdef STRIP + ifndef DEBUG + strip rotix +@@ -78,10 +78,10 @@ + rm -f po/*.mo + + install: rotix po +- install -D --mode=0755 rotix $(DESTDIR)$(BINDIR)/rotix +- install -D --mode=0644 rotix.1 $(DESTDIR)$(MANDIR)/man1/rotix.1 ++ %%INSTALL_PROGRAM%% rotix $(DESTDIR)$(BINDIR) ++ %%INSTALL_MAN%% rotix.1 $(DESTDIR)$(MANDIR)/man1 + ifdef I18N +- install -D --mode=0644 po/NL.mo $(DESTDIR)$(LOCALEDIR)/nl/LC_MESSAGES/rotix.mo ++ %%INSTALL_DATA%% po/NL.mo $(DESTDIR)$(LOCALEDIR)/nl/LC_MESSAGES/rotix.mo + endif + + uninstall: diff --git a/textproc/rotix/files/patch-Makefile.settings b/textproc/rotix/files/patch-Makefile.settings new file mode 100644 index 000000000000..08f564800bbd --- /dev/null +++ b/textproc/rotix/files/patch-Makefile.settings @@ -0,0 +1,19 @@ +--- Makefile.settings.orig Wed Dec 12 13:47:06 2001 ++++ Makefile.settings Wed Dec 12 13:48:46 2001 +@@ -13,7 +13,7 @@ + + # PREFIX: This is the prefix for installing Rotix. Default is /usr/local. + # Alternative could be /usr. +-PREFIX=/usr/local ++#PREFIX=/usr/local + + # DESTDIR: Used when creating packages. + DESTDIR= +@@ -27,5 +27,5 @@ + PACKAGE=rotix + + # LOCALEDIR: If your LOCALEDIR is somewhere else, change the path. +-LOCALEDIR=/usr/share/locale +- ++LOCALEDIR=${PREFIX}/share/locale ++ diff --git a/textproc/rotix/files/patch-rotix.c b/textproc/rotix/files/patch-rotix.c new file mode 100644 index 000000000000..47e440778929 --- /dev/null +++ b/textproc/rotix/files/patch-rotix.c @@ -0,0 +1,33 @@ +--- rotix.c Fri Nov 9 17:39:12 2001 ++++ rotix.c Fri Dec 7 15:35:26 2001 +@@ -26,9 +26,11 @@ + /* System includes. */ + #include <stdio.h> + #include <stdlib.h> +-#include <getopt.h> ++#include <unistd.h> + #include <string.h> + ++#define getopt_long( a, b, c, d, e ) getopt( a, b, c ) ++ + /* I18N */ + #include <libintl.h> + #define _(String) gettext (String) +@@ -46,7 +47,7 @@ + int i = 1, rotor = 13, option = 0; + char *arg = NULL, option_flags = 0, rotate_flags = 0; + +- /* The struct used to determine which options are called. */ ++ /* The struct used to determine which options are called. + static struct option rotix_options[] = { + { "file", 1, NULL, 'f' }, + { "rot", 1, NULL, 'r' }, +@@ -57,7 +58,7 @@ + { "help", 0, NULL, 'h' }, + { "version", 0, NULL, 'v' }, + { NULL, 0, NULL, 0 } +- }; ++ }; */ + + + /* A 2-bit character array, to obfuscate a character */ |