ports/146200: [MAINTAINER] devel/shapelib: update to 1.3.0b2, minor fixes

Sunpoet Po-Chuan Hsieh sunpoet at sunpoet.net
Fri Apr 30 22:10:07 UTC 2010


>Number:         146200
>Category:       ports
>Synopsis:       [MAINTAINER] devel/shapelib: update to 1.3.0b2, minor fixes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 30 22:10:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD bonjour.sunpoet.net 8.0-STABLE FreeBSD 8.0-STABLE #0: Fri Mar 19 09:16:38 CST 2010
>Description:
Changes:
- Update to 1.3.0b2
- Add category: geography
- Add option: DEBUG
- Simplify patches
- Sort pkg-plist

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- shapelib-1.3.0_3.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/shapelib/Makefile /usr/ports/sunpoet/shapelib/Makefile
--- /usr/ports/devel/shapelib/Makefile	2009-12-25 15:52:39.000000000 +0800
+++ /usr/ports/sunpoet/shapelib/Makefile	2010-05-01 05:39:03.000000000 +0800
@@ -7,33 +7,32 @@
 
 PORTNAME=	shapelib
 PORTVERSION=	1.3.0
-PORTREVISION=	2
-CATEGORIES=	devel
+PORTREVISION=	3
+CATEGORIES=	devel geography
 MASTER_SITES=	http://download.osgeo.org/shapelib/ \
+		ftp://ftp.remotesensing.org/shapelib/ \
 		http://sunpoet.net/distfiles/
 DISTNAME=	${PORTNAME}-${SHAPELIB_VER}
 
 MAINTAINER=	sunpoet at sunpoet.net
 COMMENT=	C API for reading and writing ArcView Shapefiles
 
+MAKE_JOBS_UNSAFE=	yes
 USE_AUTOTOOLS=	libtool:22:env
 USE_LDCONFIG=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}-${SHAPELIB_VER}
-MAKE_JOBS_UNSAFE=	yes
 
-OPTIONS=	PROJ4 "Cartographic Projections library" off
+OPTIONS=	DEBUG "Debugging" off \
+		PROJ4 "Cartographic Projections library" off
 
-SHAPELIB_VER=	${PORTVERSION}b1
+SHAPELIB_VER=	${PORTVERSION}b2
 
 .include <bsd.port.pre.mk>
 
-.if defined(WITH_PROJ4)
-LIB_DEPENDS+=	proj.6:${PORTSDIR}/graphics/proj
-PLIST_SUB+=	PROJ4=""
-PROJ4=		-DPROJ4
+.if defined(WITH_DEBUG)
+DEBUG=		-DDEBUG -DDEBUG2 -g
 .else
-PLIST_SUB+=	PROJ4="@comment "
-PROJ4=		-DNO_PROJ4
+DEBUG=
 .endif
 
 .if ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "ia64"
@@ -42,9 +41,20 @@
 ENDIAN=		-D_BIG_ENDIAN
 .endif
 
+.if defined(WITH_PROJ4)
+LIB_DEPENDS+=	proj:${PORTSDIR}/graphics/proj
+PLIST_SUB+=	PROJ4=""
+PROJ4=		-DPROJ4
+.else
+PLIST_SUB+=	PROJ4="@comment "
+PROJ4=		-DNO_PROJ4
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} \
+		-e 's#%%DEBUG%%#${DEBUG}#g' \
 		-e 's#%%INSTALL%%#${INSTALL}#g' \
+		-e 's#%%INSTALL_PROGRAM%%#${INSTALL_PROGRAM}#g' \
 		-e 's#%%LIBTOOL%%#${LIBTOOL}#g' \
 		-e 's#%%PREFIX%%#${PREFIX}#g' \
 		-e 's#%%ENDIAN%%#${ENDIAN}#g' \
