freebsd-ports/lang/nml/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

51 lines
1.4 KiB
Makefile

# 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>