aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2003-07-21 00:57:58 +0000
committerMaho Nakata <maho@FreeBSD.org>2003-07-21 00:57:58 +0000
commit9cb0da02b0fa20d80b4513b6e1590fe122ec2e9c (patch)
tree03624402fe7cae1cd9f62e6562b5b8b297319023 /science
parentaea1dce716b720f2c13fd4dc24dcd4bb4a36e33b (diff)
downloadports-9cb0da02b0fa20d80b4513b6e1590fe122ec2e9c.tar.gz
ports-9cb0da02b0fa20d80b4513b6e1590fe122ec2e9c.zip
Notes
Diffstat (limited to 'science')
-rw-r--r--science/chemtool/Makefile25
-rw-r--r--science/chemtool/distinfo2
-rw-r--r--science/chemtool/files/patch-Makefile.in14
-rw-r--r--science/chemtool/files/patch-src-cht_Makefile.in14
-rw-r--r--science/chemtool/files/patch-src-cht_cht-2.1.c32
-rw-r--r--science/chemtool/files/patch-undo.c14
-rw-r--r--science/chemtool/pkg-plist66
7 files changed, 63 insertions, 104 deletions
diff --git a/science/chemtool/Makefile b/science/chemtool/Makefile
index 05f3b25c8d07..7ab9e4095aca 100644
--- a/science/chemtool/Makefile
+++ b/science/chemtool/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= chemtool
-PORTVERSION= 1.5
+PORTVERSION= 1.6
CATEGORIES= science
MASTER_SITES= http://ruby.chemie.uni-freiburg.de/~martin/chemtool/
@@ -15,13 +15,28 @@ COMMENT= Draw organic molecules easily and store them
RUN_DEPENDS= transfig:${PORTSDIR}/print/transfig
USE_GNOME= gtk12
-GNU_CONFIGURE= yes
USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
MAN1= chemtool.1 cht.1
-post-install:
- ${MKDIR} ${PREFIX}/share/examples/chemtool
- ${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/chemtool
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/chemtool ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src-cht/cht ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/chemtool.1 ${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/cht.1 ${MANPREFIX}/man/man1
+.for lang in cs de fr pl pt_BR ru
+ @${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
+ ${INSTALL_DATA} ${WRKSRC}/locales/${lang}/chemtool.mo \
+ ${PREFIX}/share/locale/${lang}/LC_MESSAGES
+.endfor
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}
+ cd ${WRKSRC}/examples && ${FIND} . | \
+ cpio -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
+.endif
.include <bsd.port.mk>
diff --git a/science/chemtool/distinfo b/science/chemtool/distinfo
index 8c165777f9d1..0e830ee035f9 100644
--- a/science/chemtool/distinfo
+++ b/science/chemtool/distinfo
@@ -1 +1 @@
-MD5 (chemtool-1.5.tar.gz) = 093b68e032b2c5611c2f83315764bd40
+MD5 (chemtool-1.6.tar.gz) = 1b7a1bde89517ef8a1b4a566bfbd9b3f
diff --git a/science/chemtool/files/patch-Makefile.in b/science/chemtool/files/patch-Makefile.in
index 7125b80875e9..527f9f473520 100644
--- a/science/chemtool/files/patch-Makefile.in
+++ b/science/chemtool/files/patch-Makefile.in
@@ -1,8 +1,8 @@
$FreeBSD$
---- Makefile.in.orig Thu Apr 11 21:41:37 2002
-+++ Makefile.in Fri Aug 30 01:25:01 2002
+--- Makefile.in.orig Sun May 11 22:02:15 2003
++++ Makefile.in Sun Jul 20 22:49:21 2003
@@ -5,7 +5,7 @@
mandir=@mandir@
kdedir=@kdemimedir@
@@ -13,11 +13,11 @@ $FreeBSD$
CC=@CC@
CP=/bin/cp
@@ -16,7 +16,7 @@
- SRCS = main.c chemproc.c graph.c draw.c inout.c gtkfilesel.c undo.c
- OBJS = main.o chemproc.o graph.o draw.o inout.o gtkfilesel.o undo.o
+ SRCS = main.c chemproc.c graph.c draw.c inout.c undo.c @MYGTKSRCS@
+ OBJS = main.o chemproc.o graph.o draw.o inout.o undo.o @MYGTKOBJS@
--SYS_LIBRARIES = `gtk-config --libs` -lm
-+SYS_LIBRARIES = `${GTK_CONFIG} --libs` -lm
+-SYS_LIBRARIES = `gtk-config --libs` @EMFLIBS@ -lm
++SYS_LIBRARIES = `${GTK_CONFIG} --libs` @EMFLIBS@ -lm
+
all: chemtool cht
-
diff --git a/science/chemtool/files/patch-src-cht_Makefile.in b/science/chemtool/files/patch-src-cht_Makefile.in
deleted file mode 100644
index 3760a2002085..000000000000
--- a/science/chemtool/files/patch-src-cht_Makefile.in
+++ /dev/null
@@ -1,14 +0,0 @@
-
-$FreeBSD$
-
---- src-cht/Makefile.in.orig Fri Aug 30 01:23:49 2002
-+++ src-cht/Makefile.in Fri Aug 30 01:24:27 2002
-@@ -1,4 +1,7 @@
-+CC=@CC@
-+CFLAGS=@CFLAGS@
-+
- default: cht
-
- cht: cht-2.1.c
-- gcc -O cht-2.1.c -o cht
-+ $(CC) $(CFLAGS) -o cht cht-2.1.c
diff --git a/science/chemtool/files/patch-src-cht_cht-2.1.c b/science/chemtool/files/patch-src-cht_cht-2.1.c
deleted file mode 100644
index e8b486678f73..000000000000
--- a/science/chemtool/files/patch-src-cht_cht-2.1.c
+++ /dev/null
@@ -1,32 +0,0 @@
-
-$FreeBSD$
-
---- src-cht/cht-2.1.c.orig Fri Aug 30 01:25:46 2002
-+++ src-cht/cht-2.1.c Fri Aug 30 01:31:51 2002
-@@ -1431,7 +1431,7 @@
- {
- #ifndef NO_TIME
- struct tm *tm;
-- long clock;
-+ time_t clock;
-
- time(&clock);
- tm = localtime(&clock);
-@@ -1449,7 +1449,7 @@
- Void VAXdate(s)
- char *s;
- {
-- long clock;
-+ time_t clock;
- char *c;
- int i;
- static int where[] = {8, 9, 0, 4, 5, 6, 0, 20, 21, 22, 23};
-@@ -1465,7 +1465,7 @@
- Void VAXtime(s)
- char *s;
- {
-- long clock;
-+ time_t clock;
- char *c;
- int i;
-
diff --git a/science/chemtool/files/patch-undo.c b/science/chemtool/files/patch-undo.c
deleted file mode 100644
index ff8442f1c072..000000000000
--- a/science/chemtool/files/patch-undo.c
+++ /dev/null
@@ -1,14 +0,0 @@
-
-$FreeBSD$
-
---- undo.c.orig Sat Mar 9 17:27:32 2002
-+++ undo.c Fri Aug 30 00:12:23 2002
-@@ -61,7 +61,7 @@
- #define MAP_NEW_ANON_AT_FLAGS(pos, size, flags) \
- (mmap((pos), (size), \
- PROT_READ | PROT_WRITE | PROT_EXEC, \
-- MAP_PRIVATE | MAP_ANONYMOUS | (flags), 0, 0))
-+ MAP_PRIVATE | MAP_ANON | (flags), -1, 0))
- #define MAP_NEW_ANON(size) MAP_NEW_ANON_AT_FLAGS(0, (size), 0)
- #define MAP_NEW_ANON_AT(pos, size) \
- MAP_NEW_ANON_AT_FLAGS((pos), (size), MAP_FIXED)
diff --git a/science/chemtool/pkg-plist b/science/chemtool/pkg-plist
index 877a78c2bf0e..1a2f68a0d348 100644
--- a/science/chemtool/pkg-plist
+++ b/science/chemtool/pkg-plist
@@ -1,40 +1,44 @@
@comment $FreeBSD$
bin/chemtool
bin/cht
-share/examples/chemtool/14263232.mol
-share/examples/chemtool/AMP.cht
-share/examples/chemtool/Adenosine.cht
-share/examples/chemtool/Dehydrotubifolin.cht
-share/examples/chemtool/G-host.pdb
-share/examples/chemtool/Indolizomycin.cht
-share/examples/chemtool/Lepicidin-A-Aglycon.cht
-share/examples/chemtool/Neu2
-share/examples/chemtool/amine.mol
-share/examples/chemtool/bcarotin.pdb
-share/examples/chemtool/breve.cht
-share/examples/chemtool/breve.mol
-share/examples/chemtool/byrostatin1.cht
-share/examples/chemtool/camphor
-share/examples/chemtool/claisen.cht
-share/examples/chemtool/example1
-share/examples/chemtool/example2
-share/examples/chemtool/example3
-share/examples/chemtool/example4
-share/examples/chemtool/example5
-share/examples/chemtool/example7
-share/examples/chemtool/indigo
-share/examples/chemtool/kdo
-share/examples/chemtool/krebs.cht
-share/examples/chemtool/penicillin_v.cht
-share/examples/chemtool/pteridin
-share/examples/chemtool/reaction.cht
-share/examples/chemtool/rutamycin_b.cht
-share/examples/chemtool/tcdd.cht
-share/examples/chemtool/viagra.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/14263232.mol
+%%PORTDOCS%%%%EXAMPLESDIR%%/AMP.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/Adenosine.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/Dehydrotubifolin.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/G-host.pdb
+%%PORTDOCS%%%%EXAMPLESDIR%%/Indolizomycin.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/Lepicidin-A-Aglycon.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/Neu2
+%%PORTDOCS%%%%EXAMPLESDIR%%/amine.mol
+%%PORTDOCS%%%%EXAMPLESDIR%%/anabsinthin
+%%PORTDOCS%%%%EXAMPLESDIR%%/atp
+%%PORTDOCS%%%%EXAMPLESDIR%%/bcarotin.pdb
+%%PORTDOCS%%%%EXAMPLESDIR%%/breve.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/breve.mol
+%%PORTDOCS%%%%EXAMPLESDIR%%/bufotalin
+%%PORTDOCS%%%%EXAMPLESDIR%%/byrostatin1.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/c70.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/camphor
+%%PORTDOCS%%%%EXAMPLESDIR%%/chlorophyll
+%%PORTDOCS%%%%EXAMPLESDIR%%/claisen.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/dodecahedran.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/indigo
+%%PORTDOCS%%%%EXAMPLESDIR%%/kdo
+%%PORTDOCS%%%%EXAMPLESDIR%%/krebs.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/labeltest
+%%PORTDOCS%%%%EXAMPLESDIR%%/pagodan.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/penicillin_v.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/pteridin
+%%PORTDOCS%%%%EXAMPLESDIR%%/reaction.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/rutamycin_b.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/tbutylazulene
+%%PORTDOCS%%%%EXAMPLESDIR%%/tcdd.cht
+%%PORTDOCS%%%%EXAMPLESDIR%%/tetracyclin
+%%PORTDOCS%%%%EXAMPLESDIR%%/viagra.cht
share/locale/cs/LC_MESSAGES/chemtool.mo
share/locale/de/LC_MESSAGES/chemtool.mo
share/locale/fr/LC_MESSAGES/chemtool.mo
share/locale/pl/LC_MESSAGES/chemtool.mo
share/locale/pt_BR/LC_MESSAGES/chemtool.mo
share/locale/ru/LC_MESSAGES/chemtool.mo
-@dirrm share/examples/chemtool
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%