summaryrefslogtreecommitdiff
path: root/converters/latex2rtf/patches/patch-aa
blob: 996217710ee72625d32b0e4075b0e8e56229a0b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$NetBSD: patch-aa,v 1.5 2006/03/03 19:52:37 kristerw Exp $

--- Makefile.orig	2004-11-07 18:59:18.000000000 -0800
+++ Makefile	2005-11-03 15:42:07.000000000 -0800
@@ -2,3 +2,3 @@
 
-CC=gcc
+CC?=gcc
 MKDIR=mkdir -p
@@ -18,14 +18,14 @@
 #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)
 
 # Location of binary, man, info, and support files - adapt as needed
 BIN_INSTALL=$(PREFIX)/bin
-MAN_INSTALL=$(PREFIX)/man/man1
+MAN_INSTALL=$(PREFIX)/$(PKGMANDIR)/man1
 INFO_INSTALL=$(PREFIX)/info
 SUPPORT_INSTALL=$(PREFIX)/share/latex2rtf
 CFG_INSTALL=$(PREFIX)/share/latex2rtf/cfg
@@ -176,9 +176,9 @@
 	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)
+	cp doc/latex2rtf.html $(PREFIX)/share/doc/latex2rtf
+	cp doc/latex2rtf.pdf  $(PREFIX)/share/doc/latex2rtf
+#	cp doc/latex2rtf.txt  $(SUPPORT_INSTALL)
 	@echo "******************************************************************"
 	@echo "*** latex2rtf successfully installed as \"$(BINARY_NAME)\""
 	@echo "*** in directory \"$(BIN_INSTALL)\""