Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Apr 2001 18:17:40 -0700 (PDT)
From:      tkato@prontomail.ne.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/26557: Update port: science/chemtool
Message-ID:  <200104140117.f3E1Hee34406@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         26557
>Category:       ports
>Synopsis:       Update port: science/chemtool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 13 18:20:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.2-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CC/CFLAGS/MAKE properly
- Support install macros
- Fix install error

New file:
files/patch-src-cht::Makefile

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/science/chemtool/files/patch-Makefile science/chemtool/files/patch-Makefile
--- /usr/ports/science/chemtool/files/patch-Makefile	Sat Mar 31 04:23:00 2001
+++ science/chemtool/files/patch-Makefile	Sat Apr 14 02:35:09 2001
@@ -1,5 +1,5 @@
---- Makefile.orig	Wed Feb  7 02:52:54 2001
-+++ Makefile	Sat Mar 31 03:10:38 2001
+--- 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
@@ -20,3 +20,22 @@
  
  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 -urN /usr/ports/science/chemtool/files/patch-src-cht::Makefile science/chemtool/files/patch-src-cht::Makefile
--- /usr/ports/science/chemtool/files/patch-src-cht::Makefile	Thu Jan  1 09:00:00 1970
+++ science/chemtool/files/patch-src-cht::Makefile	Sat Apr 14 02:15:27 2001
@@ -0,0 +1,8 @@
+--- src-cht/Makefile.orig	Wed Feb  7 03:38:54 2001
++++ src-cht/Makefile	Sat Apr 14 02:13:38 2001
+@@ -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

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104140117.f3E1Hee34406>