aboutsummaryrefslogtreecommitdiff
path: root/science/chemtool/files/patch-Makefile
blob: a1192f632ba1a34b282d9969f62366bea828d943 (plain) (blame)
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
--- Makefile.orig	Wed Feb  7 03:52:54 2001
+++ Makefile	Sat Apr 14 02:34:58 2001
@@ -1,7 +1,4 @@
-PREFIX=/usr/local
-LOCALEDIR=/usr/share/locale
-CFLAGS=-O2 -Wall
-CC=gcc
+LOCALEDIR=${PREFIX}/share/locale
 CP=/bin/cp
 RM=/bin/rm -f
 
@@ -9,8 +6,8 @@
 OBJS = main.o chemproc.o graph.o draw.o inout.o 
 
 
-EXTRA_INCLUDES = `gtk-config --cflags`  # -DDISABLE_NLS
-SYS_LIBRARIES = `gtk-config --libs` -lm
+EXTRA_INCLUDES = `${GTK_CONFIG} --cflags`  # -DDISABLE_NLS
+SYS_LIBRARIES = `${GTK_CONFIG} --libs` -lm
 
 all: chemtool cht
 
@@ -20,14 +17,14 @@
 	${CC} ${OBJS} ${SYS_LIBRARIES} -o chemtool
 
 cht:	src-cht/cht-1.3.c
-	cd src-cht;make
+	cd src-cht;${MAKE}
 .c.o:  
 	${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 mkdir -p ${LOCALEDIR}/$$L/LC_MESSAGES; ${BSD_INSTALL_DATA} locales/$$L/chemtool.mo ${LOCALEDIR}/$$L/LC_MESSAGES;done
  
 clean:
 	${RM} *.o *~ src-cht/*.o src-cht/*~ chemtool src-cht/cht