aboutsummaryrefslogtreecommitdiffstats
path: root/databases/pecl-sqlite/Makefile
blob: a9fdf1e197e75d94ccf2adb8c8ec09ade997d823 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Ports collection makefile for:  pear-sqlite
# Date created:           2004-04-30
# Whom:               mat
#
# $FreeBSD$
#

PORTNAME=   sqlite
PORTVERSION=    1.0.3
CATEGORIES= databases www
MASTER_SITES=   http://pecl.php.net/get/
PKGNAMEPREFIX=  pecl-
DISTNAME=   SQLite-${PORTVERSION}
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    PECL

MAINTAINER= mnag@FreeBSD.org
COMMENT=    PECL classes to access sqlite databases

WRKSRC=     ${WRKDIR}/SQLite-${PORTVERSION}
PKGMESSAGE= ${WRKDIR}/pkg-message

USE_PHP=    yes
USE_PHPIZE= yes
USE_PHPEXT= yes
PHP_MODNAME=    sqlite

CONFIGURE_ARGS= --with-sqlite

DOCSDIR=    ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR=    ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}

.include <bsd.port.pre.mk>

.if ${PHP_VER} == 5
IGNORE=     Please use databases/php${PHP_VER}-sqlite
.endif

.if !defined(NOPORTDOCS)
PORTDOCS=   *
.endif

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${MKDIR} ${DOCSDIR}/tests
    @${INSTALL_DATA} ${WRKSRC}/CREDITS ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/tests/* ${DOCSDIR}/tests

    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/sqlite.php ${EXAMPLESDIR}
.endif

.include <bsd.port.post.mk>