1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/devel/pecl-shape/Makefile
Martin Wilke db53585487 - Take Maintainership
Approved by:	mat (mentor)
2015-11-26 14:39:58 +00:00

34 lines
749 B
Makefile

# Created by: Ditesh Shashikant Gathani <ditesh@gathani.org>
# $FreeBSD$
PORTNAME= shape
PORTVERSION= 0.9.2
PORTREVISION= 1
CATEGORIES= devel pear
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
DIST_SUBDIR= PECL
MAINTAINER= miwi@FreeBSD.org
COMMENT= PECL extension that wraps libshape
LICENSE= PHP30
LIB_DEPENDS= libshp.so:${PORTSDIR}/devel/shapelib
USES= tar:tgz
USE_PHP= yes
USE_PHP_BUILD= yes
USE_PHPEXT= yes
PHP_MODNAME= shp
IGNORE_WITH_PHP= 5 56
CONFIGURE_ARGS+= --with-shp=${LOCALBASE}
post-patch:
@${REINPLACE_CMD} -e 's|include/libshp|include|g' ${WRKSRC}/config.m4
@${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/config.m4
@${REINPLACE_CMD} -e 's|include "libshp/|include "|g' ${WRKSRC}/php_shp.h
.include <bsd.port.mk>