blob: 6faa45dc4aed35527e4dac2d26138cfe4810cd13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
# $FreeBSD$
PORTNAME= omake
DISTVERSION= 0.9.8.6-0.rc1
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://main.metaprl.org/download/omake/
MAINTAINER= ports@FreeBSD.org
COMMENT= Flexible build system
BROKEN= unfetchable
DEPRECATED= Broken for more than 6 months
EXPIRATION_DATE= 2016-07-04
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
check regression-test test: build
@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>
|