pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/geography/shapelib Initial import of shapelib-1.2.10 f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b5393288d676
branches:  trunk
changeset: 491685:b5393288d676
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Mar 27 21:18:06 2005 +0000

description:
Initial import of shapelib-1.2.10 from pkgsrc-wip, provided by David
Price:

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). The Shapefile
format is a working and interchange format promulgated by ESRI for
simple vector data with attributes.

diffstat:

 geography/shapelib/DESCR            |   5 ++
 geography/shapelib/Makefile         |  20 +++++++++++
 geography/shapelib/PLIST            |   4 ++
 geography/shapelib/buildlink3.mk    |  18 ++++++++++
 geography/shapelib/distinfo         |   6 +++
 geography/shapelib/patches/patch-aa |  64 +++++++++++++++++++++++++++++++++++++
 6 files changed, 117 insertions(+), 0 deletions(-)

diffs (141 lines):

diff -r 766d5e4bebc7 -r b5393288d676 geography/shapelib/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/shapelib/DESCR  Sun Mar 27 21:18:06 2005 +0000
@@ -0,0 +1,5 @@
+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). The Shapefile
+format is a working and interchange format promulgated by ESRI for
+simple vector data with attributes.
diff -r 766d5e4bebc7 -r b5393288d676 geography/shapelib/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/shapelib/Makefile       Sun Mar 27 21:18:06 2005 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/03/27 21:18:06 wiz Exp $
+#
+
+DISTNAME=              shapelib-1.2.10
+CATEGORIES=            geography
+MASTER_SITES=          http://shapelib.maptools.org/dl/
+
+MAINTAINER=            mchittur%cs.nmsu.edu@localhost
+HOMEPAGE=              http://shapelib.maptools.org/
+COMMENT=               Library for reading, writing and updating (limited) ESRI Shapefiles
+
+USE_BUILDLINK3=                YES
+USE_LIBTOOL=           YES
+
+NO_CONFIGURE=          YES
+
+BUILD_TARGET=          lib
+INSTALL_TARGET=                lib_install
+
+.include "../../mk/bsd.pkg.mk"
diff -r 766d5e4bebc7 -r b5393288d676 geography/shapelib/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/shapelib/PLIST  Sun Mar 27 21:18:06 2005 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/03/27 21:18:06 wiz Exp $
+include/libshp/shapefil.h
+lib/libshp.la
+@dirrm include/libshp
diff -r 766d5e4bebc7 -r b5393288d676 geography/shapelib/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/shapelib/buildlink3.mk  Sun Mar 27 21:18:06 2005 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/03/27 21:18:06 wiz Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+SHAPELIB_BUILDLINK3_MK:=       ${SHAPELIB_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    shapelib
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nshapelib}
+BUILDLINK_PACKAGES+=   shapelib
+
+.if !empty(SHAPELIB_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.shapelib+=   shapelib>=1.2.10
+BUILDLINK_PKGSRCDIR.shapelib?= ../../geography/shapelib
+.endif # SHAPELIB_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}
diff -r 766d5e4bebc7 -r b5393288d676 geography/shapelib/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/shapelib/distinfo       Sun Mar 27 21:18:06 2005 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/03/27 21:18:06 wiz Exp $
+
+SHA1 (shapelib-1.2.10.tar.gz) = 436b09b6a90f403e4568460d67560d5730725651
+RMD160 (shapelib-1.2.10.tar.gz) = 9dcd90d5197aa7d6063a703a369a530f6aa1f1c3
+Size (shapelib-1.2.10.tar.gz) = 167219 bytes
+SHA1 (patch-aa) = 7f32b90a974ab4a605f44f735df3b1697860a59b
diff -r 766d5e4bebc7 -r b5393288d676 geography/shapelib/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/shapelib/patches/patch-aa       Sun Mar 27 21:18:06 2005 +0000
@@ -0,0 +1,64 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/03/27 21:18:06 wiz Exp $
+
+--- Makefile.orig      2003-04-07 15:03:22.000000000 +0200
++++ Makefile
+@@ -91,52 +91,16 @@ test3:
+       fi
+ 
+ 
+-# -----------------------------------------------------------------------------
+-# 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.9
+ LIBSHP_VERSION=1.0.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
+-      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
+-      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
+-      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  
+-      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
+-      rm -fr .libs/libshp.lax
+-      (cd .libs && rm -f libshp.la && ln -s ../libshp.la libshp.la)
++      ${LIBTOOL} --mode=compile gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1  -I. -I. -I/usr/local/include    -g -O2 -c shpopen.c
++      ${LIBTOOL} --mode=compile gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1  -I. -I. -I/usr/local/include    -g -O2 -c shptree.c
++      ${LIBTOOL} --mode=compile gcc -DPACKAGE=\"libshp\" -DVERSION=\"$(SHPLIB_VERSION)\" -DSTDC_HEADERS=1  -I. -I. -I/usr/local/include    -g -O2 -c dbfopen.c
++      ${LIBTOOL} --mode=link gcc  -g -O2  -o libshp.la -rpath /usr/local/lib -version-info 1:1:0 shpopen.lo shptree.lo dbfopen.lo  
+ 
+ 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
+-      /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)
+-      chmod +x /usr/local/lib/libshp.so.$(LIBSHP_VERSION)
+-      /usr/bin/install -c .libs/libshp.la /usr/local/lib/libshp.la
+-      /usr/bin/install -c .libs/libshp.a /usr/local/lib/libshp.a
+-      ranlib /usr/local/lib/libshp.a
+-      chmod 644 /usr/local/lib/libshp.a
+-      /bin/sh ./mkinstalldirs /usr/local/include/libshp
+-      /usr/bin/install -c -m 644 shapefil.h /usr/local/include/libshp/shapefil.h
++      ${LIBTOOL}  --mode=install ${BSD_INSTALL_LIB} -c libshp.la ${PREFIX}/lib/libshp.la
++      ${BSD_INSTALL_DATA_DIR} ${PREFIX}/include/libshp
++      ${BSD_INSTALL_DATA} -c -m 644 shapefil.h ${PREFIX}/include/libshp/shapefil.h



Home | Main Index | Thread Index | Old Index