mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
9cd5998520
- Convert to new options framework - Use shebangfix for rulesets - Support staging - Switch to PLIST_FILES PR: ports/184842 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= netscript
|
|
PORTVERSION= 1.7.1
|
|
PORTREVISION= 3
|
|
CATEGORIES= net
|
|
MASTER_SITES= SF \
|
|
http://fakehalo.deadpig.org/%SUBDIR%/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Portable/multi-platform lightweight TCP socket scripting
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES GTK1
|
|
|
|
USES= ncurses shebangfix
|
|
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+= -lcurses
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
PLIST_FILES= bin/netscript
|
|
|
|
GTK1_USE= GNOME=gtk12
|
|
GTK1_CFLAGS= -DGTK
|
|
GTK1_CPPFLAGS= $$(gtk-config --cflags gthread)
|
|
GTK1_LDFLAGS= $$(gtk-config --libs gthread)
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} netscript.c \
|
|
-o netscript ${LDFLAGS})
|
|
|
|
do-install:
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} netscript \
|
|
${STAGEDIR}${PREFIX}/bin)
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} README \
|
|
${STAGEDIR}${DOCSDIR})
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
|
|
${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
.include <bsd.port.mk>
|