blob: 7f0335e9a5d390e819ecd07100c9967a35ea6c6c (
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-Archive_Tar
# Date created: 28 November 2002
# Whom: Thierry Thomas (<thierry@pompo.net>)
#
# $FreeBSD$
#
PORTNAME= Archive_Tar
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= archivers www
MASTER_SITES= http://pear.php.net/get/
PKGNAMEPREFIX= pear-
EXTRACT_SUFX= .tgz
DIST_SUBDIR= PEAR
MAINTAINER= ports@FreeBSD.org
COMMENT= PEAR tar file management class
COMMENT= PEAR tar file management class
BUILD_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS}
NO_BUILD= yes
.include <bsd.port.pre.mk>
.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}
DOCSDIR= ${PEARDIR}/docs/Archive_Tar
do-install:
@${MV} ${PEARDIR}/Archive ${PEARDIR}/Archive.dist
@${CP} -Rp ${WRKSRC}/Archive ${PEARDIR}
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Archive
.if !defined(NOPORTDOCS)
@${MV} ${DOCSDIR} ${DOCSDIR}.dist
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/Archive_Tar.txt ${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
post-install:
# Register a new package
@${PEAR} upgrade -r -f ${WRKDIR}/package.xml
.include <bsd.port.post.mk>
|