Update lang/erlang-java to version 18.3.3
[dports.git] / lang / nickle / Makefile
1 # Created by: Christopher Elkins <chrise@scardini.com>
2 # $FreeBSD$
3
4 PORTNAME=       nickle
5 PORTVERSION=    2.77
6 CATEGORIES=     lang
7 MASTER_SITES=   http://www.nickle.org/release/
8
9 MAINTAINER=     ports@FreeBSD.org
10 COMMENT=        Numeric-oriented programming language
11
12 LICENSE=        MIT
13
14 USES=           gmake ncurses readline
15 GNU_CONFIGURE=  yes
16
17 # Nickle now has bindings which are likely to pull in libraries that need
18 # libpthread.  Link to it now explicitly, or it wouldn't work at runtime.
19 LDFLAGS+=       -pthread
20
21 OPTIONS_DEFINE= EXAMPLES
22
23 post-patch:
24         @${REINPLACE_CMD} -e '/^SUBDIRS/s|examples|| ; s| -O2||' \
25                 ${WRKSRC}/Makefile.in
26
27 post-install:
28         @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
29         (cd ${WRKSRC}/examples && ${FIND} . ! \( -name "*Makefile*" -or \
30                 -name "*.sgml" \) | ${CPIO} -pdm -L \
31                 -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${EXAMPLESDIR})
32         @${FIND} ${STAGEDIR}${EXAMPLESDIR} -type d | ${XARGS} ${CHMOD} a+rx
33         @${FIND} ${STAGEDIR}${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} \
34                 ${SHAREMODE}
35
36 .include <bsd.port.mk>