Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2001 15:23:44 -0400 (EDT)
From:      aa8vb@nc.rr.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        aa8vb@nc.rr.com
Subject:   ports/26929: (NEW PORT) shapelib - C API for reading and writing ArcView Shapefiles
Message-ID:  <200104281923.f3SJNi809074@stealth.dummynet>

next in thread | raw e-mail | index | archive | help

>Number:         26929
>Category:       ports
>Synopsis:       (NEW PORT) shapelib - C API for reading and writing ArcView Shapefiles
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 28 12:30:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Randall Hopper
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
self
>Environment:

	Stock 4.2-RELEASE

>Description:

	Attached shar adds shapelib port, a C API for reading and writing
	ArcView Shapefiles (ArcView is a commercial GIS tool - see
	http://www.esri.com/).

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	shapelib
#	shapelib/Makefile
#	shapelib/distinfo
#	shapelib/pkg-comment
#	shapelib/pkg-descr
#	shapelib/pkg-plist
#	shapelib/files
#	shapelib/files/patch-aa
#
echo c - shapelib
mkdir -p shapelib > /dev/null 2>&1
echo x - shapelib/Makefile
sed 's/^X//' >shapelib/Makefile << 'END-of-shapelib/Makefile'
X# New ports collection makefile for:	shapelib for reading ARC Shape Files
X# Date created:		23 Apr 2001
X# Whom:			Randall Hopper
X#
X# $FreeBSD: ports/devel/libgetline/Makefile,v 1.9 2000/09/23 18:47:27 will Exp $
X#
X
XPORTNAME=	shapelib
XPORTVERSION=	1.2.8
XCATEGORIES=	devel
XMASTER_SITES=	ftp://gdal.velocet.ca/pub/outgoing/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	aa8vb@nc.rr.com
X
XBUILD_DEPENDS= libtool:${PORTNAME}/devel/libtool
X
XALL_TARGET=	lib
XINSTALLS_SHLIB=	yes
X
Xdo-install:
X	${INSTALL_DATA} ${WRKSRC}/.libs/libshp.la ${PREFIX}/lib/
X	${INSTALL_DATA} ${WRKSRC}/.libs/libshp.so.1 ${PREFIX}/lib/
X	${LN} -sf libshp.so.1 ${PREFIX}/lib/libshp.so
X	${INSTALL_DATA} ${WRKSRC}/.libs/libshp.a ${PREFIX}/lib/
X	${INSTALL_DATA} ${WRKSRC}/shapefil.h ${PREFIX}/include
X	${MKDIR} ${PREFIX}/share/doc/shapelib
X	${INSTALL_DATA} ${WRKSRC}/shapelib.html ${PREFIX}/share/doc/shapelib
X	${INSTALL_DATA} ${WRKSRC}/shp_api.html ${PREFIX}/share/doc/shapelib
X	${INSTALL_DATA} ${WRKSRC}/dbf_api.html ${PREFIX}/share/doc/shapelib
X
X.include <bsd.port.mk>
X
END-of-shapelib/Makefile
echo x - shapelib/distinfo
sed 's/^X//' >shapelib/distinfo << 'END-of-shapelib/distinfo'
XMD5 (shapelib-1.2.8.tar.gz) = e2e0cfee2ad8d7a518512355734c635e
END-of-shapelib/distinfo
echo x - shapelib/pkg-comment
sed 's/^X//' >shapelib/pkg-comment << 'END-of-shapelib/pkg-comment'
XC API for reading and writing ArcView Shapefiles
END-of-shapelib/pkg-comment
echo x - shapelib/pkg-descr
sed 's/^X//' >shapelib/pkg-descr << 'END-of-shapelib/pkg-descr'
X                           Shapefile C Library V1.2
X
X   Purpose
X
X      The Shapefile C Library provides the ability to write simple C
X      programs for reading, writing and updating (to a limited extent) ESRI
X      Shapefiles, and the associated attribute file (.dbf).
X
X   Documentation
X
X      /usr/local/share/doc/shapelib/shapelib.html - General docs
X      /usr/local/share/doc/shapelib/shp_api.html  - Shape (.SHP) File API
X      /usr/local/share/doc/shapelib/dbg_api.html  - Attribute (.DBF) File API
X
X   More Information
X
X      http://gdal.velocet.ca/projects/shapelib/   - Shapelib Homepage
END-of-shapelib/pkg-descr
echo x - shapelib/pkg-plist
sed 's/^X//' >shapelib/pkg-plist << 'END-of-shapelib/pkg-plist'
Xinclude/shapefil.h
Xlib/libshp.la
Xlib/libshp.so.1
Xlib/libshp.so
Xlib/libshp.a
Xshare/doc/shapelib/shapelib.html
Xshare/doc/shapelib/shp_api.html
Xshare/doc/shapelib/dbf_api.html
X@dirrm share/doc/shapelib
END-of-shapelib/pkg-plist
echo c - shapelib/files
mkdir -p shapelib/files > /dev/null 2>&1
echo x - shapelib/files/patch-aa
sed 's/^X//' >shapelib/files/patch-aa << 'END-of-shapelib/files/patch-aa'
X--- Makefile.orig	Tue Mar 28 10:36:27 2000
X+++ Makefile	Mon Apr 23 22:53:27 2001
X@@ -91,31 +91,30 @@
X # The following is contributed by Jan-Oliver Wagner, and should allow for
X # creating shared libraries on most platforms with gcc, and libtool installed.
X 
X-SHPLIB_VERSION=1.2.7
X-LIBSHP_VERSION=1.0.1 # still once to be changed manually (see for 1:1:0), sorry
X+SHPLIB_VERSION=1.2.8
X+LIBSHP_VERSION=1 # still once to be changed manually (see for 1:1:0), sorry
X 
X lib:
X-	/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
X+	/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
X 	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
X 	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
X 	mv -f .libs/shpopen.lo shpopen.lo
X-	/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
X+	/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
X 	rm -f .libs/shptree.lo
X 	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
X 	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
X 	mv -f .libs/shptree.lo shptree.lo
X-	/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
X+	/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
X 	rm -f .libs/dbfopen.lo
X 	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
X 	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
X 	mv -f .libs/dbfopen.lo dbfopen.lo
X-	/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  
X+	/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  
X 	rm -fr .libs/libshp.la .libs/libshp.* .libs/libshp.*
X 	rm -fr .libs/libshp.lax
X 	mkdir .libs/libshp.lax
X 	/usr/bin/ld -G -h libshp.so.1 -o .libs/libshp.so.$(LIBSHP_VERSION)  shpopen.lo shptree.lo dbfopen.lo  -lc
X 
X-	(cd .libs && rm -f libshp.so.1 && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so.1)
X 	(cd .libs && rm -f libshp.so && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so)
X 	ar cru .libs/libshp.a  shpopen.o shptree.o dbfopen.o 
X 	ranlib .libs/libshp.a
X@@ -125,7 +124,7 @@
X lib_install:
X 	cp .libs/libshp.la .libs/libshp.lai
X 	/bin/sh ./mkinstalldirs /usr/local/lib
X-	/bin/sh ./libtool  --mode=install /usr/bin/install -c libshp.la /usr/local/lib/libshp.la
X+	/bin/sh /usr/local/bin/libtool  --mode=install /usr/bin/install -c libshp.la /usr/local/lib/libshp.la
X 	/usr/bin/install -c .libs/libshp.so.$(LIBSHP_VERSION) /usr/local/lib/libshp.so.$(LIBSHP_VERSION)
X 	(cd /usr/local/lib && rm -f libshp.so.1 && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so.1)
X 	(cd /usr/local/lib && rm -f libshp.so && ln -s libshp.so.$(LIBSHP_VERSION) libshp.so)
END-of-shapelib/files/patch-aa
exit


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104281923.f3SJNi809074>