mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
bf9a306327
- Change my email
68 lines
2.0 KiB
Makefile
68 lines
2.0 KiB
Makefile
# New ports collection makefile for: cfg
|
|
# Date created: 2006-08-15
|
|
# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
|
|
#
|
|
# $MBSDlabs$
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cfg
|
|
PORTVERSION= 1.7.4
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.ocaml.info/ocaml_sources/
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
MAINTAINER= stas@FreeBSD.org
|
|
COMMENT= Library for manipulation of context-free grammars
|
|
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_OCAML= yes
|
|
USE_OCAML_FINDLIB=yes
|
|
USE_OCAML_WASH= yes
|
|
|
|
DOCS= README
|
|
DOCSDIR= ${TARGETDIR}/share/doc/ocaml/${PORTNAME}
|
|
EXAMPLESDIR= ${TARGETDIR}/share/examples/ocaml/${PORTNAME}
|
|
|
|
# XXX: exists untill it will be committed to bsd.port.mk
|
|
COPYTREE_SHARE= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
|
|
2>&1) && \
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
|
|
${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \
|
|
${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' --
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk"
|
|
|
|
post-extract:
|
|
# For nonstandard prefixes
|
|
.if !exists(${OCAMLFIND_DESTDIR})
|
|
${MKDIR} ${OCAMLFIND_DESTDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
|
|
${SED} "s,^${TARGETDIR}/,," >> ${TMPPLIST}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
|
|
@${FIND} ${EXAMPLESDIR}/ ! -type d | \
|
|
${SED} 's,^${TARGETDIR}/,,' >> ${TMPPLIST}
|
|
@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
|
|
${SED} 's,^${TARGETDIR}/,@dirrm ,' >> ${TMPPLIST}
|
|
@${FIND} ${DOCSDIR}/ ! -type d | \
|
|
${SED} 's,^${TARGETDIR}/,,' >> ${TMPPLIST}
|
|
@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
|
|
${SED} 's,^${TARGETDIR}/,@dirrm ,' >> ${TMPPLIST}
|
|
# XXX: temporary workaround for non-standard PREFIX
|
|
@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
|
|
>> ${TMPPLIST}
|
|
@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
|
|
>> ${TMPPLIST}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|