summaryrefslogtreecommitdiff
path: root/biology/chemtool/patches/patch-aa
blob: dba56e897eb91f795332f8a0d6cb892e7c1862a0 (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
$NetBSD: patch-aa,v 1.3 2001/03/04 17:33:42 jtb Exp $

--- Makefile.orig	Tue Feb  6 18:52:54 2001
+++ Makefile
@@ -1,15 +1,15 @@
-PREFIX=/usr/local
-LOCALEDIR=/usr/share/locale
-CFLAGS=-O2 -Wall
-CC=gcc
-CP=/bin/cp
-RM=/bin/rm -f
+#PREFIX=/usr/local
+LOCALEDIR=${PREFIX}/${PKGLOCALEDIR}/locale
+#CFLAGS=-O2 -Wall
+#CC=gcc
+#CP=/bin/cp
+#RM=/bin/rm -f
 
 SRCS = main.c chemproc.c graph.c draw.c inout.c 
 OBJS = main.o chemproc.o graph.o draw.o inout.o 
 
 
-EXTRA_INCLUDES = `gtk-config --cflags`  # -DDISABLE_NLS
+EXTRA_INCLUDES = `gtk-config --cflags`  -I${LOCALBASE}/include # -DDISABLE_NLS
 SYS_LIBRARIES = `gtk-config --libs` -lm
 
 all: chemtool cht
@@ -25,9 +25,9 @@
 	${CC} ${CFLAGS} ${EXTRA_INCLUDES} -c ${SRCS}
 
 install: chemtool src-cht/cht
-	${CP} chemtool src-cht/cht ${PREFIX}/bin
-	${CP} chemtool.1 ${PREFIX}/man/man1
-	for L in `ls locales`; do ${CP} locales/$$L/chemtool.mo ${LOCALEDIR}/$$L/LC_MESSAGES;done
+	${BSD_INSTALL_PROGRAM} chemtool src-cht/cht ${PREFIX}/bin
+	${BSD_INSTALL_MAN} chemtool.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