freebsd-ports/devel/pecl-shape/Makefile
Bartek Rutkowski 3cf1326b12 devel/pecl-shape: convert to new LIB_DEPENDS format
Approved by:	swills (mentor), portmgr (blanket)
2014-07-08 10:06:18 +00:00

32 lines
751 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-
EXTRACT_SUFX= .tgz
DIST_SUBDIR= PECL
MAINTAINER= miwi@FreeBSD.org
COMMENT= PECL extension that wraps libshape
LIB_DEPENDS= libshp.so:${PORTSDIR}/devel/shapelib
USE_PHP= yes
USE_PHP_BUILD= yes
USE_PHPEXT= yes
PHP_MODNAME= shp
DEFAULT_PHP_VER=53
IGNORE_WITH_PHP=5
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>