blob: 029716a48c213347a82c3b26c09d42ce88c853ee (
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
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
56
57
58
59
60
61
62
|
# Ports collection makefile for: pear-I18N
# Date created: 30 November 2002
# Whom: Thierry Thomas (<thierry@pompo.net>)
#
# $FreeBSD$
#
PORTNAME= I18N
PORTVERSION= 0.8
PORTREVISION= 1
CATEGORIES= devel www
MASTER_SITES= http://pear.php.net/get/
PKGNAMEPREFIX= pear-
EXTRACT_SUFX= .tgz
DIST_SUBDIR= PEAR
MAINTAINER= ports@FreeBSD.org
COMMENT= PEAR internationalization package
BUILD_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS}
NO_BUILD= yes
.include <bsd.port.pre.mk>
EXAMPLESDIR= ${PREFIX}/share/examples/pear
.if exists(${LOCALBASE}/bin/php-config)
PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix
.else
PHP_BASE= ${LOCALBASE}
.endif
PEAR= ${LOCALBASE}/bin/pear
LPHP_LIB= lib/php
PEARDIR= ${PHP_BASE}/${LPHP_LIB}
PLIST_SUB= PEARDIR=${LPHP_LIB}
MANIFEST= Common.php Country.php Language.php Negotiator.php
EXAMPLES= I18N_Message.php I18N_Message_Translate.php \
I18N_Message_Translate.tpl I18N_Negotiator.php
do-install:
@${MKDIR} ${PEARDIR}/I18N
.for FILE in ${MANIFEST}
@${CP} -p ${WRKSRC}/${FILE} ${PEARDIR}/I18N
.endfor
@${CHMOD} a-x ${PEARDIR}/I18N/*
@${CP} -Rp ${WRKSRC}/Messages ${PEARDIR}/I18N
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/I18N
@${CHMOD} a-x ${PEARDIR}/I18N/Messages/*
.if !defined(NOPORTDOCS)
.for FILE in ${EXAMPLES}
@${INSTALL_DATA} ${WRKSRC}/examples/${FILE} ${EXAMPLESDIR}
.endfor
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
.endif
post-install:
# Register a new package
@${PEAR} install -r -f ${WRKDIR}/package.xml
.include <bsd.port.post.mk>
|