2007-12-12 16:57:41 +01:00
|
|
|
# New ports collection makefile for: pecl-shape
|
|
|
|
# Date created: 15 Nov 2007
|
|
|
|
# Whom: Ditesh Shashikant Gathani <ditesh@gathani.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= shape
|
2009-09-30 15:12:13 +02:00
|
|
|
PORTVERSION= 0.9.2
|
2009-12-25 08:24:49 +01:00
|
|
|
PORTREVISION= 1
|
2007-12-12 16:57:41 +01:00
|
|
|
CATEGORIES= devel pear
|
|
|
|
MASTER_SITES= http://pecl.php.net/get/
|
|
|
|
PKGNAMEPREFIX= pecl-
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
DIST_SUBDIR= PECL
|
|
|
|
|
2009-04-11 11:09:22 +02:00
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
2007-12-12 16:57:41 +01:00
|
|
|
COMMENT= A PECL extension that wraps libshape
|
|
|
|
|
|
|
|
LIB_DEPENDS= shp:${PORTSDIR}/devel/shapelib
|
|
|
|
|
|
|
|
USE_PHP= yes
|
|
|
|
USE_PHP_BUILD= yes
|
|
|
|
USE_PHPEXT= yes
|
|
|
|
PHP_MODNAME= shp
|
|
|
|
|
2009-06-11 07:55:31 +02:00
|
|
|
CONFIGURE_ARGS+=--with-shp=${LOCALBASE}
|
|
|
|
|
2007-12-12 16:57:41 +01:00
|
|
|
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>
|