Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 May 2013 14:18:20 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r319494 - in head/games/xpipeman: . files
Message-ID:  <201305311418.r4VEIKC6018673@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Fri May 31 14:18:20 2013
New Revision: 319494
URL: http://svnweb.freebsd.org/changeset/ports/319494

Log:
  - Trim Makefile header
  - Unbreak with clang
  - Respect PREFIX
  
  Approved by:	miwi, eadler (mentors, implicit)

Modified:
  head/games/xpipeman/Makefile
  head/games/xpipeman/files/patch-ab
  head/games/xpipeman/files/patch-ac

Modified: head/games/xpipeman/Makefile
==============================================================================
--- head/games/xpipeman/Makefile	Fri May 31 14:04:11 2013	(r319493)
+++ head/games/xpipeman/Makefile	Fri May 31 14:18:20 2013	(r319494)
@@ -1,15 +1,11 @@
-# New ports collection makefile for:    xpipeman
-# Date created:         2 Jan 1995
-# Whom:                 swallace
-#
+# Created by: swallace
 # $FreeBSD$
-#
 
 PORTNAME=	xpipeman
 PORTVERSION=	1.0
 PORTREVISION=	3
 CATEGORIES=	games
-MASTER_SITES=	${MASTER_SITE_SUNSITE}
+MASTER_SITES=	SUNSITE
 MASTER_SITE_SUBDIR=	games/strategy
 DISTNAME=	${PORTNAME}
 EXTRACT_SUFX=	.tar.Z
@@ -23,8 +19,14 @@ ONLY_FOR_ARCHS=	i386 amd64
 USE_IMAKE=	yes
 USE_XORG=	x11 xaw xext xmu xt sm ice
 MAN6=		xpipeman.6
-
-post-install:
+MANCOMPRESSED=	no
+CFLAGS+=	-Wno-error=return-type
+BINGRP=		games
+BINMODE=	2555
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/xpipeman ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/xpipeman.man ${MANPREFIX}/man/man6/xpipeman.6
 	${INSTALL} -c -g games -m 664 ${FILESDIR}/xpipescores ${PREFIX}/lib/X11
 
 .include <bsd.port.mk>

Modified: head/games/xpipeman/files/patch-ab
==============================================================================
--- head/games/xpipeman/files/patch-ab	Fri May 31 14:04:11 2013	(r319493)
+++ head/games/xpipeman/files/patch-ab	Fri May 31 14:18:20 2013	(r319494)
@@ -1,9 +1,9 @@
---- Imakefile.orig	Tue Jul 28 19:56:27 1992
-+++ Imakefile	Mon Jul 22 14:05:57 2002
+--- ./Imakefile.orig	1992-07-28 23:56:27.000000000 +0000
++++ ./Imakefile	2013-05-31 12:26:22.000000000 +0000
 @@ -1,7 +1,7 @@
  
 -     SCORE_FILE = -DSCORE_FILE=\"/usr/games/lib/xpipescores\"
-+     SCORE_FILE = -DSCORE_FILE=\"$(LIBDIR)/xpipescores\"
++     SCORE_FILE = -DSCORE_FILE=\"$(PREFIX)/lib/X11/xpipescores\"
        MAXSCORES = -DMAXSCORES=20
 -        DEFINES = $(SCORE_FILE) $(MAXSCORES) -DSYSV
 +        DEFINES = $(SCORE_FILE) $(MAXSCORES)

Modified: head/games/xpipeman/files/patch-ac
==============================================================================
--- head/games/xpipeman/files/patch-ac	Fri May 31 14:04:11 2013	(r319493)
+++ head/games/xpipeman/files/patch-ac	Fri May 31 14:18:20 2013	(r319494)
@@ -1,6 +1,6 @@
---- main.c.orig	2011-02-02 19:11:34.000000000 +0100
-+++ main.c	2011-01-24 17:44:29.000000000 +0100
-@@ -146,16 +146,6 @@
+--- ./main.c.orig	1991-09-13 20:32:10.000000000 +0000
++++ ./main.c	2013-05-31 10:39:59.000000000 +0000
+@@ -146,21 +146,11 @@
  	{"-scorefile","scorefile",XrmoptionSepArg, NULL },
  };
  
@@ -17,6 +17,12 @@
  
  /*----------------------------------------------------------------------*/
  
+ main(argc, argv)
+-  unsigned int argc;
++  int argc;
+   char **argv;
+ {
+   Arg args[1];
 @@ -168,6 +158,17 @@
    Widget quit_command,
  	 new_game_command;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305311418.r4VEIKC6018673>