blob: 2eac2069544df6e0b2bc2eea8c0aea783b71965d (
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
|
# Created by: Jaeho Shin <netj@sparcs.kaist.ac.kr>
# $FreeBSD$
PORTNAME= nml
PORTVERSION= 0.92b
CATEGORIES= lang
MASTER_SITES= http://ropas.snu.ac.kr/n/ \
http://sparcs.kaist.ac.kr/~netj/n/ \
http://ropas.kaist.ac.kr/n/
MAINTAINER= ports@FreeBSD.org
COMMENT= Dialect/harmony of Standard ML of New Jersey and Objective Caml
WRKSRC= ${WRKDIR}/${PORTNAME}-0.92
ONLY_FOR_ARCHS= i386
MAKE_JOBS_UNSAFE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+=--prefix ${PREFIX}
USES= gmake
ALL_TARGET= all opt opt.opt
INSTALL_TARGET= install installopt
OPTIONS_DEFINE= DOCS
post-patch:
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
${REINPLACE_CMD} -e 's|gcc|${CC}|'
@${REINPLACE_CMD} -e '/freebsd/s/3-9/0-9/; \
/aspp=/s|gcc|${CC}|; /mksharedlib=/s|gcc|${CC}|' \
${WRKSRC}/configure
do-install:
${DO_MAKE_BUILD} -C ${WRKSRC} PREFIX="${STAGEDIR}${PREFIX}" ${INSTALL_TARGET}
@${REINPLACE_CMD} -i '' -e 's|${STAGEDIR}||' ${STAGEDIR}${PREFIX}/lib/nml/ld.conf
@${MKDIR} ${STAGEDIR}${DATADIR}/contrib/emacs
@${MKDIR} ${STAGEDIR}${DATADIR}/contrib/vim
${INSTALL_DATA} ${WRKSRC}/contrib/emacs/* ${STAGEDIR}${DATADIR}/contrib/emacs
${INSTALL_DATA} ${WRKSRC}/contrib/vim/* ${STAGEDIR}${DATADIR}/contrib/vim
.for i in ncamlrun nmlc nlex nmakegen nyacc nmlo
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/$i
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Changes ${WRKSRC}/LICENSE ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|