View | Details | Raw Unified | Return to bug 54664
Collapse All | Expand All

(-)science/chemtool/Makefile (-5 / +20 lines)
Lines 5-11 Link Here
5
# $FreeBSD: ports/science/chemtool/Makefile,v 1.7 2003/04/20 19:41:18 marcus Exp $
5
# $FreeBSD: ports/science/chemtool/Makefile,v 1.7 2003/04/20 19:41:18 marcus Exp $
6
6
7
PORTNAME=	chemtool
7
PORTNAME=	chemtool
8
PORTVERSION=	1.5
8
PORTVERSION=	1.6
9
CATEGORIES=	science
9
CATEGORIES=	science
10
MASTER_SITES=	http://ruby.chemie.uni-freiburg.de/~martin/chemtool/
10
MASTER_SITES=	http://ruby.chemie.uni-freiburg.de/~martin/chemtool/
11
11
Lines 15-27 Link Here
15
RUN_DEPENDS=	transfig:${PORTSDIR}/print/transfig
15
RUN_DEPENDS=	transfig:${PORTSDIR}/print/transfig
16
16
17
USE_GNOME=	gtk12
17
USE_GNOME=	gtk12
18
GNU_CONFIGURE=	yes
19
USE_GMAKE=	yes
18
USE_GMAKE=	yes
19
GNU_CONFIGURE=	yes
20
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
21
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
22
		LDFLAGS="-L${LOCALBASE}/lib"
20
23
21
MAN1=	chemtool.1 cht.1
24
MAN1=	chemtool.1 cht.1
22
25
23
post-install:
26
do-install:
24
	${MKDIR} ${PREFIX}/share/examples/chemtool
27
	${INSTALL_PROGRAM} ${WRKSRC}/chemtool ${PREFIX}/bin
