|
Lines 15-46
Link Here
|
| 15 |
BUILD_DEPENDS= ${PEARDIR}/Net/Socket.php:${PORTSDIR}/net/pear-Net_Socket |
15 |
BUILD_DEPENDS= ${PEARDIR}/Net/Socket.php:${PORTSDIR}/net/pear-Net_Socket |
| 16 |
RUN_DEPENDS= ${BUILD_DEPENDS} |
16 |
RUN_DEPENDS= ${BUILD_DEPENDS} |
| 17 |
|
17 |
|
|
|
18 |
CATEGORY= Net |
| 19 |
FILES= NNTP.php NNTP/Protocol.php NNTP/Header.php NNTP/Message.php |
| 20 |
EXAMPLES= README read.php group.php index.php |
| 21 |
_EXAMPLESDIR= examples/news.php.net |
| 22 |
|
| 18 |
.include <bsd.port.pre.mk> |
23 |
.include <bsd.port.pre.mk> |
| 19 |
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common" |
24 |
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common" |
| 20 |
|
|
|
| 21 |
LIB_FILES= NNTP/Realtime.php NNTP/Protocol.php NNTP/Header.php NNTP/Message.php |
| 22 |
PORTDOCS= README |
| 23 |
|
| 24 |
.if defined(NOPORTEXAMPLES) |
| 25 |
PLIST_SUB+= PORTEXAMPLES="@comment " |
| 26 |
.else |
| 27 |
PLIST_SUB+= PORTEXAMPLES="" |
| 28 |
.endif |
| 29 |
|
| 30 |
do-install: |
| 31 |
@${MKDIR} ${PEARDIR}/Net/NNTP |
| 32 |
@${CP} -p ${WRKSRC}/NNTP.php ${PEARDIR}/Net |
| 33 |
.for FILE in ${LIB_FILES} |
| 34 |
@${CP} -p ${WRKSRC}/${FILE} ${PEARDIR}/Net/NNTP |
| 35 |
.endfor |
| 36 |
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Net |
| 37 |
.if !(NOPORTEXAMPLES) |
| 38 |
@${MKDIR} ${EXAMPLESDIR} |
| 39 |
@${INSTALL_DATA} ${WRKSRC}/examples/news.php.net/*.php ${EXAMPLESDIR} |
| 40 |
.endif |
| 41 |
.if !defined(NOPORTDOCS) |
| 42 |
@${MKDIR} ${DOCSDIR} |
| 43 |
@${INSTALL_DATA} ${WRKSRC}/examples/news.php.net/${PORTDOCS} ${DOCSDIR} |
| 44 |
.endif |
| 45 |
|
| 46 |
.include <bsd.port.post.mk> |
25 |
.include <bsd.port.post.mk> |