svn commit: r311856 - in head/games/starlanes: . files

Martin Wilke miwi at FreeBSD.org
Thu Feb 7 14:45:24 UTC 2013


Author: miwi
Date: Thu Feb  7 14:45:23 2013
New Revision: 311856
URL: http://svnweb.freebsd.org/changeset/ports/311856

Log:
  - Fix build with clang
  
  PR:		175041
  Submitted by:	ports fury

Deleted:
  head/games/starlanes/files/patch-aa
  head/games/starlanes/files/patch-ab
Modified:
  head/games/starlanes/Makefile   (contents, props changed)

Modified: head/games/starlanes/Makefile
==============================================================================
--- head/games/starlanes/Makefile	Thu Feb  7 14:43:48 2013	(r311855)
+++ head/games/starlanes/Makefile	Thu Feb  7 14:45:23 2013	(r311856)
@@ -1,24 +1,28 @@
-# New ports collection makefile for:	starlanes
-# Date created:				7 May 1997
-# Whom:					Andrey Zakhvatov
-#
+# Created by: Andrey Zakhvatov
 # $FreeBSD$
-#
 
 PORTNAME=	starlanes
 PORTVERSION=	1.2.2
 CATEGORIES=	games
-MASTER_SITES=	${MASTER_SITE_SUNSITE}
-MASTER_SITE_SUBDIR=	games/strategy
+MASTER_SITES=	SUNSITE/games/strategy
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	The classic space-age stock trading game
+COMMENT=	Classic space-age stock trading game
 
-ALL_TARGET=	# empty
 MAN6=		starlanes.6
 PLIST_FILES=	bin/starlanes
 
-post-extract:
-	@${RM} ${WRKSRC}/starlanes
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's| restrict| m_restrict| ; \
+		 s|(restrict|(m_restrict|' ${WRKSRC}/starlanes.c
+
+do-build:
+	(cd ${WRKSRC} \
+		&& ${CC} ${CFLAGS} -o starlanes starlanes.c -lcurses)
+
+do-install:
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} starlanes ${PREFIX}/bin)
+	(cd ${WRKSRC} && ${INSTALL_MAN} starlanes.6 ${MAN6PREFIX}/man/man6)
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list