cb037d3c98
- Bump PORTREVISION for shlib change Changes: https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES https://lists.gnu.org/archive/html/bug-bash/2016-09/msg00107.html https://lists.gnu.org/archive/html/bug-readline/2017-01/msg00002.html Differential Revision: https://reviews.freebsd.org/D11172 PR: 219947 Exp-run by: antoine
70 lines
1.8 KiB
Makefile
70 lines
1.8 KiB
Makefile
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= omake
|
|
DISTVERSION= 0.9.8.6-0.rc1
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://pkgs.fedoraproject.org/repo/pkgs/ocaml-omake/omake-0.9.8.6-0.rc1.tar.gz/fe39a476ef4e33b7ba2ca77a6bcaded2/ \
|
|
http://download.camlcity.org/download/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Flexible build system
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:C|-.*||}
|
|
USE_OCAML= yes
|
|
NO_OCAML_RUNDEPENDS=yes
|
|
USES= ncurses readline
|
|
MAKE_ENV= INSTALL_ROOT=${STAGEDIR}
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
INFO= omake-doc
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
#
|
|
# Dirty hack for PREFIX safety
|
|
#
|
|
@${REINPLACE_CMD} -E -e \
|
|
's|(getenv[[:space:]]+)LIBDIR|\1PREFLIBDIR|' ${WRKSRC}/mk/defaults
|
|
|
|
#
|
|
# Permissions safety
|
|
#
|
|
.for f in OMakefile doc/OMakefile src/main/OMakefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|cp -f -m 444|$$(BSD_INSTALL_DATA)| ; \
|
|
s|cp -f -m 555|$$(BSD_INSTALL_PROGRAM)|' ${WRKSRC}/${f}
|
|
.endfor
|
|
@${REINPLACE_CMD} -e 's| -j2 | |' ${WRKSRC}/Makefile
|
|
.if ${NCURSESBASE} == "/usr"
|
|
.for f in lib/configure/ncurses.om src/libmojave-external/cutil/lm_terminfo.c
|
|
@${REINPLACE_CMD} -E -e 's|ncurses/(term\.h)|\1|' ${WRKSRC}/${f}
|
|
.endfor
|
|
.endif
|
|
|
|
do-test:
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_ARGS} boot/omake check
|
|
@${FIND} -ds ${WRKSRC}/test -type f -name 'result.log' -print0 | \
|
|
${XARGS} -0tI @ ${CAT} @
|
|
|
|
bench: build
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_ARGS} boot/omake bench
|
|
|
|
post-install:
|
|
@(cd ${WRKSRC}/doc/info && ${INSTALL_DATA} omake-doc.info \
|
|
${STAGEDIR}${PREFIX}/${INFO_PATH})
|
|
@(cd ${WRKSRC}/doc/info && ${INSTALL_DATA} omake-doc.info-* \
|
|
${STAGEDIR}${PREFIX}/${INFO_PATH})
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@(cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.post.mk>
|