diff options
author | will <will@FreeBSD.org> | 2001-05-20 02:22:23 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-05-20 02:22:23 +0000 |
commit | add8143bac263f0612dd5bd2900e03560ab3769c (patch) | |
tree | 03ce956229421ddec82ba6d8212b1b743abf0858 | |
parent | 71f89b76af3328988546cd07195d5398097a2650 (diff) | |
download | FreeBSD-ports-add8143bac263f0612dd5bd2900e03560ab3769c.zip FreeBSD-ports-add8143bac263f0612dd5bd2900e03560ab3769c.tar.gz |
Add shapelib 1.2.8, a C API for reading and writing ArcView Shapefiles.
PR: 26929
Submitted by: Randall Hopper <aa8vb@nc.rr.com>
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/shapelib/Makefile | 31 | ||||
-rw-r--r-- | devel/shapelib/distinfo | 1 | ||||
-rw-r--r-- | devel/shapelib/files/patch-aa | 49 | ||||
-rw-r--r-- | devel/shapelib/pkg-comment | 1 | ||||
-rw-r--r-- | devel/shapelib/pkg-descr | 15 | ||||
-rw-r--r-- | devel/shapelib/pkg-plist | 9 |
7 files changed, 107 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 2a0c274..be84b09 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -446,6 +446,7 @@ SUBDIR += sh-rtems-gcj SUBDIR += sh-rtems-gdb SUBDIR += sh-rtems-objc + SUBDIR += shapelib SUBDIR += shtool SUBDIR += sip SUBDIR += sparc-rtems-binutils diff --git a/devel/shapelib/Makefile b/devel/shapelib/Makefile new file mode 100644 index 0000000..ec581e8 --- /dev/null +++ b/devel/shapelib/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: shapelib for reading ARC Shape Files +# Date created: 23 Apr 2001 +# Whom: Randall Hopper <aa8vb@nc.rr.com> +# +# $FreeBSD$ +# + +PORTNAME= shapelib +PORTVERSION= 1.2.8 +CATEGORIES= devel +MASTER_SITES= ftp://gdal.velocet.ca/pub/outgoing/ + +MAINTAINER= aa8vb@nc.rr.com + +BUILD_DEPENDS= libtool:${PORTSDIR}/devel/libtool + +ALL_TARGET= lib +INSTALLS_SHLIB= yes + +do-install: + ${INSTALL_DATA} ${WRKSRC}/.libs/libshp.la ${PREFIX}/lib/ + ${INSTALL_DATA} ${WRKSRC}/.libs/libshp.so.1 ${PREFIX}/lib/ + ${LN} -sf libshp.so.1 ${PREFIX}/lib/libshp.so + ${INSTALL_DATA} ${WRKSRC}/.libs/libshp.a ${PREFIX}/lib/ + ${INSTALL_DATA} ${WRKSRC}/shapefil.h ${PREFIX}/include + ${MKDIR} ${PREFIX}/share/doc/shapelib + ${INSTALL_DATA} ${WRKSRC}/shapelib.html ${PREFIX}/share/doc/shapelib + ${INSTALL_DATA} ${WRKSRC}/shp_api.html ${PREFIX}/share/doc/shapelib + ${INSTALL_DATA} ${WRKSRC}/dbf_api.html ${PREFIX}/share/doc/shapelib + +.include <bsd.port.mk> diff --git a/devel/shapelib/distinfo b/devel/shapelib/distinfo new file mode 100644 index 0000000..ff1416e --- /dev/null +++ b/devel/shapelib/distinfo @@ -0,0 +1 @@ +MD5 (shapelib-1.2.8.tar.gz) = e2e0cfee2ad8d7a518512355734c635e diff --git a/devel/shapelib/files/patch-aa b/devel/shapelib/files/patch-aa new file mode 100644 index 0000000..cf1a135 --- /dev/null +++ b/devel/shapelib/files/patch-aa @@ -0,0 +1,49 @@ +--- Makefile.orig Tue Mar 28 10:36:27 2000 ++++ Makefile Mon Apr 23 22:53:27 2001 +@@ -91,31 +91,30 @@ + # The following is contributed by Jan-Oliver Wagner, and should allow for + # creating shared libraries on most platforms with gcc, and libtool installed. + +-SHPLIB_VERSION=1.2.7 +-LIBSHP_VERSION=1.0.1 # still once to be changed manually (see for 1:1:0), sorry ++SHPLIB_VERSION=1.2.8 ++LIBSHP_VERSION=1 # still once to be changed manually (see for 1:1:0), sorry + + lib: +- /bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c shpopen.c ++ /bin/sh /usr/local/bin/libtool --mode=compile gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c shpopen.c + gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c -fPIC -DPIC shpopen.c -o .libs/shpopen.lo + gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c shpopen.c -o shpopen.o >/dev/null 2>&1 + mv -f .libs/shpopen.lo shpopen.lo +- /bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c shptree.c ++ /bin/sh /usr/local/bin/libtool --mode=compile gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c shptree.c + rm -f .libs/shptree.lo + gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c -fPIC -DPIC shptree.c -o .libs/shptree.lo + gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c shptree.c -o shptree.o >/dev/null 2>&1 + mv -f .libs/shptree.lo shptree.lo +- /bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c dbfopen.c ++ /bin/sh /usr/local/bin/libtool --mode=compile gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c dbfopen.c + rm -f .libs/dbfopen.lo + gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c -fPIC -DPIC dbfopen.c -o .libs/dbfopen.lo + gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1 -I. -I. -I/usr/local/include -g -O2 -c dbfopen.c -o dbfopen.o >/dev/null 2>&1 + mv -f .libs/dbfopen.lo dbfopen.lo +- /bin/sh ./libtool --mode=link gcc -g -O2 -o libshp.la -rpath /usr/local/lib -version-info 1:1:0 shpopen.lo shptree.lo dbfopen.lo ++ /bin/sh /usr/local/bin/libtool --mode=link gcc -g -O2 -o libshp.la -rpath /usr/local/lib -version-info 1:1:0 shpopen.lo shptree.lo dbfopen.lo + rm -fr .libs/libshp.la .libs/libshp.* .libs/libshp.* + rm -fr .libs/libshp.lax + mkdir .libs/libshp.lax + /usr/bin/ld -G -h libshp.so.1 -o .libs/libshp.so.$(LIBSHP_VERSION) shpopen.lo shptree.lo dbfopen.lo -lc + +- (cd .libs && rm -f libshp.so.1 && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so.1) + (cd .libs && rm -f libshp.so && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so) + ar cru .libs/libshp.a shpopen.o shptree.o dbfopen.o + ranlib .libs/libshp.a +@@ -125,7 +124,7 @@ + lib_install: + cp .libs/libshp.la .libs/libshp.lai + /bin/sh ./mkinstalldirs /usr/local/lib +- /bin/sh ./libtool --mode=install /usr/bin/install -c libshp.la /usr/local/lib/libshp.la ++ /bin/sh /usr/local/bin/libtool --mode=install /usr/bin/install -c libshp.la /usr/local/lib/libshp.la + /usr/bin/install -c .libs/libshp.so.$(LIBSHP_VERSION) /usr/local/lib/libshp.so.$(LIBSHP_VERSION) + (cd /usr/local/lib && rm -f libshp.so.1 && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so.1) + (cd /usr/local/lib && rm -f libshp.so && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so) diff --git a/devel/shapelib/pkg-comment b/devel/shapelib/pkg-comment new file mode 100644 index 0000000..c76eee6 --- /dev/null +++ b/devel/shapelib/pkg-comment @@ -0,0 +1 @@ +C API for reading and writing ArcView Shapefiles diff --git a/devel/shapelib/pkg-descr b/devel/shapelib/pkg-descr new file mode 100644 index 0000000..6d88ef8 --- /dev/null +++ b/devel/shapelib/pkg-descr @@ -0,0 +1,15 @@ + Shapefile C Library V1.2 + + Purpose + + The Shapefile C Library provides the ability to write simple C + programs for reading, writing and updating (to a limited extent) ESRI + Shapefiles, and the associated attribute file (.dbf). + + Documentation + + /usr/local/share/doc/shapelib/shapelib.html - General docs + /usr/local/share/doc/shapelib/shp_api.html - Shape (.SHP) File API + /usr/local/share/doc/shapelib/dbg_api.html - Attribute (.DBF) File API + +WWW: http://gdal.velocet.ca/projects/shapelib/ - Shapelib Homepage diff --git a/devel/shapelib/pkg-plist b/devel/shapelib/pkg-plist new file mode 100644 index 0000000..55ab095 --- /dev/null +++ b/devel/shapelib/pkg-plist @@ -0,0 +1,9 @@ +include/shapefil.h +lib/libshp.la +lib/libshp.so.1 +lib/libshp.so +lib/libshp.a +share/doc/shapelib/shapelib.html +share/doc/shapelib/shp_api.html +share/doc/shapelib/dbf_api.html +@dirrm share/doc/shapelib |