blob: 64472d0a0a65a2d81e3943b65c1da432b9cfb1c7 (
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
|
# Created by: Chuck Robey <chuckr@FreeBSD.org>
# $FreeBSD$
PORTNAME= mosml
PORTVERSION= 2.10.1
DISTVERSIONPREFIX= ver-
CATEGORIES= lang
MAINTAINER= johans@FreeBSD.org
COMMENT= Lightweight implementation of Standard ML
LIB_DEPENDS= libgmp.so:math/gmp \
libgdbm.so:databases/gdbm
GH_ACCOUNT= kfl
USE_GITHUB= yes
BROKEN_powerpc64= Does not build
RESTRICTED= Restrictions on for-profit distribution
USES= compiler:features gmake perl5
ALL_TARGET= world
MAKE_ARGS= ADDRUNLIBS= \
CC="${CC}" \
CPP="${CPP} -P -traditional -Dunix -Umsdos" \
DOCSDIR="${DOCSDIR}" \
DYNLD="${CC} -shared" \
LD="${CC}" \
LD_RUN_PATH="${PREFIX}/lib/mosml" \
MOSMLHOME="${MOSMLHOME}" \
STRIP="${STRIP_CMD}"
WRKSRC_SUBDIR= src
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} 's/make /$$(MAKE) /' ${WRKSRC}/doc/Makefile \
${WRKSRC}/doc/helpsigs/Makefile
post-install:
${INSTALL_DATA} ${WRKSRC}/../copyrght/copyrght.att \
${WRKSRC}/../copyrght/copyrght.cl \
${WRKSRC}/../copyrght/gpl2 \
${WRKSRC}/../README ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/../examples && ${COPYTREE_SHARE} . "${STAGEDIR}${EXAMPLESDIR}" \
'-not ( -name *\.orig -o -name *\.bak -o -name *\.w32 )'
@${REINPLACE_CMD} -i '' -e 's|${STAGEDIR}||' \
${STAGEDIR}${PREFIX}/lib/mosml/header
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mosml/lib*.so
.include <bsd.port.post.mk>
|