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

(-)chemtool/Makefile (-4 / +26 lines)
Lines 1-4 Link Here
1
# ex:ts=8
2
# New ports collection makefile for:	chemtool
1
# New ports collection makefile for:	chemtool
3
# Date created:			Mar 31, 2001
2
# Date created:			Mar 31, 2001
4
# Whom:				Ying-Chieh Liao <ijliao@FreeBSD.org>
3
# Whom:				Ying-Chieh Liao <ijliao@FreeBSD.org>
Lines 6-21 Link Here
6
# $FreeBSD: ports/science/chemtool/Makefile,v 1.2 2001/09/11 07:46:02 ijliao Exp $
5
# $FreeBSD: ports/science/chemtool/Makefile,v 1.2 2001/09/11 07:46:02 ijliao Exp $
7
6
8
PORTNAME=	chemtool
7
PORTNAME=	chemtool
9
PORTVERSION=	1.3.1
8
PORTVERSION=	1.6
10
CATEGORIES=	science
9
CATEGORIES=	science
11
MASTER_SITES=	http://www.uni-ulm.de/~s_tvolk/chemtool/src/
10
MASTER_SITES=	http://ruby.chemie.uni-freiburg.de/~martin/chemtool/
11
DISTNAME=	ct16a6
12
EXTRACT_SUFX=   .tgz
12
13
13
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
14
15
15
RUN_DEPENDS=	transfig:${PORTSDIR}/print/transfig
16
RUN_DEPENDS=	transfig:${PORTSDIR}/print/transfig
16
17
18
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}alpha6
19
USE_GMAKE=	yes
20
USE_REINPLACE=	yes
17
USE_GTK=	yes
21
USE_GTK=	yes
22
CONFIGURE_ARGS=	--disable-undo
23
USE_GMAKE=	yes
24
MAN1=	chemtool.1 cht.1
18
25
19
MAN1=	chemtool.1
26
do-build:
27
	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE})
28
29
pre-patch:
30
	@${REINPLACE_CMD} -e 's|gtk-config|${GTK_CONFIG}|g;' \
31
		${WRKSRC}/configure
32
	@${REINPLACE_CMD} -e 's|gtk-config|${GTK_CONFIG}|g; s|-lgtk|-lgtk12|g;' \
33
		${WRKSRC}/Makefile.in
34
35
do-install:
36
	@(cd ${WRKSRC}; ${GMAKE} install)
37
	@(cd ${WRKSRC}; \
38
	${MKDIR} ${PREFIX}/share/examples/chemtool/; \
39
	cd ${WRKSRC}/examples/; \
40
	${INSTALL_DATA} * ${PREFIX}/share/examples/chemtool; \
41
	)
20
42
21
.include <bsd.port.mk>
43
.include <bsd.port.mk>
(-)chemtool/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (chemtool-1.3.1.tar.gz) = 1b61a19a9757292b9b9a827b798f0320
1
MD5 (ct16a6.tgz) = a3297b3f6512897a02e1b99f829b7ada
(-)chemtool/files/patch-Makefile (-39 lines)
Lines 1-39 Link Here
1
$FreeBSD: ports/science/chemtool/files/patch-Makefile,v 1.4 2001/09/21 14:18:28 sf Exp $
2
3
--- Makefile.orig	Thu May  3 08:31:00 2001
4
+++ Makefile	Fri Sep 21 23:15:06 2001
5
@@ -1,7 +1,5 @@
6
-PREFIX=/usr/local
7
-LOCALEDIR=/usr/share/locale
8
-CFLAGS=-O2 -Wall `gtk-config --cflags` # -DDISABLE_NLS
9
-CC=gcc
10
+LOCALEDIR=${PREFIX}/share/locale
11
+CFLAGS+=`${GTK_CONFIG} --cflags` # -DDISABLE_NLS
12
 CP=/bin/cp
13
 RM=/bin/rm -f
14
 
15
@@ -9,7 +7,7 @@
16
 OBJS = main.o chemproc.o graph.o draw.o inout.o 
17
 
18
 
19
-SYS_LIBRARIES = `gtk-config --libs` -lm
20
+SYS_LIBRARIES = `${GTK_CONFIG} --libs` -lm
21
 
22
 all: chemtool cht
23
 
24
@@ -25,9 +23,12 @@
25
 #	${CC} ${CFLAGS} ${EXTRA_INCLUDES} -c ${SRCS}
26
 
27
 install: chemtool src-cht/cht
28
-	${CP} chemtool src-cht/cht ${PREFIX}/bin
29
-	${CP} chemtool.1 ${PREFIX}/man/man1
30
-	for L in `ls locales`; do ${CP} locales/$$L/chemtool.mo ${LOCALEDIR}/$$L/LC_MESSAGES;done
31
+	${BSD_INSTALL_PROGRAM} chemtool src-cht/cht ${PREFIX}/bin
32
+	${BSD_INSTALL_MAN} chemtool.1 ${PREFIX}/man/man1
33
+	for L in `ls locales`; do \
34
+		mkdir -p ${LOCALEDIR}/$$L/LC_MESSAGES; \
35
+		${BSD_INSTALL_DATA} locales/$$L/chemtool.mo ${LOCALEDIR}/$$L/LC_MESSAGES; \
36
+	done
37
  
