summaryrefslogtreecommitdiff
path: root/biology/chemtool/patches/patch-aa
blob: 8d47652b8023f79cf5c701b06790fbaeea95f4f8 (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
40
41
42
43
44
45
46
47
48
49
50
$NetBSD: patch-aa,v 1.8 2002/11/30 15:32:02 salo Exp $

--- Makefile.orig	Sat Sep  8 16:56:18 2001
+++ Makefile	Sat Nov 30 12:56:37 2002
@@ -1,21 +1,10 @@
-PREFIX=/usr/local
-LOCALEDIR=/usr/share/locale
+localedir=/usr/share/locale
 
-ifdef LOCALEDIR
-CFLAGS=-O2 -Wall `gtk-config --cflags` -DMENU -DLOCALEDIR=\"${LOCALEDIR}\" 
-else
-CFLAGS=-O2 -Wall `gtk-config --cflags` -DMENU -DDISABLE_NLS
-endif
+CFLAGS=-O2 -Wall `gtk-config --cflags` -DMENU -DLOCALEDIR=\"${localedir}\" 
 
-CC=gcc
-CP=/bin/cp
-RM=/bin/rm -f
-MAKE=make
-
 SRCS = main.c chemproc.c graph.c draw.c inout.c 
 OBJS = main.o chemproc.o graph.o draw.o inout.o 
 
-
 SYS_LIBRARIES = `gtk-config --libs` -lm
 
 all: chemtool cht
@@ -25,17 +14,13 @@
 chemtool: ${OBJS}
 	${CC} ${OBJS} ${SYS_LIBRARIES} -o chemtool
 
-cht:	src-cht/cht-1.7.c
+cht:	src-cht/cht-1.8.c
 	cd src-cht;${MAKE}
 
-
 install: chemtool src-cht/cht
-	${CP} chemtool src-cht/cht ${PREFIX}/bin
-	${CP} chemtool.1 ${PREFIX}/man/man1
-	${CP} cht.1	${PREFIX}/man/man1
-	ifdef LOCALEDIR
-	for L in `ls locales`; do ${CP} locales/$$L/chemtool.mo ${LOCALEDIR}/$$L/LC_MESSAGES;done
-	endif 
+	${BSD_INSTALL_PROGRAM} chemtool src-cht/cht ${PREFIX}/bin
+	${BSD_INSTALL_MAN} chemtool.1 cht.1 ${PREFIX}/man/man1
+	for L in `ls locales`; do ${BSD_INSTALL_DATA} locales/$$L/chemtool.mo ${localedir}/$$L/LC_MESSAGES;done
 clean:
 	${RM} *.o *~ src-cht/*.o src-cht/*~ chemtool src-cht/cht