blob: 821b70ed94067509ac3309aca1ab087e1ce6f184 (
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
51
|
--- Makefile.orig Sat Sep 8 15:56:18 2001
+++ Makefile Mon Apr 29 10:27:24 2002
@@ -1,22 +1,12 @@
-PREFIX=/usr/local
-LOCALEDIR=/usr/share/locale
+LOCALEDIR=${PREFIX}/${PKGLOCALEDIR}/locale
-ifdef LOCALEDIR
-CFLAGS=-O2 -Wall `gtk-config --cflags` -DMENU -DLOCALEDIR=\"${LOCALEDIR}\"
-else
-CFLAGS=-O2 -Wall `gtk-config --cflags` -DMENU -DDISABLE_NLS
-endif
-
-CC=gcc
-CP=/bin/cp
-RM=/bin/rm -f
-MAKE=make
+CFLAGS+= -Wall `${GTK_CONFIG} --cflags` -DMENU -DLOCALEDIR=\"${LOCALEDIR}\"
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
+SYS_LIBRARIES = `${GTK_CONFIG} --libs` -lm
all: chemtool cht
@@ -25,17 +15,15 @@
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
|