diff -ruN --exclude=CVS /usr/ports/devel/shapelib/distinfo /usr/ports/sunpoet/shapelib/distinfo
--- /usr/ports/devel/shapelib/distinfo	2009-12-25 15:52:39.000000000 +0800
+++ /usr/ports/sunpoet/shapelib/distinfo	2010-05-01 05:02:18.000000000 +0800
@@ -1,3 +1,3 @@
-MD5 (shapelib-1.3.0b1.tar.gz) = b8da228374611880ab52179b70c72f16
-SHA256 (shapelib-1.3.0b1.tar.gz) = 43ee1c4df76e9fb5c0bbebd3def7b6c02151547a5c447ee044419505bdf07d60
-SIZE (shapelib-1.3.0b1.tar.gz) = 182144
+MD5 (shapelib-1.3.0b2.tar.gz) = 708ea578bc299dcd9f723569d12bee8d
+SHA256 (shapelib-1.3.0b2.tar.gz) = a3c6975730039668f5e89320ddfccbe0659dd31ff8f4cddd93f1cb8bb2541387
+SIZE (shapelib-1.3.0b2.tar.gz) = 182558
diff -ruN --exclude=CVS /usr/ports/devel/shapelib/files/patch-contrib-Makefile /usr/ports/sunpoet/shapelib/files/patch-contrib-Makefile
--- /usr/ports/devel/shapelib/files/patch-contrib-Makefile	2009-09-09 19:14:18.000000000 +0800
+++ /usr/ports/sunpoet/shapelib/files/patch-contrib-Makefile	2010-05-01 05:55:41.000000000 +0800
@@ -1,52 +1,43 @@
---- contrib/Makefile.orig	2004-06-24 08:55:52.000000000 +0800
-+++ contrib/Makefile	2009-09-06 05:35:24.000000000 +0800
-@@ -3,19 +3,44 @@
+--- contrib/Makefile.orig	2010-01-04 12:08:02.000000000 +0800
++++ contrib/Makefile	2010-05-01 05:26:53.000000000 +0800
+@@ -3,19 +3,36 @@
  #CFLAGS	=	-g
  
  # Endian: define either _LITTLE_ENDIAN or _BIG_ENDIAN
 -ENDIAN	=	-D_LITTLE_ENDIAN
 +#ENDIAN	=	-D_LITTLE_ENDIAN
  
--CFLAGS	=	-g -I.. -DPROJ4 $(ENDIAN) -DDEBUG -DDEBUG2 
-+CFLAGS	+=	-g -I.. -DDEBUG -DDEBUG2 %%ENDIAN%% %%PROJ4%% -I%%PREFIX%%/include -L%%PREFIX%%/lib
+-CFLAGS	=	-g -I.. -I$(HOME)/bld/include -DPROJ4 $(ENDIAN) -DDEBUG -DDEBUG2 
++CFLAGS	+=	%%DEBUG%% %%ENDIAN%% %%PROJ4%% -I.. -I%%PREFIX%%/include -L%%PREFIX%%/lib
  
--SHPOBJ	=	../shpopen.o ../dbfopen.o 
-+SHPOBJ	=	../shpopen.o ../dbfopen.o ../safileio.o
+ SHPOBJ	=	../shpopen.o ../dbfopen.o ../safileio.o
  
--SHPGOBJ =	../shpopen.o ../dbfopen.o shpgeo.o
-+SHPGOBJ =	../shpopen.o ../dbfopen.o ../safileio.o shpgeo.o
+ SHPGOBJ =	../shpopen.o ../dbfopen.o ../safileio.o shpgeo.o
  
- GEOOBJ	=	./shpgeo.o -lm -lproj
+-GEOOBJ	=	./shpgeo.o -lm -L$(HOME)/bld/lib -lproj
++GEOOBJ	=	./shpgeo.o -lm -lproj
  
  default:	all
  
 -all:	shpdxf shpproj dbfinfo shpcentrd shpdata shpwkb dbfinfo dbfcat shpinfo shpfix shpcat Shape_PointInPoly shpsort
 +#all:	shpdxf shpproj dbfinfo shpcentrd shpdata shpwkb dbfinfo dbfcat shpinfo shpfix shpcat Shape_PointInPoly shpsort
 +
