e285e78d59
- Update endian check - Cleanup Makefile Changes: 2012-01-27: - shptree.c: optimize quadtree generation (gdal #4472) 2012-01-2: - shpopen.c: fix memory leaks on failure to open .shp file 2011-12-11: - shptree.c,h: Use SAHooks for .qix access (gdal #3365) 2011-09-14: - shpopen.c: fix missing cast (#2344)
66 lines
1.5 KiB
Makefile
66 lines
1.5 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= 5
|
|
CATEGORIES= devel geography
|
|
MASTER_SITES= http://download.osgeo.org/shapelib/ \
|
|
ftp://ftp.remotesensing.org/shapelib/ \
|
|
LOCAL/sunpoet
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= C API for reading and writing ArcView Shapefiles
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
OPTIONS= DEBUG "Debugging" off \
|
|
PROJ "Cartographic Projections library" off
|
|
|
|
.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>
|
|
|
|
# Ref: /usr/share/mk/bsd.endian.mk
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "arm" || ${ARCH} == "i386" || ${ARCH} == "ia64"
|
|
ENDIAN= -D_LITTLE_ENDIAN
|
|
.else
|
|
ENDIAN= -D_BIG_ENDIAN # mips*eb, powerpc, powerpc64 and sparc
|
|
.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
|
|
|
|
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>
|