freebsd-ports/print/latex2rtf/files/patch-aa
2003-10-28 20:22:07 +00:00

63 lines
2.1 KiB
Text

--- Makefile.orig Thu Nov 28 19:36:14 2002
+++ Makefile Tue Oct 28 21:13:49 2003
@@ -1,9 +1,8 @@
# $Id: Makefile,v 1.76 2002/11/28 18:36:14 prahl Exp $
-CC=gcc
MKDIR=mkdir -p
-CFLAGS:=-DUNIX
+CFLAGS+=-DUNIX
#CFLAGS:=-DMSDOS #Windows/DOS
#CFLAGS:=-DMACINTOSH #MacOS 8/9
#CFLAGS:=-DOS2 #OS/2
@@ -18,7 +17,7 @@
#CFLAGS:=$(CFLAGS) -Zwin32
#Base directory - adapt as needed
-PREFIX=$(PREFIX_DRIVE)/usr/local
+#PREFIX=$(PREFIX_DRIVE)/usr/local
#Name of executable binary --- beware of 8.3 restriction under DOS
BINARY_NAME=latex2rtf$(EXE_SUFFIX)
@@ -32,7 +31,7 @@
# Nothing to change below this line
-CFLAGS:=$(CFLAGS) -g -Wall -fsigned-char
+CFLAGS+=-fsigned-char
LIBS=
#LIBS=-lMallocDebug -force_flat_namespace
@@ -144,14 +143,14 @@
$(MKDIR) $(BIN_INSTALL)
$(MKDIR) $(MAN_INSTALL)
$(MKDIR) $(CFG_INSTALL)
- cp $(BINARY_NAME) $(BIN_INSTALL)
- cp scripts/latex2png $(BIN_INSTALL)
- cp doc/latex2rtf.1 $(MAN_INSTALL)
- cp doc/latex2png.1 $(MAN_INSTALL)
- cp $(CFGS) $(CFG_INSTALL)
- cp doc/latex2rtf.html $(SUPPORT_INSTALL)
- cp doc/latex2rtf.pdf $(SUPPORT_INSTALL)
- cp doc/latex2rtf.txt $(SUPPORT_INSTALL)
+ ${BSD_INSTALL_PROGRAM} $(BINARY_NAME) $(BIN_INSTALL)
+ ${BSD_INSTALL_SCRIPT} scripts/latex2png $(BIN_INSTALL)
+ ${BSD_INSTALL_MAN} doc/latex2rtf.1 $(MAN_INSTALL)
+ ${BSD_INSTALL_MAN} doc/latex2png.1 $(MAN_INSTALL)
+ ${BSD_INSTALL_DATA} $(CFGS) $(CFG_INSTALL)
+ ${BSD_INSTALL_DATA} doc/latex2rtf.html $(SUPPORT_INSTALL)
+ ${BSD_INSTALL_DATA} doc/latex2rtf.pdf $(SUPPORT_INSTALL)
+ ${BSD_INSTALL_DATA} doc/latex2rtf.txt $(SUPPORT_INSTALL)
@echo "******************************************************************"
@echo "*** latex2rtf successfully installed as \"$(BINARY_NAME)\""
@echo "*** in directory \"$(BIN_INSTALL)\""
@@ -169,7 +168,7 @@
install-info: doc/latex2rtf.info
$(MKDIR) $(INFO_INSTALL)
- cp doc/latex2rtf.info $(BIN_INSTALL)
+ ${BSD_INSTALL_DATA} doc/latex2rtf.info $(BIN_INSTALL)
install-info --info-dir=$(INFO_INSTALL) doc/latex2rtf.info
realclean: checkdir clean