aboutsummaryrefslogtreecommitdiffstats
path: root/print/pecl-haru/Makefile
blob: 6a2ae212fb7bc24d36ae3fe039d398b9b1fa57d9 (plain) (blame)
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
# New ports collection makefile for:    pecl-haru
# Date created:         20 Nov 2008
# Whom:             Wen Heping <wenheping@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   haru
PORTVERSION=    1.0.3
CATEGORIES= print pear
MASTER_SITES=   http://pecl.php.net/get/
PKGNAMEPREFIX=  pecl-
EXTRACT_SUFX=   .tgz

MAINTAINER= miwi@FreeBSD.org
COMMENT=    A PECL extension to Haru PDF functions

BUILD_DEPENDS=  ${LOCALBASE}/include/hpdf.h:${PORTSDIR}/print/libharu
RUN_DEPENDS:=   ${LOCALBASE}/include/hpdf.h:${PORTSDIR}/print/libharu

USE_PHP=    yes
USE_PHPEXT= yes

CONFIGURE_ARGS+=    --with-haru=${LOCALBASE}
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS+=    CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"

.include <bsd.port.mk>