Date: Thu, 26 Dec 2013 13:10:50 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r337495 - branches/2014Q1/net/netscript Message-ID: <201312261310.rBQDAoBc086381@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Thu Dec 26 13:10:49 2013 New Revision: 337495 URL: http://svnweb.freebsd.org/changeset/ports/337495 Log: MFH: r337410 - Fix build on -current - 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> Approved by: portmgr (implicit) Deleted: branches/2014Q1/net/netscript/pkg-plist Modified: branches/2014Q1/net/netscript/Makefile (contents, props changed) Directory Properties: branches/2014Q1/ (props changed) Modified: branches/2014Q1/net/netscript/Makefile ============================================================================== --- branches/2014Q1/net/netscript/Makefile Thu Dec 26 13:09:58 2013 (r337494) +++ branches/2014Q1/net/netscript/Makefile Thu Dec 26 13:10:49 2013 (r337495) @@ -3,41 +3,48 @@ PORTNAME= netscript PORTVERSION= 1.7.1 -PORTREVISION= 2 +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 -WANT_GNOME= yes - -NO_STAGE= yes -.include <bsd.port.pre.mk> - -.if ${HAVE_GNOME:Mgtk12}!="" -USE_GNOME+= gtk12 -PKGNAMESUFFIX= -gtk -ALL_TARGET= gbsd -.else -ALL_TARGET= bsd -.endif +OPTIONS_DEFINE= DOCS EXAMPLES GTK1 -post-patch: - @${REINPLACE_CMD} -e "s,gtk-config,${GTK_CONFIG},g" ${WRKSRC}/Makefile +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: - ${INSTALL_PROGRAM} ${WRKSRC}/netscript ${PREFIX}/bin -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - @${MKDIR} ${EXAMPLESDIR} - ${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR} - @${CHMOD} -R og+r ${EXAMPLESDIR} - @${CHMOD} og+x ${EXAMPLESDIR}/gui ${EXAMPLESDIR}/ncurses -.endif + (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.post.mk> +.include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312261310.rBQDAoBc086381>