diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-09-11 07:46:02 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-09-11 07:46:02 +0000 |
commit | 240a6fffbc6976bcc5293e328c34b1a21b982502 (patch) | |
tree | 9c362a115dac57356152f73b6d42a753e771a7fc /science/chemtool/files | |
parent | a4751df979c822cf7fcd6aab7a47f4c04f814e3e (diff) | |
download | ports-240a6fffbc6976bcc5293e328c34b1a21b982502.tar.gz ports-240a6fffbc6976bcc5293e328c34b1a21b982502.zip |
Notes
Diffstat (limited to 'science/chemtool/files')
-rw-r--r-- | science/chemtool/files/patch-Makefile | 32 | ||||
-rw-r--r-- | science/chemtool/files/patch-src-cht::Makefile | 6 |
2 files changed, 9 insertions, 29 deletions
diff --git a/science/chemtool/files/patch-Makefile b/science/chemtool/files/patch-Makefile index a1192f632ba1..ea86514bf556 100644 --- a/science/chemtool/files/patch-Makefile +++ b/science/chemtool/files/patch-Makefile @@ -1,41 +1,21 @@ ---- Makefile.orig Wed Feb 7 03:52:54 2001 -+++ Makefile Sat Apr 14 02:34:58 2001 -@@ -1,7 +1,4 @@ +--- Makefile.orig Tue Sep 11 15:38:42 2001 ++++ Makefile Tue Sep 11 15:39:52 2001 +@@ -1,7 +1,5 @@ -PREFIX=/usr/local -LOCALEDIR=/usr/share/locale --CFLAGS=-O2 -Wall +-CFLAGS=-O2 -Wall `gtk-config --cflags` # -DDISABLE_NLS -CC=gcc +LOCALEDIR=${PREFIX}/share/locale ++CFLAGS+=`${GTK_CONFIG} --cflags` # -DDISABLE_NLS CP=/bin/cp RM=/bin/rm -f -@@ -9,8 +6,8 @@ +@@ -9,7 +7,7 @@ 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 diff --git a/science/chemtool/files/patch-src-cht::Makefile b/science/chemtool/files/patch-src-cht::Makefile index 193d47274874..70da66702f59 100644 --- a/science/chemtool/files/patch-src-cht::Makefile +++ b/science/chemtool/files/patch-src-cht::Makefile @@ -3,6 +3,6 @@ @@ -1,4 +1,4 @@ default: cht - cht: cht-1.3.c -- gcc -O cht-1.3.c -lm -o cht -+ ${CC} ${CFLAGS} cht-1.3.c -lm -o cht + cht: cht-1.7.c +- gcc -O cht-1.7.c -lm -o cht ++ ${CC} ${CFLAGS} cht-1.7.c -lm -o cht |