2012-11-09 17:12:53 +01:00
|
|
|
# Created by: Christopher Elkins <chrise@scardini.com>
|
2001-04-17 10:32:28 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nickle
|
2012-11-09 17:12:53 +01:00
|
|
|
PORTVERSION= 2.77
|
2001-04-17 10:32:28 +02:00
|
|
|
CATEGORIES= lang
|
2001-04-24 16:11:31 +02:00
|
|
|
MASTER_SITES= http://www.nickle.org/release/
|
2001-04-17 10:32:28 +02:00
|
|
|
|
2012-02-15 03:23:01 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2008-08-07 14:25:26 +02:00
|
|
|
COMMENT= A numeric oriented programming language
|
2001-04-17 10:32:28 +02:00
|
|
|
|
2012-02-15 03:23:01 +01:00
|
|
|
LICENSE= MIT
|
|
|
|
|
2012-07-20 23:37:14 +02:00
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
2012-07-19 19:40:38 +02:00
|
|
|
|
|
|
|
USE_NCURSES= yes
|
2002-01-09 03:19:19 +01:00
|
|
|
USE_GMAKE= yes
|
2001-04-17 10:32:28 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2012-03-24 17:44:31 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2001-04-17 10:32:28 +02:00
|
|
|
|
2005-02-11 00:00:08 +01:00
|
|
|
# Nickle now has bindings which are likely to pull in libraries that need
|
2012-02-15 03:23:01 +01:00
|
|
|
# libpthread. Link to it now explicitly, or it wouldn't work at runtime.
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
2005-02-11 00:00:08 +01:00
|
|
|
|
2004-03-19 20:38:07 +01:00
|
|
|
MAN1= nickle.1
|
2001-04-17 10:32:28 +02:00
|
|
|
|
2012-07-19 19:40:38 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-03-24 17:44:31 +01:00
|
|
|
post-patch:
|
2012-07-19 19:40:38 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^SUBDIRS/s|examples|| ; \
|
|
|
|
s| -O2||' ${WRKSRC}/Makefile.in
|
2012-03-24 17:44:31 +01:00
|
|
|
|
|
|
|
post-install:
|
2012-07-19 19:40:38 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2012-03-24 17:44:31 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@(cd ${WRKSRC}/examples && ${FIND} . ! \( -name "*Makefile*" -or \
|
2012-07-19 19:40:38 +02:00
|
|
|
-name "*.sgml" \) | ${CPIO} -pdm -L \
|
|
|
|
-R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR})
|
2012-03-24 17:44:31 +01:00
|
|
|
@${FIND} ${EXAMPLESDIR} -type d | ${XARGS} ${CHMOD} a+rx
|
|
|
|
@${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
|
|
.endif
|
|
|
|
|
2004-03-19 20:38:07 +01:00
|
|
|
.include <bsd.port.mk>
|