Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 2013 12:46:37 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r331682 - head/games/xdeblock
Message-ID:  <201310261246.r9QCkbUe062406@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Sat Oct 26 12:46:37 2013
New Revision: 331682
URL: http://svnweb.freebsd.org/changeset/ports/331682

Log:
  games/xdeblock: fix build with clang
  
  - Fix build with clang
  - Allow staging [1]
  
  PR:		ports/182797
  Submitted by:	KATO Tsuguru <tkato432 yahoo.com> [1]

Modified:
  head/games/xdeblock/Makefile

Modified: head/games/xdeblock/Makefile
==============================================================================
--- head/games/xdeblock/Makefile	Sat Oct 26 12:45:50 2013	(r331681)
+++ head/games/xdeblock/Makefile	Sat Oct 26 12:46:37 2013	(r331682)
@@ -16,15 +16,16 @@ WRKSRC=		${WRKDIR}/xdeblo_v1.0
 USES=		imake
 USE_XORG=	xpm
 NO_INSTALL_MANPAGES=	yes
+CFLAGS+=	-Wno-return-type
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/main.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/xdeblo ${PREFIX}/bin
-	@${MKDIR} ${PREFIX}/lib/X11/xdeblock/mapf
-	${CHMOD} 777 ${PREFIX}/lib/X11/xdeblock/mapf
-	${INSTALL_DATA} ${WRKSRC}/mapf/*.txt ${PREFIX}/lib/X11/xdeblock/mapf
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} xdeblo ${STAGEDIR}${PREFIX}/bin)
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xdeblock/mapf
+	${CHMOD} 777 ${STAGEDIR}${PREFIX}/lib/X11/xdeblock/mapf
+	(cd ${WRKSRC}/mapf && ${INSTALL_DATA} *.txt \
+		${STAGEDIR}${PREFIX}/lib/X11/xdeblock/mapf)
 
 .include <bsd.port.mk>



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