++ALLPROG=	dbfcat dbfinfo shpcat shpdxf shpfix Shape_PointInPoly
++ALLPROJ=	shpcentrd shpdata shpinfo shpproj shpwkb shpsort
++
 +.if defined(PROJ4)
-+all:		allprog allproj
++all:		$(ALLPROG) $(ALLPROJ)
 +install:	allprog_install allproj_install
 +.else
-+all:		allprog
++all:		$(ALLPROG)
 +install:	allprog_install
 +.endif
 +
-+ALLPROG=	dbfcat dbfinfo shpcat shpdxf shpfix Shape_PointInPoly
-+ALLPROJ=	shpcentrd shpdata shpinfo shpproj shpwkb shpsort
-+
-+allprog:	$(ALLPROG)
-+
 +allprog_install:	$(ALLPROG)
-+.for _ALLPROG in $(ALLPROG)
-+	%%INSTALL%% -c -m 755 ${_ALLPROG} %%PREFIX%%/bin/${_ALLPROG}
-+.endfor
-+
-+allproj:	$(ALLPROJ)
++	%%INSTALL_PROGRAM%% $(ALLPROG) %%PREFIX%%/bin/
 +
 +allproj_install:	$(ALLPROJ)
-+.for _ALLPROJ in $(ALLPROJ)
-+	%%INSTALL%% -c -m 755 ${_ALLPROJ} %%PREFIX%%/bin/${_ALLPROJ}
-+.endfor
++	%%INSTALL_PROGRAM%% $(ALLPROJ) %%PREFIX%%/bin/
  
  clean:  
  	rm -f shpdxf shpproj dbfinfo shpcentrd shpdata shpwkb dbfcat dbfinfo shpinfo shpfix shpcat *.o
diff -ruN --exclude=CVS /usr/ports/devel/shapelib/files/patch-shapefil.h /usr/ports/sunpoet/shapelib/files/patch-shapefil.h
--- /usr/ports/devel/shapelib/files/patch-shapefil.h	2009-09-09 19:14:18.000000000 +0800
+++ /usr/ports/sunpoet/shapelib/files/patch-shapefil.h	2010-05-01 05:04:40.000000000 +0800
@@ -1,6 +1,6 @@
---- shapefil.h.orig	2008-11-12 22:28:15.000000000 +0800
-+++ shapefil.h	2009-09-05 05:33:07.000000000 +0800
-@@ -123,6 +123,8 @@
+--- shapefil.h.orig	2010-01-28 19:34:34.000000000 +0800
++++ shapefil.h	2010-05-01 05:04:28.000000000 +0800
+@@ -126,6 +126,8 @@
   */
  
  #include <stdio.h>
diff -ruN --exclude=CVS /usr/ports/devel/shapelib/pkg-plist /usr/ports/sunpoet/shapelib/pkg-plist
--- /usr/ports/devel/shapelib/pkg-plist	2009-09-10 10:03:49.000000000 +0800
+++ /usr/ports/sunpoet/shapelib/pkg-plist	2010-05-01 05:57:19.000000000 +0800
@@ -1,18 +1,18 @@
-bin/shpcreate
-bin/shpadd
-bin/shpdump
-bin/shprewind
-bin/dbfcreate
 bin/dbfadd
-bin/dbfdump
-bin/shptest
-bin/shputils
-bin/shptreedump
 bin/dbfcat
+bin/dbfcreate
+bin/dbfdump
 bin/dbfinfo
+bin/shpadd
 bin/shpcat
+bin/shpcreate
+bin/shpdump
 bin/shpdxf
 bin/shpfix
+bin/shprewind
+bin/shptest
+bin/shptreedump
+bin/shputils
 bin/Shape_PointInPoly
 %%PROJ4%%bin/shpcentrd
 %%PROJ4%%bin/shpdata
--- shapelib-1.3.0_3.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list