2001-05-20 04:22:23 +02:00
|
|
|
# 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
|
2003-10-07 06:33:13 +02:00
|
|
|
PORTVERSION= 1.2.10
|
2008-02-25 10:36:32 +01:00
|
|
|
PORTREVISION= 2
|
2001-05-20 04:22:23 +02:00
|
|
|
CATEGORIES= devel
|
2008-02-25 10:36:32 +01:00
|
|
|
MASTER_SITES= http://dl.maptools.org/dl/shapelib/ \
|
|
|
|
http://sunpoet.net/distfiles/
|
2001-05-20 04:22:23 +02:00
|
|
|
|
2008-02-25 10:36:32 +01:00
|
|
|
MAINTAINER= sunpoet@sunpoet.net
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= C API for reading and writing ArcView Shapefiles
|
2001-05-20 04:22:23 +02:00
|
|
|
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15:env
|
2006-08-15 00:55:18 +02:00
|
|
|
USE_LDCONFIG= yes
|
2008-02-25 10:36:32 +01:00
|
|
|
|
|
|
|
OPTIONS= PROJ4 "Cartographic Projections library" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_PROJ4)
|
|
|
|
LIB_DEPENDS+= proj.5:${PORTSDIR}/graphics/proj
|
|
|
|
PLIST_SUB+= PROJ4=""
|
|
|
|
PROJ4= -DPROJ4
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PROJ4="@comment "
|
|
|
|
PROJ4= -DNO_PROJ4
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "ia64"
|
|
|
|
ENDIAN= -D_LITTLE_ENDIAN
|
|
|
|
.else # powerpc & sparc64
|
|
|
|
ENDIAN= -D_BIG_ENDIAN
|
|
|
|
.endif
|
2001-05-20 04:22:23 +02:00
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
post-patch:
|
2008-02-25 10:36:32 +01:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's#%%INSTALL%%#${INSTALL}#g' \
|
2006-02-23 11:40:44 +01:00
|
|
|
-e 's#%%LIBTOOL%%#${LIBTOOL}#g' \
|
2008-02-25 10:36:32 +01:00
|
|
|
-e 's#%%PREFIX%%#${PREFIX}#g' \
|
|
|
|
-e 's#%%ENDIAN%%#${ENDIAN}#g' \
|
|
|
|
-e 's#%%PROJ4%%#${PROJ4}#g' \
|
|
|
|
${WRKSRC}/Makefile ${WRKSRC}/contrib/Makefile
|
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
post-install:
|
2008-02-25 10:36:32 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
|
|
|
|
.endif
|
2001-05-20 04:22:23 +02:00
|
|
|
|
2008-02-25 10:36:32 +01:00
|
|
|
.include <bsd.port.post.mk>
|