blob: 7ba14e998b53cd3be59d648299faca2b77117430 (
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
|
# 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= A numeric oriented programming language
LICENSE= MIT
OPTIONS_DEFINE= EXAMPLES
USES= ncurses
USE_GMAKE= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= 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_LIBS}
MAN1= nickle.1
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e \
'/^SUBDIRS/s|examples|| ; \
s| -O2||' ${WRKSRC}/Makefile.in
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${FIND} . ! \( -name "*Makefile*" -or \
-name "*.sgml" \) | ${CPIO} -pdm -L \
-R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR})
@${FIND} ${EXAMPLESDIR} -type d | ${XARGS} ${CHMOD} a+rx
@${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.endif
.include <bsd.port.mk>
|