From owner-svn-ports-branches@FreeBSD.ORG Thu Dec 26 13:13:31 2013 Return-Path: Delivered-To: svn-ports-branches@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A449828D; Thu, 26 Dec 2013 13:13:31 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 766AB1F52; Thu, 26 Dec 2013 13:13:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBQDDVFv089468; Thu, 26 Dec 2013 13:13:31 GMT (envelope-from mat@svn.freebsd.org) Received: (from mat@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBQDDVOP089467; Thu, 26 Dec 2013 13:13:31 GMT (envelope-from mat@svn.freebsd.org) Message-Id: <201312261313.rBQDDVOP089467@svn.freebsd.org> From: Mathieu Arnold Date: Thu, 26 Dec 2013 13:13:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r337497 - branches/2014Q1/games/netspades X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 13:13:31 -0000 Author: mat Date: Thu Dec 26 13:13:30 2013 New Revision: 337497 URL: http://svnweb.freebsd.org/changeset/ports/337497 Log: MFH: r337413 - Fix build with clang - Update MASTER_SITES - Add LICENSE, desktop entry file - Add OPTIONS for GTK1 and SLANG support - Support staging - Switch to PLIST_FILES PR: ports/184843 Submitted by: KATO Tsuguru Approved by: portmgr (implicit) Deleted: branches/2014Q1/games/netspades/pkg-plist Modified: branches/2014Q1/games/netspades/Makefile Directory Properties: branches/2014Q1/ (props changed) Modified: branches/2014Q1/games/netspades/Makefile ============================================================================== --- branches/2014Q1/games/netspades/Makefile Thu Dec 26 13:11:44 2013 (r337496) +++ branches/2014Q1/games/netspades/Makefile Thu Dec 26 13:13:30 2013 (r337497) @@ -3,22 +3,64 @@ PORTNAME= NetSpades PORTVERSION= 4.2.0 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= games -MASTER_SITES= http://www.ece.rice.edu/~brentmh/spades/ +MASTER_SITES= TUCOWS/x11/entertain \ + http://www.ece.rice.edu/~brentmh/spades/ MAINTAINER= ports@FreeBSD.org COMMENT= Very popular card game for 1-4 players over a network -LIB_DEPENDS= slang.2:${PORTSDIR}/devel/libslang2 +LICENSE= GPLv2 # (or later) +OPTIONS_DEFINE= GTK1 SLANG +OPTIONS_DEFAULT= GTK1 SLANG GNU_CONFIGURE= yes -USE_GNOME= gtk12 + CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -ltermcap +LDFLAGS+= -L${LOCALBASE}/lib + +PLIST_FILES= bin/spadesd man/man6/spadesd.6.gz -MAN6= gspades.6 slspades.6 spadesd.6 +GTK1_USE= GNOME=gtk12 +GTK1_CONFIGURE_OFF= --without-gtk +GTK1_PLIST_FILES= bin/gspades man/man6/gspades.6.gz + +SLANG_USES= readline +SLANG_CONFIGURE_OFF= --without-slang +SLANG_LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2 +SLANG_LDFLAGS= -ltermcap +SLANG_PLIST_FILES= bin/slspades man/man6/slspades.6.gz + +.include + +.if ${PORT_OPTIONS:MGTK1} +DESKTOP_ENTRIES="GSpades" "" "" "gspades" "" "" +.endif + +post-patch: +.for i in engine_func.c gtk_connect.c listen.c sl_io.c + @${REINPLACE_CMD} -e \ + 's| log| ns_log|g' ${WRKSRC}/src/${i} +.endfor + +do-install: + (cd ${WRKSRC}/src && ${INSTALL_PROGRAM} spadesd \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} spadesd.6 \ + ${STAGEDIR}${MANPREFIX}/man/man6) +.if ${PORT_OPTIONS:MGTK1} + (cd ${WRKSRC}/src && ${INSTALL_PROGRAM} gspades \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} gspades.6 \ + ${STAGEDIR}${MANPREFIX}/man/man6) +.endif +.if ${PORT_OPTIONS:MSLANG} + (cd ${WRKSRC}/src && ${INSTALL_PROGRAM} slspades \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} slspades.6 \ + ${STAGEDIR}${MANPREFIX}/man/man6) +.endif -NO_STAGE= yes .include