--- antiword-0.37.old/Makefile.Linux +++ antiword-0.37/Makefile.Linux @@ -29,19 +29,19 @@ summary.o tabstop.o text.o unix.o utf8.o word2text.o worddos.o\ wordlib.o wordmac.o wordole.o wordwin.o xmalloc.o xml.o -PROGS =\ - antiword\ - kantiword +PROGS = antiword LOCAL_INSTALL_DIR = $(HOME)/bin LOCAL_RESOURCES_DIR = $(HOME)/.antiword -GLOBAL_INSTALL_DIR = /usr/local/bin -GLOBAL_RESOURCES_DIR = /usr/share/antiword +GLOBAL_INSTALL_DIR = __META_PREFIX__/bin +GLOBAL_RESOURCES_DIR = __META_PREFIX__/data all: $(PROGS) -install: all +install: global_install + +old-install: all mkdir -p $(LOCAL_INSTALL_DIR) cp -pf $(PROGS) $(LOCAL_INSTALL_DIR) mkdir -p $(LOCAL_RESOURCES_DIR) --- antiword-0.37.old/Unix-only/fontinfo.pl +++ antiword-0.37/Unix-only/fontinfo.pl @@ -50,8 +50,8 @@ "dotaccent" ); -$gs_dir1 = '/usr/share/ghostscript/fonts'; -$gs_dir2 = '/usr/share/ghostscript/fonts2'; +$gs_dir1 = '__META_PRODTREE__/ghostfonts'; +$gs_dir2 = $gs_dir1; @fontnames = ( "Courier", "Courier-Bold", "Courier-Oblique", "Courier-BoldOblique", --- antiword-0.37.old/antiword.h +++ antiword-0.37/antiword.h @@ -224,7 +224,7 @@ #define ANTIWORD_DIR ".antiword" #define FONTNAMES_FILE "fontnames" #else /* All others */ -#define GLOBAL_ANTIWORD_DIR "/usr/share/antiword" +#define GLOBAL_ANTIWORD_DIR "__META_PREFIX__/data" #define ANTIWORD_DIR ".antiword" #define FONTNAMES_FILE "fontnames" #endif /* __dos */ --- antiword-0.37.old/Docs/antiword.1 +++ antiword-0.37/Docs/antiword.1 @@ -90,7 +90,7 @@ .br (2) The directory specified by $HOME/.antiword .br -(3) Directory /usr/share/antiword +(3) Directory __META_PREFIX__/data .TP The fontnames file .br