aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2005-01-14 21:52:08 +0000
committerGreg Lewis <glewis@FreeBSD.org>2005-01-14 21:52:08 +0000
commit850b4060ac83e1b342ebbb9fcd1204e568494885 (patch)
treefd9c6fad30f407b9146178390d841736b3c64e67 /science
parentc28ba6d653d7970da758b52b5da06baf8e9cb8f9 (diff)
downloadports-850b4060ac83e1b342ebbb9fcd1204e568494885.tar.gz
ports-850b4060ac83e1b342ebbb9fcd1204e568494885.zip
Notes
Diffstat (limited to 'science')
-rw-r--r--science/Makefile1
-rw-r--r--science/udunits/Makefile26
-rw-r--r--science/udunits/distinfo2
-rw-r--r--science/udunits/files/patch-CUSTOMIZE12
-rw-r--r--science/udunits/files/patch-configure13
-rw-r--r--science/udunits/files/patch-lib_Makefile.in13
-rw-r--r--science/udunits/files/patch-port_master.mk.in34
-rw-r--r--science/udunits/pkg-descr6
-rw-r--r--science/udunits/pkg-plist12
9 files changed, 119 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 1bd280bc8027..745034e134b6 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -50,6 +50,7 @@
SUBDIR += ruby-dcl-gtk
SUBDIR += ruby-gphys
SUBDIR += simlib
+ SUBDIR += udunits
SUBDIR += vis5d+
SUBDIR += vmd
SUBDIR += x11iraf
diff --git a/science/udunits/Makefile b/science/udunits/Makefile
new file mode 100644
index 000000000000..96092845fcfe
--- /dev/null
+++ b/science/udunits/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: udunits
+# Date created: 31 December 2004
+# Whom: Greg Lewis <glewis@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= udunits
+PORTVERSION= 1.12.4
+CATEGORIES= science math
+MASTER_SITES= ftp://unidata.ucar.edu/pub/${PORTNAME}/
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= glewis@FreeBSD.org
+COMMENT= A library for manipulating units of physical quantities
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
+GNU_CONFIGURE= yes
+USE_PERL5= yes
+
+MAN1= udunits.1 \
+ udunitsperl.1
+MAN3= udunits.3 \
+ udunits.3f
+
+.include <bsd.port.mk>
diff --git a/science/udunits/distinfo b/science/udunits/distinfo
new file mode 100644
index 000000000000..44ecdc46b738
--- /dev/null
+++ b/science/udunits/distinfo
@@ -0,0 +1,2 @@
+MD5 (udunits-1.12.4.tar.Z) = e0d67d22ef6b33b2de0377017e888eb6
+SIZE (udunits-1.12.4.tar.Z) = 422748
diff --git a/science/udunits/files/patch-CUSTOMIZE b/science/udunits/files/patch-CUSTOMIZE
new file mode 100644
index 000000000000..496bee316716
--- /dev/null
+++ b/science/udunits/files/patch-CUSTOMIZE
@@ -0,0 +1,12 @@
+$FreeBSD$
+
+--- CUSTOMIZE.orig 2004-05-08 14:04:53.199958510 -0700
++++ CUSTOMIZE 2004-05-08 13:58:48.843900138 -0700
+@@ -33,3 +33,7 @@
+ # Ancillary libraries. SunOS 4 user's might need something like the
+ # following in order to resolve strerror() in the perl/ subdirectory.
+ # LIBS='-L/usr/lang/SC3.0.1/lib -lansi'
++
++FC=g77
++CPPFLAGS=-Df2cFortran
++LD_MATH=-lm
diff --git a/science/udunits/files/patch-configure b/science/udunits/files/patch-configure
new file mode 100644
index 000000000000..0653a69c52e8
--- /dev/null
+++ b/science/udunits/files/patch-configure
@@ -0,0 +1,13 @@
+$FreeBSD$
+
+--- configure.orig Sat Jan 1 00:30:00 2005
++++ configure Sat Jan 1 00:30:39 2005
+@@ -4648,7 +4648,7 @@
+ exit(0);
+ }
+ EOF
+- doit='$CC -o conftest ${CFLAGS-} ${CPPFLAGS-} ${LDFLAGS-} conftest.c ${LIBS-}'
++ doit='$CC -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c ${LIBS}'
+ if { (eval echo "$as_me:$LINENO: \"$doit\"") >&5
+ (eval $doit) 2>&5
+ ac_status=$?
diff --git a/science/udunits/files/patch-lib_Makefile.in b/science/udunits/files/patch-lib_Makefile.in
new file mode 100644
index 000000000000..bba74e99c9c3
--- /dev/null
+++ b/science/udunits/files/patch-lib_Makefile.in
@@ -0,0 +1,13 @@
+$FreeBSD$
+
+--- lib/Makefile.in.orig Sat Jan 1 00:03:38 2005
++++ lib/Makefile.in Sat Jan 1 00:04:39 2005
+@@ -6,7 +6,7 @@
+
+ LIBRARY = udunits
+
+-FLEX = /usr/local/gnu/bin/flex
++FLEX = /usr/bin/flex
+ cpp_path = -DUT_DEFAULT_PATH='"$(prefix)/etc/udunits.dat"'
+ CPPFLAGS = -I../port/misc -I../port/cfortran $(cpp_path) @CPPFLAGS@
+ CFLAGS = @CFLAGS@
diff --git a/science/udunits/files/patch-port_master.mk.in b/science/udunits/files/patch-port_master.mk.in
new file mode 100644
index 000000000000..0c60f67e0b7a
--- /dev/null
+++ b/science/udunits/files/patch-port_master.mk.in
@@ -0,0 +1,34 @@
+$FreeBSD$
+
+--- port/master.mk.in.orig Tue Sep 30 12:39:28 2003
++++ port/master.mk.in Mon Jan 3 10:38:26 2005
+@@ -433,21 +433,6 @@
+ -e '/^\.TH/s/$$D\ate: \([0-9]*\)\/\([0-9]*\)\/\([0-9]*\).*\$$/\1-\2-\3/'\
+ $(MANUAL) | $(TBL) | $(NEQN) > $@;; \
+ esac
+- extension=`echo $(MANUAL) | sed 's/[^.]*\.//'`; \
+- subchapter=`echo $$extension | sed 's/.//'`; \
+- case "$$subchapter" in \
+- '') ;; \
+- *) chapter=`echo $$extension | sed 's/\(.\).*/\1/'`; \
+- if test -d $(MANDIR)$$subchapter; then \
+- : true; \
+- else \
+- mkdir $(MANDIR)$$subchapter; \
+- fi; \
+- rm -f $(MANDIR)$$subchapter/$(MANUAL); \
+- ln -s ../`basename $(MANDIR)`/$(MANUAL) \
+- $(MANDIR)$$subchapter/$(MANUAL); \
+- ;; \
+- esac
+
+ dummy_mandir $(MANDIR):
+ mkdir -p $@
+@@ -455,7 +440,6 @@
+
+ whatis: $(MANDIR)/$(WHATIS)
+ $(MANDIR)/$(WHATIS): $(MANDIR)
+- $(MAKEWHATIS_CMD)
+
+
+ ############################################################################
diff --git a/science/udunits/pkg-descr b/science/udunits/pkg-descr
new file mode 100644
index 000000000000..eeefd272c0e9
--- /dev/null
+++ b/science/udunits/pkg-descr
@@ -0,0 +1,6 @@
+The Unidata units library, udunits, supports conversion of unit
+specifications between formatted and binary forms, arithmetic
+manipulation of unit specifications, and conversion of values
+between compatible scales of measurement.
+
+WWW: http://www.unidata.ucar.edu/packages/udunits/
diff --git a/science/udunits/pkg-plist b/science/udunits/pkg-plist
new file mode 100644
index 000000000000..2dab1c3aa019
--- /dev/null
+++ b/science/udunits/pkg-plist
@@ -0,0 +1,12 @@
+bin/udunits
+etc/udunits.dat
+include/udunits.h
+include/udunits.inc
+lib/libudport.a
+lib/libudunits.a
+%%SITE_PERL%%/%%PERL_ARCH%%/UDUNITS.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/UDUNITS/.packlist
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/UDUNITS/UDUNITS.bs
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/UDUNITS/UDUNITS.so
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/UDUNITS/autosplit.ix
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/UDUNITS