Lines 7-51
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= mailparse |
8 |
PORTNAME= mailparse |
9 |
PORTVERSION= 0.9.1 |
9 |
PORTVERSION= 0.9.1 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= mail www |
11 |
CATEGORIES= mail www |
11 |
MASTER_SITES= http://pear.php.net/get/ |
|
|
12 |
PKGNAMEPREFIX= pear- |
13 |
EXTRACT_SUFX= .tgz |
14 |
DIST_SUBDIR= PEAR |
15 |
|
12 |
|
16 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
17 |
COMMENT= PEAR classes to create and decode MIME messages |
14 |
COMMENT= PEAR classes to create and decode MIME messages |
18 |
|
15 |
|
19 |
BUILD_DEPENDS= ${LOCALBASE}/bin/phpize:${PORTSDIR}/www/mod_php4 \ |
16 |
BUILD_DEPENDS= ${LOCALBASE}/bin/phpize:${PORTSDIR}/lang/php4 \ |
20 |
${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR |
17 |
autoconf:${PORTSDIR}/devel/autoconf \ |
21 |
RUN_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR |
18 |
autoconf213:${PORTSDIR}/devel/autoconf213 \ |
22 |
|
19 |
automake:${PORTSDIR}/devel/automake \ |
23 |
USE_AUTOMAKE= yes |
20 |
automake14:${PORTSDIR}/devel/automake14 \ |
24 |
USE_AUTOCONF= yes |
21 |
${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR |
|
|
22 |
RUN_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR |
25 |
|
23 |
|
26 |
.include <bsd.port.pre.mk> |
24 |
.include <bsd.port.pre.mk> |
|
|
25 |
.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common" |
27 |
|
26 |
|
28 |
# Don't call autoconf directly, ./buildconf does this |
27 |
# Don't call autoconf directly, ./buildconf does this |
29 |
GNU_CONFIGURE= yes |
28 |
GNU_CONFIGURE= yes |
30 |
USE_AUTOCONF= no |
29 |
USE_AUTOCONF= no |
31 |
USE_LIBTOOL= no |
|
|
32 |
USE_REINPLACE= yes |
30 |
USE_REINPLACE= yes |
33 |
|
31 |
|
34 |
REINPLACE_ARGS= -i.before_mailparse |
32 |
REINPLACE_ARGS= -i.before_mailparse |
35 |
|
33 |
|
36 |
.if exists(${LOCALBASE}/bin/php-config) |
34 |
.if exists(${LOCALBASE}/bin/php-config) |
37 |
PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix |
|
|
38 |
EXT_DIR!= ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \ |
35 |
EXT_DIR!= ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \ |
39 |
"s:${PHP_BASE}/::" |
36 |
"s:${PHP_BASE}/::" |
40 |
.else |
|
|
41 |
PHP_BASE= ${LOCALBASE} |
42 |
.endif |
37 |
.endif |
43 |
PEAR= ${LOCALBASE}/bin/pear |
|
|
44 |
LPHP_LIB= lib/php |
45 |
PHP_DIR?= ${LOCALBASE}/etc |
38 |
PHP_DIR?= ${LOCALBASE}/etc |
46 |
PHP_INI= ${PHP_DIR}/php.ini |
39 |
PHP_INI= ${PHP_DIR}/php.ini |
47 |
PEARDIR= ${PHP_BASE}/${LPHP_LIB} |
40 |
PLIST_SUB+= EXTDIR=${EXT_DIR} |
48 |
PLIST_SUB= EXTDIR=${EXT_DIR} PEARDIR=${LPHP_LIB} |
|
|
49 |
|
41 |
|
50 |
DOCSDIR= ${PEARDIR}/docs/${PORTNAME} |
42 |
DOCSDIR= ${PEARDIR}/docs/${PORTNAME} |
51 |
DOCS= CREDITS README try.php |
43 |
DOCS= CREDITS README try.php |
Lines 62-68
Link Here
|
62 |
${FALSE} ; \ |
54 |
${FALSE} ; \ |
63 |
fi |
55 |
fi |
64 |
|
56 |
|
65 |
post-install: |
57 |
post-install-script: |
66 |
@${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/mailparse.so |
58 |
@${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/mailparse.so |
67 |
# Configure extension_dir |
59 |
# Configure extension_dir |
68 |
@if [ ! -f ${PHP_INI} ]; then \ |
60 |
@if [ ! -f ${PHP_INI} ]; then \ |
Lines 85-91
Link Here
|
85 |
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR} |
77 |
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR} |
86 |
@${ECHO_MSG} "===> Examples installed in ${TESTDIR}." |
78 |
@${ECHO_MSG} "===> Examples installed in ${TESTDIR}." |
87 |
.endif |
79 |
.endif |
88 |
# Register a new package |
|
|
89 |
@${PEAR} install -r -f ${WRKDIR}/package.xml |
90 |
|
80 |
|
91 |
.include <bsd.port.post.mk> |
81 |
.include <bsd.port.post.mk> |