25
	${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/chemtool
28
	${INSTALL_PROGRAM} ${WRKSRC}/src-cht/cht ${PREFIX}/bin
29
	${INSTALL_MAN} ${WRKSRC}/chemtool.1 ${MANPREFIX}/man/man1
30
	${INSTALL_MAN} ${WRKSRC}/cht.1 ${MANPREFIX}/man/man1
31
.for lang in cs de fr pl pt_BR ru
32
	@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
33
	${INSTALL_DATA} ${WRKSRC}/locales/${lang}/chemtool.mo \
34
		${PREFIX}/share/locale/${lang}/LC_MESSAGES
35
.endfor
36
.if !defined(NOPORTDOCS)
37
	@${MKDIR} ${EXAMPLESDIR}
38
	cd ${WRKSRC}/examples && ${FIND} . | \
39
		cpio -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
40
.endif
26
41
27
.include <bsd.port.mk>
42
.include <bsd.port.mk>
(-)science/chemtool/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (chemtool-1.5.tar.gz) = 093b68e032b2c5611c2f83315764bd40
1
MD5 (chemtool-1.6.tar.gz) = 1b7a1bde89517ef8a1b4a566bfbd9b3f
(-)science/chemtool/files/patch-Makefile.in (-7 / +7 lines)
Lines 1-8 Link Here
1
1
2
$FreeBSD: ports/science/chemtool/files/patch-Makefile.in,v 1.1 2002/08/31 00:54:20 naddy Exp $
2
$FreeBSD: ports/science/chemtool/files/patch-Makefile.in,v 1.1 2002/08/31 00:54:20 naddy Exp $
3
3
4
--- Makefile.in.orig	Thu Apr 11 21:41:37 2002
4
--- Makefile.in.orig	Sun May 11 22:02:15 2003
5
+++ Makefile.in	Fri Aug 30 01:25:01 2002
5
+++ Makefile.in	Sun Jul 20 22:49:21 2003
6
@@ -5,7 +5,7 @@
6
@@ -5,7 +5,7 @@
7
 mandir=@mandir@
7
 mandir=@mandir@
8
 kdedir=@kdemimedir@
8
 kdedir=@kdemimedir@
Lines 13-23 Link Here
13
 CC=@CC@
13
 CC=@CC@
14
 CP=/bin/cp
14
 CP=/bin/cp
15
@@ -16,7 +16,7 @@
15
@@ -16,7 +16,7 @@
16
 SRCS = main.c chemproc.c graph.c draw.c inout.c gtkfilesel.c undo.c 
16
 SRCS = main.c chemproc.c graph.c draw.c inout.c undo.c @MYGTKSRCS@
17
 OBJS = main.o chemproc.o graph.o draw.o inout.o gtkfilesel.o undo.o
17
 OBJS = main.o chemproc.o graph.o draw.o inout.o undo.o @MYGTKOBJS@
18
 
18
 
19
-SYS_LIBRARIES = `gtk-config --libs` -lm
19
-SYS_LIBRARIES = `gtk-config --libs` @EMFLIBS@ -lm
20
+SYS_LIBRARIES = `${GTK_CONFIG} --libs` -lm
20
+SYS_LIBRARIES = `${GTK_CONFIG} --libs` @EMFLIBS@ -lm
21
  
21
 
22
 
22
 all: chemtool cht
23
 all: chemtool cht
23
 
(-)science/chemtool/files/patch-src-cht_Makefile.in (-14 lines)
Lines 1-14 Link Here
1
2
$FreeBSD: ports/science/chemtool/files/patch-src-cht_Makefile.in,v 1.1 2002/08/31 00:54:20 naddy Exp $
3
4
--- src-cht/Makefile.in.orig	Fri Aug 30 01:23:49 2002
5
+++ src-cht/Makefile.in	Fri Aug 30 01:24:27 2002
6
@@ -1,4 +1,7 @@
7
+CC=@CC@
8
+CFLAGS=@CFLAGS@
9
+
10
 default: cht
11
 
12
 cht:	cht-2.1.c
13
-	gcc -O cht-2.1.c -o cht
14
+	$(CC) $(CFLAGS) -o cht cht-2.1.c
(-)science/chemtool/files/patch-src-cht_cht-2.1.c (-32 lines)
Lines 1-32 Link Here
1
2
$FreeBSD: ports/science/chemtool/files/patch-src-cht_cht-2.1.c,v 1.1 2002/08/31 00:54:20 naddy Exp $
3
4
--- src-cht/cht-2.1.c.orig	Fri Aug 30 01:25:46 2002
5
+++ src-cht/cht-2.1.c	Fri Aug 30 01:31:51 2002
6
@@ -1431,7 +1431,7 @@
7
 {
8
 #ifndef NO_TIME
9
     struct tm *tm;
10
-    long clock;
11
+    time_t clock;
12
 
13
     time(&clock);
14
     tm = localtime(&clock);
15
@@ -1449,7 +1449,7 @@
16
 Void VAXdate(s)
17
 char *s;
18
 {
19
-    long clock;
20
+    time_t clock;
21
     char *c;
22
     int i;
23
     static int where[] = {8, 9, 0, 4, 5, 6, 0, 20, 21, 22, 23};
24
@@ -1465,7 +1465,7 @@
25
 Void VAXtime(s)
26
 char *s;
27
 {
28
-    long clock;
29
+    time_t clock;
30
     char *c;
31
     int i;
32
 
(-)science/chemtool/files/patch-undo.c (-14 lines)
Lines 1-14 Link Here
1
2
$FreeBSD: ports/science/chemtool/files/patch-undo.c,v 1.1 2002/08/31 00:54:20 naddy Exp $
3
4
--- undo.c.orig	Sat Mar  9 17:27:32 2002
5
+++ undo.c	Fri Aug 30 00:12:23 2002
6
@@ -61,7 +61,7 @@
7
 #define MAP_NEW_ANON_AT_FLAGS(pos, size, flags) \
8
             (mmap((pos), (size), \
9
 			      PROT_READ | PROT_WRITE | PROT_EXEC, \
10
-				  MAP_PRIVATE | MAP_ANONYMOUS | (flags), 0, 0))
11
+				  MAP_PRIVATE | MAP_ANON | (flags), -1, 0))
12
 #define MAP_NEW_ANON(size) MAP_NEW_ANON_AT_FLAGS(0, (size), 0)
13
 #define MAP_NEW_ANON_AT(pos, size) \
14
             MAP_NEW_ANON_AT_FLAGS((pos), (size), MAP_FIXED)
(-)science/chemtool/pkg-plist (-31 / +35 lines)
Lines 1-40 Link Here
1
@comment $FreeBSD: ports/science/chemtool/pkg-plist,v 1.3 2002/08/31 00:54:20 naddy Exp $
1
@comment $FreeBSD: ports/science/chemtool/pkg-plist,v 1.3 2002/08/31 00:54:20 naddy Exp $
2
bin/chemtool
2
bin/chemtool
3
bin/cht
3
bin/cht
4
share/examples/chemtool/14263232.mol
4
%%PORTDOCS%%%%EXAMPLESDIR%%/14263232.mol
5
share/examples/chemtool/AMP.cht
5
%%PORTDOCS%%%%EXAMPLESDIR%%/AMP.cht
6
share/examples/chemtool/Adenosine.cht
6
%%PORTDOCS%%%%EXAMPLESDIR%%/Adenosine.cht
7
share/examples/chemtool/Dehydrotubifolin.cht
7
%%PORTDOCS%%%%EXAMPLESDIR%%/Dehydrotubifolin.cht
8
share/examples/chemtool/G-host.pdb
8
%%PORTDOCS%%%%EXAMPLESDIR%%/G-host.pdb
9
share/examples/chemtool/Indolizomycin.cht
9
%%PORTDOCS%%%%EXAMPLESDIR%%/Indolizomycin.cht
10
share/examples/chemtool/Lepicidin-A-Aglycon.cht
10
%%PORTDOCS%%%%EXAMPLESDIR%%/Lepicidin-A-Aglycon.cht
11
share/examples/chemtool/Neu2
11
%%PORTDOCS%%%%EXAMPLESDIR%%/Neu2
12
share/examples/chemtool/amine.mol
12
%%PORTDOCS%%%%EXAMPLESDIR%%/amine.mol
13
share/examples/chemtool/bcarotin.pdb
13
%%PORTDOCS%%%%EXAMPLESDIR%%/anabsinthin
14
share/examples/chemtool/breve.cht
14
%%PORTDOCS%%%%EXAMPLESDIR%%/atp
15
share/examples/chemtool/breve.mol
15
%%PORTDOCS%%%%EXAMPLESDIR%%/bcarotin.pdb
16
share/examples/chemtool/byrostatin1.cht
16
%%PORTDOCS%%%%EXAMPLESDIR%%/breve.cht
17
share/examples/chemtool/camphor
17
%%PORTDOCS%%%%EXAMPLESDIR%%/breve.mol
18
share/examples/chemtool/claisen.cht
18
%%PORTDOCS%%%%EXAMPLESDIR%%/bufotalin
19
share/examples/chemtool/example1
19
%%PORTDOCS%%%%EXAMPLESDIR%%/byrostatin1.cht
20
share/examples/chemtool/example2
20
%%PORTDOCS%%%%EXAMPLESDIR%%/c70.cht
21
share/examples/chemtool/example3
21
%%PORTDOCS%%%%EXAMPLESDIR%%/camphor
22
share/examples/chemtool/example4
22
%%PORTDOCS%%%%EXAMPLESDIR%%/chlorophyll
23
share/examples/chemtool/example5
23
%%PORTDOCS%%%%EXAMPLESDIR%%/claisen.cht
24
share/examples/chemtool/example7
24
%%PORTDOCS%%%%EXAMPLESDIR%%/dodecahedran.cht
25
share/examples/chemtool/indigo
25
%%PORTDOCS%%%%EXAMPLESDIR%%/indigo
26
share/examples/chemtool/kdo
26
%%PORTDOCS%%%%EXAMPLESDIR%%/kdo
27
share/examples/chemtool/krebs.cht
27
%%PORTDOCS%%%%EXAMPLESDIR%%/krebs.cht
28
share/examples/chemtool/penicillin_v.cht
28
%%PORTDOCS%%%%EXAMPLESDIR%%/labeltest
29
share/examples/chemtool/pteridin
29
%%PORTDOCS%%%%EXAMPLESDIR%%/pagodan.cht
30
share/examples/chemtool/reaction.cht
30
%%PORTDOCS%%%%EXAMPLESDIR%%/penicillin_v.cht
31
share/examples/chemtool/rutamycin_b.cht
31
%%PORTDOCS%%%%EXAMPLESDIR%%/pteridin
32
share/examples/chemtool/tcdd.cht
32
%%PORTDOCS%%%%EXAMPLESDIR%%/reaction.cht
33
share/examples/chemtool/viagra.cht
33
%%PORTDOCS%%%%EXAMPLESDIR%%/rutamycin_b.cht
34
%%PORTDOCS%%%%EXAMPLESDIR%%/tbutylazulene
35
%%PORTDOCS%%%%EXAMPLESDIR%%/tcdd.cht
36
%%PORTDOCS%%%%EXAMPLESDIR%%/tetracyclin
37
%%PORTDOCS%%%%EXAMPLESDIR%%/viagra.cht
34
share/locale/cs/LC_MESSAGES/chemtool.mo
38
share/locale/cs/LC_MESSAGES/chemtool.mo
35
share/locale/de/LC_MESSAGES/chemtool.mo
39
share/locale/de/LC_MESSAGES/chemtool.mo
36
share/locale/fr/LC_MESSAGES/chemtool.mo
40
share/locale/fr/LC_MESSAGES/chemtool.mo
37
share/locale/pl/LC_MESSAGES/chemtool.mo
41
share/locale/pl/LC_MESSAGES/chemtool.mo
38
share/locale/pt_BR/LC_MESSAGES/chemtool.mo
42
share/locale/pt_BR/LC_MESSAGES/chemtool.mo
39
share/locale/ru/LC_MESSAGES/chemtool.mo
43
share/locale/ru/LC_MESSAGES/chemtool.mo
40
@dirrm share/examples/chemtool
44
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%

Return to bug 54664