blob: 944840e967de942e3bae96dae6e49a0665c0396b (
plain) (
blame)
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
|
# New ports collection makefile for: omake
# Date created: 2006-08-06
# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
#
# $MBSDlabs$
# $FreeBSD$
#
PORTNAME= omake
PORTVERSION= 0.9.8.1
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://omake.metaprl.org/downloads/ \
http://sunner.elcomnet.ru/~stas/
DISTNAME= omake-0.9.8.1-1
MAINTAINER= stas@FreeBSD.org
COMMENT= A flexible build system
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_OCAML= yes
NO_OCAML_RUNDEPENDS=yes
FETCH_CMD?= /usr/bin/fetch -Rr
.if !defined(NOPORTDOCS)
INFO= omake-doc
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500000 && exists(${LOCALBASE}/lib/libreadline.so.5)
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif
post-patch:
#
# Dirty hack for PREFIX safety
#
@${REINPLACE_CMD} -E -e "s,(getenv[[:space:]]+)LIBDIR,\1PREFLIBDIR," \
${WRKSRC}/mk/defaults
#
# Permissions safety
#
@${REINPLACE_CMD} -E -e "s,cp -f -m 444,\$$(BSD_INSTALL_DATA)," \
-e "s,cp -f -m 555,\$$(BSD_INSTALL_PROGRAM)," \
${WRKSRC}/OMakefile ${WRKSRC}/src/main/OMakefile \
${WRKSRC}/doc/OMakefile
#
# Readline code is deeply broken on 4
#
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -E -e \
"s,^(READLINE_ENABLED[[:space:]]*=[[:space:]]*).*,\1false," \
${WRKSRC}/mk/make_config ${WRKSRC}/mk/defaults
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/
@(cd ${WRKSRC}/doc/html/ && ${COPYTREE_SHARE} \* "${DOCSDIR}/")
@(cd ${WRKSRC}/doc/info/ \
&& ${COPYTREE_SHARE} \* "${PREFIX}/${INFO_PATH}/")
.endif
.include <bsd.port.post.mk>
|