1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/devel/shapelib/Makefile
Sunpoet Po-Chuan Hsieh 50097b65fa - Update to 1.3.0b3
Changes:

2011-07-24:
- shpopen.c, dbfopen.c, shptree.c, shapefil.h: Minimize use of CPL services in
  favor of SAHooks.Error().
- Makefile: Remove all the shared library building stuff, it is just too half
  assed, and results in all sorts of bug reports and complaints. Instead just
  install a static libshp.a.

2011-07-23:
- Makefile: build shpdumptree as part of all target (#1648).
- shpopen.c: fix memory leaks in error cases (#2061)
- contrib/*.c: Include stdlib.h and strings.h (#2146)
- shpdump.c: change to use %.15g for coordinate reporting. (#2277)

2011-05-13:
- dbfopen.c, shapelib.h: Add functions to reorder and alter field definitions.
  DBFReorderFields() and DBFAlterFields().

2011-05-07:
- dbfopen.c: Ensure pending record is flushed when adding a native field
  (gdal #4073).

2011-04-16:
- shapefil.h: avoid warnings with SHP_CVSID on gcc.

2010-12-06:
- dbfopen.c: fix read past end of init data fetching code page
  http://bugzilla.maptools.org/show_bug.cgi?id=2276

2010-07-01:
- shpopen.c: do not error out on a shape with zero vertices.
- shpdump.c: do not crash if null shape returned by read object.

2010-06-29:
- shptree.c: fix sign of Z and M comparisons in SHPCheckObjectContained.
  (http://bugzilla.maptools.org/show_bug.cgi?id=2223)
2012-01-07 17:44:57 +00:00

77 lines
1.7 KiB
Makefile

# 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.3.0
PORTREVISION= 4
CATEGORIES= devel geography
MASTER_SITES= http://download.osgeo.org/shapelib/ \
ftp://ftp.remotesensing.org/shapelib/ \
LOCAL/sunpoet
DISTNAME= ${PORTNAME}-${SHAPELIB_VER}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= C API for reading and writing ArcView Shapefiles
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${SHAPELIB_VER}
OPTIONS= DEBUG "Debugging" off \
PROJ "Cartographic Projections library" off
SHAPELIB_VER= ${PORTVERSION}b3
.include <bsd.port.options.mk>
.if defined(WITH_DEBUG)
DEBUG= -DDEBUG -DDEBUG2 -g
.else
DEBUG= # empty
.endif
.if defined(WITH_PROJ)
LIB_DEPENDS+= proj:${PORTSDIR}/graphics/proj
PLIST_SUB+= PROJ=""
PROJ= -DPROJ4
.else
PLIST_SUB+= PROJ="@comment "
PROJ= -DNO_PROJ4
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "ia64"
ENDIAN= -D_LITTLE_ENDIAN
.else
ENDIAN= -D_BIG_ENDIAN # powerpc & sparc64
.endif
post-patch:
@${REINPLACE_CMD} \
-e 's|%%DEBUG%%|${DEBUG}|g' \
-e 's|%%LIBTOOL%%|${LIBTOOL}|g' \
-e 's|%%ENDIAN%%|${ENDIAN}|g' \
-e 's|%%PROJ%%|${PROJ}|g' \
${WRKSRC}/Makefile ${WRKSRC}/contrib/Makefile
#.if defined(WITH_PROJ)
# @${REINPLACE_CMD} -e '/^all:/ s|$$| contrib_tools|' ${WRKSRC}/Makefile
#.endif
# -e 's#%%INSTALL%%#${INSTALL}#g' \
# -e 's#%%INSTALL_PROGRAM%%#${INSTALL_PROGRAM}#g' \
# -e 's#%%PREFIX%%#${PREFIX}#g' \
post-install:
${LN} -s libshp.so.1 ${PREFIX}/lib/libshp.so
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/web/*.html ${DOCSDIR}/
.endif
.include <bsd.port.post.mk>