summaryrefslogtreecommitdiff
path: root/geography/shapelib
diff options
context:
space:
mode:
authorwiz <wiz>2005-03-27 21:18:06 +0000
committerwiz <wiz>2005-03-27 21:18:06 +0000
commite74b300cbb41f6d8283bf18fcd9756bf63ef2772 (patch)
treef49bba3d2a1fabfb5a943b117c8b03dcc55fa5f6 /geography/shapelib
parent6b0bebc0011b2e55d8e5f00dc225ae27ea2287eb (diff)
downloadpkgsrc-e74b300cbb41f6d8283bf18fcd9756bf63ef2772.tar.gz
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 (limited to 'geography/shapelib')
-rw-r--r--geography/shapelib/DESCR5
-rw-r--r--geography/shapelib/Makefile20
-rw-r--r--geography/shapelib/PLIST4
-rw-r--r--geography/shapelib/buildlink3.mk18
-rw-r--r--geography/shapelib/distinfo6
-rw-r--r--geography/shapelib/patches/patch-aa64
6 files changed, 117 insertions, 0 deletions
diff --git a/geography/shapelib/DESCR b/geography/shapelib/DESCR
new file mode 100644
index 00000000000..d4079d2204b
--- /dev/null
+++ b/geography/shapelib/DESCR
@@ -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 --git a/geography/shapelib/Makefile b/geography/shapelib/Makefile
new file mode 100644
index 00000000000..d862fc40be4
--- /dev/null
+++ b/geography/shapelib/Makefile
@@ -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
+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 --git a/geography/shapelib/PLIST b/geography/shapelib/PLIST
new file mode 100644
index 00000000000..99755d802b3
--- /dev/null
+++ b/geography/shapelib/PLIST
@@ -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 --git a/geography/shapelib/buildlink3.mk b/geography/shapelib/buildlink3.mk
new file mode 100644
index 00000000000..3be42163a75
--- /dev/null
+++ b/geography/shapelib/buildlink3.mk
@@ -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 --git a/geography/shapelib/distinfo b/geography/shapelib/distinfo
new file mode 100644
index 00000000000..2ab81b131a0
--- /dev/null
+++ b/geography/shapelib/distinfo
@@ -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 --git a/geography/shapelib/patches/patch-aa b/geography/shapelib/patches/patch-aa
new file mode 100644
index 00000000000..aff9874a8c5
--- /dev/null
+++ b/geography/shapelib/patches/patch-aa
@@ -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