aboutsummaryrefslogtreecommitdiffstats
path: root/databases/php5-propel/Makefile
blob: a811301dfc70ea7168b4cde4eb073c0ce92a7cbf (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
# New ports collection makefile for:    php5-propel
# Date Created:             9 Nov, 2005
# Whom:                 Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   propel
PORTVERSION=    1.1.1
CATEGORIES= databases
MASTER_SITES=   http://dist.bsdlab.org/
#MASTER_SITES=  http://propel.phpdb.org/files/
PKGNAMEPREFIX=  php5-

MAINTAINER= kuriyama@FreeBSD.org
COMMENT=    Full-service object persistence and query toolkit for PHP

USE_PHP=    yes
DEFAULT_PHP_VER=5
WRKSRC=     ${WRKDIR}

do-build:
    ${SED} -e "s|@DATA-DIR@/propel_generator|${PREFIX}/share/propel/generator/pear|" ${WRKSRC}/generator/pear/pear-propel-gen > ${WRKSRC}/propel-gen

do-install:
    cd ${WRKSRC}/runtime/classes; \
    for d in `${FIND} propel -type d`; do \
        ${INSTALL} -d ${PREFIX}/lib/php/$$d; \
    done; \
    for i in `${FIND} propel -type f`; do \
        ${INSTALL_DATA} $$i ${PREFIX}/lib/php/$$i; \
    done
    cd ${WRKSRC}; \
    for d in `${FIND} generator -type d`; do \
        ${INSTALL} -d ${PREFIX}/share/propel/$$d; \
    done; \
    for i in `${FIND} generator -type f`; do \
        ${INSTALL_DATA} $$i ${PREFIX}/share/propel/$$i; \
    done
    ${INSTALL_SCRIPT} ${WRKSRC}/propel-gen ${PREFIX}/bin

.include <bsd.port.mk>