38
 clean:
39
 	${RM} *.o *~ src-cht/*.o src-cht/*~ chemtool src-cht/cht
(-)chemtool/files/patch-aa (+11 lines)
Line 0 Link Here
1
--- undo.c.orig~	Mon Jul 15 16:41:57 2002
2
+++ undo.c	Mon Jul 15 16:43:17 2002
3
@@ -61,7 +61,7 @@
4
 #define MAP_NEW_ANON_AT_FLAGS(pos, size, flags) \
5
             (mmap((pos), (size), \
6
 			      PROT_READ | PROT_WRITE | PROT_EXEC, \
7
-				  MAP_PRIVATE | MAP_ANONYMOUS | (flags), 0, 0))
8
+				  MAP_PRIVATE | MAP_ANON | (flags), 0, 0))
9
 #define MAP_NEW_ANON(size) MAP_NEW_ANON_AT_FLAGS(0, (size), 0)
10
 #define MAP_NEW_ANON_AT(pos, size) \
11
             MAP_NEW_ANON_AT_FLAGS((pos), (size), MAP_FIXED)
(-)chemtool/files/patch-ab (+11 lines)
Line 0 Link Here
1
--- Makefile.in~	Wed Aug 14 12:36:43 2002
2
+++ Makefile.in	Wed Aug 14 12:37:10 2002
3
@@ -5,7 +5,7 @@
4
 mandir=@mandir@
5
 kdedir=@kdemimedir@
6
 gnomedir=@gnomemimedir@
7
-CFLAGS=-O2 -Wall -Wunused -Wuninitialized -I. `/usr/X11R6/bin/gtk12-config --cflags` @DEFS@ -DLOCALEDIR=\"${localedir}\"
8
+CFLAGS+= -Wall -Wunused -Wuninitialized -I. `/usr/X11R6/bin/gtk12-config --cflags` @DEFS@ -DLOCALEDIR=\"${localedir}\"
9
 
10
 CC=@CC@
11
 CP=/bin/cp
(-)chemtool/files/patch-src-cht::Makefile (-8 lines)
Lines 1-8 Link Here
1
--- src-cht/Makefile.orig	Wed Feb  7 03:38:54 2001
2
+++ src-cht/Makefile	Sat Apr 14 02:13:38 2001
3
@@ -1,4 +1,4 @@
4
 default: cht
5
 
6
 cht:	cht-1.7.c
7
-	gcc -O cht-1.7.c -lm -o cht
8
+	${CC} ${CFLAGS} cht-1.7.c -lm -o cht
(-)chemtool/pkg-descr (-1 / +1 lines)
Lines 1-4 Link Here
1
Chemtool is a program for drawing organic molecules easily and store them as
1
Chemtool is a program for drawing organic molecules easily and store them as
2
a X bitmap file.
2
a X bitmap file.
3
3
4
WWW: http://www.uni-ulm.de/~s_tvolk/chemtool.html
4
WWW: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/
(-)chemtool/pkg-plist (+34 lines)
Lines 1-5 Link Here
1
bin/chemtool
1
bin/chemtool
2
bin/cht
2
bin/cht
3
share/examples/chemtool/14263232.mol
4
share/examples/chemtool/AMP.cht
5
share/examples/chemtool/Adenosine.cht
6
share/examples/chemtool/Dehydrotubifolin.cht
7
share/examples/chemtool/G-host.pdb
8
share/examples/chemtool/Indolizomycin.cht
9
share/examples/chemtool/Lepicidin-A-Aglycon.cht
10
share/examples/chemtool/Neu2
11
share/examples/chemtool/amine.mol
12
share/examples/chemtool/bcarotin.pdb
13
share/examples/chemtool/breve.cht
14
share/examples/chemtool/breve.mol
15
share/examples/chemtool/byrostatin1.cht
16
share/examples/chemtool/c70.cht
17
share/examples/chemtool/camphor
18
share/examples/chemtool/claisen.cht
19
share/examples/chemtool/dodecahedran.cht
20
share/examples/chemtool/example1
21
share/examples/chemtool/example2
22
share/examples/chemtool/example3
23
share/examples/chemtool/example4
24
share/examples/chemtool/example5
25
share/examples/chemtool/example7
26
share/examples/chemtool/indigo
27
share/examples/chemtool/kdo
28
share/examples/chemtool/krebs.cht
29
share/examples/chemtool/pagodan.cht
30
share/examples/chemtool/penicillin_v.cht
31
share/examples/chemtool/pteridin
32
share/examples/chemtool/reaction.cht
33
share/examples/chemtool/rutamycin_b.cht
34
share/examples/chemtool/tcdd.cht
35
share/examples/chemtool/viagra.cht
3
share/locale/cs/LC_MESSAGES/chemtool.mo
36
share/locale/cs/LC_MESSAGES/chemtool.mo
4
share/locale/de/LC_MESSAGES/chemtool.mo
37
share/locale/de/LC_MESSAGES/chemtool.mo
5
share/locale/ru/LC_MESSAGES/chemtool.mo
38
share/locale/ru/LC_MESSAGES/chemtool.mo
39
@dirrm share/examples/chemtool

Return to bug 41652