From ba5d90013a0110857dd37c8898cf5134481b6894 Mon Sep 17 00:00:00 2001 From: sf Date: Fri, 21 Sep 2001 14:18:28 +0000 Subject: o mkdir locale subdirectory before install. o use INSTALL_* macro rather than ${CP}. --- science/chemtool/files/patch-Makefile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'science/chemtool') diff --git a/science/chemtool/files/patch-Makefile b/science/chemtool/files/patch-Makefile index ea86514bf55..5a3986e3c48 100644 --- a/science/chemtool/files/patch-Makefile +++ b/science/chemtool/files/patch-Makefile @@ -1,5 +1,7 @@ ---- Makefile.orig Tue Sep 11 15:38:42 2001 -+++ Makefile Tue Sep 11 15:39:52 2001 +$FreeBSD$ + +--- Makefile.orig Thu May 3 08:31:00 2001 ++++ Makefile Fri Sep 21 23:15:06 2001 @@ -1,7 +1,5 @@ -PREFIX=/usr/local -LOCALEDIR=/usr/share/locale @@ -19,3 +21,19 @@ all: chemtool cht +@@ -25,9 +23,12 @@ + # ${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 -- cgit