1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/devel/shapelib/Makefile
Wen Heping ffc85b31ea - Update to 1.3.0b1
PR:		ports/141953
Submitted by:	Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> (maintainer)
2009-12-25 06:15:20 +00:00

61 lines
1.4 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= 2
CATEGORIES= devel
MASTER_SITES= http://download.osgeo.org/shapelib/ \
http://sunpoet.net/distfiles/
DISTNAME= ${PORTNAME}-${SHAPELIB_VER}
MAINTAINER= sunpoet@sunpoet.net
COMMENT= C API for reading and writing ArcView Shapefiles
USE_AUTOTOOLS= libtool:22:env
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${SHAPELIB_VER}
MAKE_JOBS_UNSAFE= yes
OPTIONS= PROJ4 "Cartographic Projections library" off
SHAPELIB_VER= ${PORTVERSION}b1
.include <bsd.port.pre.mk>
.if defined(WITH_PROJ4)
LIB_DEPENDS+= proj.6:${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
post-patch:
@${REINPLACE_CMD} \
-e 's#%%INSTALL%%#${INSTALL}#g' \
-e 's#%%LIBTOOL%%#${LIBTOOL}#g' \
-e 's#%%PREFIX%%#${PREFIX}#g' \
-e 's#%%ENDIAN%%#${ENDIAN}#g' \
-e 's#%%PROJ4%%#${PROJ4}#g' \
${WRKSRC}/Makefile ${WRKSRC}/contrib/Makefile
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/web/*.html ${DOCSDIR}
.endif
.include <bsd.port.post.mk>