svn commit: r331682 - head/games/xdeblock

William Grzybowski wg at FreeBSD.org
Sat Oct 26 12:46:38 UTC 2013


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>


More information about the svn-ports-all mailing list