From owner-svn-ports-head@FreeBSD.ORG Fri Feb 8 01:57:40 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5EC9C61F; Fri, 8 Feb 2013 01:57:40 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 37AF0D87; Fri, 8 Feb 2013 01:57:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r181veha092520; Fri, 8 Feb 2013 01:57:40 GMT (envelope-from miwi@svn.freebsd.org) Received: (from miwi@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r181vdJZ092517; Fri, 8 Feb 2013 01:57:39 GMT (envelope-from miwi@svn.freebsd.org) Message-Id: <201302080157.r181vdJZ092517@svn.freebsd.org> From: Martin Wilke Date: Fri, 8 Feb 2013 01:57:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r311898 - in head/games/wmminichess: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2013 01:57:40 -0000 Author: miwi Date: Fri Feb 8 01:57:39 2013 New Revision: 311898 URL: http://svnweb.freebsd.org/changeset/ports/311898 Log: - Fix build with clang - Support PLIST_FILES PR: 175048 Submitted by: Ports Fury Added: head/games/wmminichess/files/patch-chess.c (contents, props changed) head/games/wmminichess/files/patch-xgen.c (contents, props changed) Deleted: head/games/wmminichess/files/patch-aa head/games/wmminichess/pkg-plist Modified: head/games/wmminichess/Makefile (contents, props changed) Modified: head/games/wmminichess/Makefile ============================================================================== --- head/games/wmminichess/Makefile Fri Feb 8 01:55:59 2013 (r311897) +++ head/games/wmminichess/Makefile Fri Feb 8 01:57:39 2013 (r311898) @@ -1,13 +1,9 @@ -# New ports collection makefile for: (wm)miniCHESS -# Date created: 24 Sep 1999 -# Whom: Will Andrews -# +# Created by: Will Andrews # $FreeBSD$ -# PORTNAME= wmminichess PORTVERSION= 0.8 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://web.cs.mun.ca/~gstarkes/wmaker/dockapps/files/ DISTNAME= miniCHESS-${PORTVERSION} @@ -16,14 +12,30 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Window Maker chess dockapp game LICENSE= GPLv2 # (or later) -LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= ${LOCALBASE}/bin/gnuchess:${PORTSDIR}/games/gnuchess -USE_GMAKE= YES USE_XORG= xpm -MAKE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ - LOCAL="${LOCALBASE}" MKDIR="${MKDIR}" \ - INSTALL_DATA="${INSTALL_DATA}" + +CPPFLAGS+= -I${LOCALBASE}/include -DENGINE=\"${LOCALBASE}/bin/gnuchessx\" +LDFLAGS+= -L${LOCALBASE}/lib -lXpm -lXext -lX11 + +PORTDOCS= README TODO +PLIST_FILES= bin/minichess + +.include + +do-build: + (cd ${WRKSRC} \ + && ${CC} ${CFLAGS} ${CPPFLAGS} -o minichess *.c ${LDFLAGS}) + +do-install: + (cd ${WRKSRC} && ${INSTALL_PROGRAM} minichess ${PREFIX}/bin) +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} +.for i in ${PORTDOCS} + (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) +.endfor +.endif .include Added: head/games/wmminichess/files/patch-chess.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/wmminichess/files/patch-chess.c Fri Feb 8 01:57:39 2013 (r311898) @@ -0,0 +1,11 @@ +--- chess.c.bak 1999-09-14 02:15:50.000000000 +0900 ++++ chess.c 2012-10-24 03:04:11.000000000 +0900 +@@ -1972,7 +1972,7 @@ + * + * RETURNS: N/A + */ +-void main(int argc, char* argv[]) ++int main(int argc, char* argv[]) + { + int toChild[2]; + int fromChild[2]; Added: head/games/wmminichess/files/patch-xgen.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/wmminichess/files/patch-xgen.c Fri Feb 8 01:57:39 2013 (r311898) @@ -0,0 +1,10 @@ +--- xgen.c.orig 1999-07-29 14:00:50.000000000 +0900 ++++ xgen.c 2012-10-24 03:05:24.000000000 +0900 +@@ -30,6 +30,7 @@ + */ + + #include ++#include + #include + #include + #include