From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 16 18:10:11 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 DA4307A9 for ; Mon, 16 Dec 2013 18:10:11 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 B92F41952 for ; Mon, 16 Dec 2013 18:10:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBGIABmv016127 for ; Mon, 16 Dec 2013 18:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBGIAB7V016126; Mon, 16 Dec 2013 18:10:11 GMT (envelope-from gnats) Resent-Date: Mon, 16 Dec 2013 18:10:11 GMT Resent-Message-Id: <201312161810.rBGIAB7V016126@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 175BD3A0 for ; Mon, 16 Dec 2013 18:03:27 +0000 (UTC) Received: from omta01.auone-net.jp (mail-or0-f67.auone-net.jp [106.187.230.67]) by mx1.freebsd.org (Postfix) with ESMTP id DD4F3186C for ; Mon, 16 Dec 2013 18:03:26 +0000 (UTC) Received: from coppermine.my.domain (ZT030106.ppp.dion.ne.jp [59.128.30.106]) by omta01.auone-net.jp (au one net mail) with ESMTP id 34724980032 for ; Tue, 17 Dec 2013 03:03:25 +0900 (JST) Message-Id: <20131217024835.96891ea3a3c82fa0e230ba2a@yahoo.com> Date: Tue, 17 Dec 2013 02:48:35 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/184843: games/netspades: Fix build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 18:10:12 -0000 >Number: 184843 >Category: ports >Synopsis: games/netspades: Fix build with clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Dec 16 18:10:11 UTC 2013 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p4 i386 >Organization: >Environment: >Description: - Fix build with clang - Update MASTER_SITES - Add OPTIONS for GTK1 and SLANG support - Support PLIST_FILES Remove file: pkg-plist >How-To-Repeat: >Fix: diff -urN /usr/ports/games/netspades/Makefile games/netspades/Makefile --- /usr/ports/games/netspades/Makefile 2013-11-06 22:00:42.000000000 +0900 +++ games/netspades/Makefile 2013-12-17 00:00:00.000000000 +0900 @@ -3,22 +3,67 @@ 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 + +.include -MAN6= gspades.6 slspades.6 spadesd.6 +.if ${PORT_OPTIONS:MGTK1} +USE_GNOME+= gtk12 +DESKTOP_ENTRIES="GSpades" "" "" "gspades" "" "" +PLIST_FILES+= bin/gspades man/man6/gspades.6.gz +.else +CONFIGURE_ARGS+=--without-gtk +.endif + +.if ${PORT_OPTIONS:MSLANG} +USES+= readline +LIB_DEPENDS+= libslang.so:${PORTSDIR}/devel/libslang2 +LDFLAGS+= -ltermcap +PLIST_FILES+= bin/slspades man/man6/slspades.6.gz +.else +CONFIGURE_ARGS+=--without-slang +.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 diff -urN /usr/ports/games/netspades/pkg-plist games/netspades/pkg-plist --- /usr/ports/games/netspades/pkg-plist 2013-11-06 22:00:42.000000000 +0900 +++ games/netspades/pkg-plist 1970-01-01 09:00:00.000000000 +0900 @@ -1,3 +0,0 @@ -bin/gspades -bin/slspades -bin/spadesd >Release-Note: >Audit-Trail: >Unformatted: