svn commit: r358340 - in head/games/xtris: . files

Jason E. Hale jhale at FreeBSD.org
Thu Jun 19 05:34:09 UTC 2014


Author: jhale
Date: Thu Jun 19 05:34:08 2014
New Revision: 358340
URL: http://svnweb.freebsd.org/changeset/ports/358340
QAT: https://qat.redports.org/buildarchive/r358340/

Log:
  - Support staging (it was easier to define a new do-install target
    than further patching the source Makefile)
  - Add LICENSE (GPLv2)
  - Rename patch to reflect the file it applies to
  - Whitespace cleanup
  
  Approved by:	portmgr (blanket approval)

Added:
  head/games/xtris/files/patch-Makefile
     - copied, changed from r358338, head/games/xtris/files/patch-aa
Deleted:
  head/games/xtris/files/patch-aa
Modified:
  head/games/xtris/Makefile
  head/games/xtris/pkg-plist

Modified: head/games/xtris/Makefile
==============================================================================
--- head/games/xtris/Makefile	Thu Jun 19 05:26:06 2014	(r358339)
+++ head/games/xtris/Makefile	Thu Jun 19 05:34:08 2014	(r358340)
@@ -8,20 +8,25 @@ CATEGORIES=	games ipv6
 MASTER_SITES=	http://www.iagora.com/~espel/xtris/ \
 		ftp://quatramaran.ens.fr/pub/orabidoo/
 
-PATCH_SITES=	ftp://ftp.42.org/pub/orphan/	
+PATCH_SITES=	ftp://ftp.42.org/pub/orphan/
 PATCHFILES=	xtris-1.15-v6-19991218.diff.gz
 PATCH_DIST_STRIP=	-p1
 
 MAINTAINER=	sec at 42.org
 COMMENT=	Multi-player version of a popular game for the X Window system
 
+LICENSE=	GPLv2
+
 RESTRICTED=	Possible trademark infringement
 WRKSRC=		${WRKDIR}/xtris
 USE_XORG=	x11 xext
 
-MAN6=		xtris.6 xtserv.6 xtbot.6
-
 MAKE_ENV=	IPV6_CFLAGS="-DINET6"
 
-NO_STAGE=	yes
+do-install:
+.for i in xtbot xtris xtserv
+	${INSTALL_PROGRAM} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/${i}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
+.endfor
+
 .include <bsd.port.mk>

Copied and modified: head/games/xtris/files/patch-Makefile (from r358338, head/games/xtris/files/patch-aa)
==============================================================================
--- head/games/xtris/files/patch-aa	Thu Jun 19 02:49:55 2014	(r358338, copy source)
+++ head/games/xtris/files/patch-Makefile	Thu Jun 19 05:34:08 2014	(r358340)
@@ -1,11 +1,11 @@
---- Makefile.orig	Mon Jan 17 13:33:15 2000
-+++ Makefile	Mon Jan 17 13:36:11 2000
+--- ./Makefile.orig	2014-06-19 00:53:36.000000000 -0400
++++ ./Makefile	2014-06-19 01:00:11.000000000 -0400
 @@ -8,27 +8,27 @@
  ###################
  
  # change this to your favorite ANSI C compiler
 -CC = gcc
-+CC? = gcc
++CC ?= cc
  
  # change this to the directory where you want the xtris binaries installed
 -BINDIR = /usr/local/bin
@@ -25,8 +25,8 @@
  # specify X11 cflags and libdir if your system needs it
 -XCFLAGS = #-I/usr/X11/include
 -XLIBDIR = #-L/usr/X11/lib
-+XCFLAGS = -I${PREFIX}/include
-+XLIBDIR = -L${PREFIX}/lib
++XCFLAGS = -I${LOCALBASE}/include
++XLIBDIR = -L${LOCALBASE}/lib
  
  # IPv6 Settings
 -IPV6_CFLAGS = #-DINET6 #-I/usr/inet6/include

Modified: head/games/xtris/pkg-plist
==============================================================================
--- head/games/xtris/pkg-plist	Thu Jun 19 05:26:06 2014	(r358339)
+++ head/games/xtris/pkg-plist	Thu Jun 19 05:34:08 2014	(r358340)
@@ -1,3 +1,6 @@
+bin/xtbot
 bin/xtris
 bin/xtserv
-bin/xtbot
+man/man6/xtbot.6.gz
+man/man6/xtris.6.gz
+man/man6/xtserv.6.gz


More information about the svn-ports-head mailing list