1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
Approved by:	portmgr@
This commit is contained in:
Vanilla I. Shu 2014-06-23 14:07:23 +00:00
parent b93871df46
commit 63f3372339
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358957

View File

@ -23,27 +23,23 @@ PLIST_SUB= PHAMMDIR=${PHAMMDIR}
PORTDOCS= CHANGELOG INSTALL README LICENSE THANKS
NO_STAGE= yes
.include <bsd.port.pre.mk>
do-install:
@${MKDIR} ${PREFIX}/${PHAMMDIR}
@${MKDIR} ${EXAMPLESDIR}
@${CP} -Rv ${WRKSRC}/examples/* ${EXAMPLESDIR}
@${CP} -Rv ${SCHEMADIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/index.php ${PREFIX}/${PHAMMDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${PHAMMDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${CP} -Rv ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
@${CP} -Rv ${SCHEMADIR} ${STAGEDIR}${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/index.php ${STAGEDIR}${PREFIX}/${PHAMMDIR}
@for d in `${FIND} ${WRKSRC} -type d -depth 1 | ${SORT} -r | \
${EGREP} -v '(examples|cfg|schema|debian|server)'` ; do \
${CP} -Rv $$d ${PREFIX}/${PHAMMDIR}; \
${CP} -Rv $$d ${STAGEDIR}${PREFIX}/${PHAMMDIR}; \
done;
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>