blob: a48758e393e81469a3da6d9bd48a11f760333100 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Created by: Ditesh Shashikant Gathani <ditesh@gathani.org>
# $FreeBSD$
PORTNAME= shape
PORTVERSION= 0.9.2
PORTREVISION= 2
CATEGORIES= devel pear
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
DIST_SUBDIR= PECL
MAINTAINER= ports@FreeBSD.org
COMMENT= PECL extension that wraps libshape
LICENSE= PHP30
LIB_DEPENDS= libshp.so:devel/shapelib
USES= php:ext tar:tgz
PHP_MODNAME= shp
IGNORE_WITH_PHP= 56 70
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>
|