1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/lang/nickle/Makefile
Alexey Dokuchaev 0969105982 - Drop the article from COMMENT line, sort the knobs
- Convert USE_GMAKE to USES, expand ${PTHREAD_LIBS}
- Stagify and unmute copying of examples while here
2013-11-18 13:51:51 +00:00

37 lines
978 B
Makefile

# Created by: Christopher Elkins <chrise@scardini.com>
# $FreeBSD$
PORTNAME= nickle
PORTVERSION= 2.77
CATEGORIES= lang
MASTER_SITES= http://www.nickle.org/release/
MAINTAINER= ports@FreeBSD.org
COMMENT= Numeric-oriented programming language
LICENSE= MIT
USES= gmake ncurses
GNU_CONFIGURE= yes
# Nickle now has bindings which are likely to pull in libraries that need
# libpthread. Link to it now explicitly, or it wouldn't work at runtime.
LDFLAGS+= -pthread
OPTIONS_DEFINE= EXAMPLES
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS/s|examples|| ; s| -O2||' \
${WRKSRC}/Makefile.in
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${FIND} . ! \( -name "*Makefile*" -or \
-name "*.sgml" \) | ${CPIO} -pdm -L \
-R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${EXAMPLESDIR})
@${FIND} ${STAGEDIR}${EXAMPLESDIR} -type d | ${XARGS} ${CHMOD} a+rx
@${FIND} ${STAGEDIR}${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} \
${SHAREMODE}
.include <bsd.port.mk>