blob: b7f82beffc75ddf098b0dbf281cdbf1488e4cea2 (
plain)
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
45
46
|
PORTNAME= netscript
PORTVERSION= 1.7.1
PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= SF \
http://fakehalo.deadpig.org/%SUBDIR%/
MAINTAINER= ports@FreeBSD.org
COMMENT= Portable/multi-platform lightweight TCP socket scripting
WWW= http://netscript.sourceforge.net/
LICENSE= PD
USES= ncurses shebangfix tar:tgz
SHEBANG_FILES= examples/*.ruleset examples/gui/*.ruleset \
examples/ncurses/*.ruleset
SHEBANG_LANG= netscript
netscript_OLD_CMD= /usr/bin/netscript
netscript_CMD= ${LOCALBASE}/bin/netscript
CFLAGS+= -DNCURSES -DARPA -DBSD_T -Wl,--export-dynamic
LDFLAGS+= -lncurses
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/netscript
OPTIONS_DEFINE= DOCS EXAMPLES
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} netscript.c \
-o netscript ${LDFLAGS})
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/netscript ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
|