Bug 182797 - games/xdeblock: Fix build with clang
Summary: games/xdeblock: Fix build with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-07 19:10 UTC by tkato432
Modified: 2013-10-26 13:50 UTC (History)
0 users

See Also:


Attachments
file.diff (2.13 KB, patch)
2013-10-07 19:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-10-07 19:10:00 UTC
- Fix build with clang
Comment 1 William Grzybowski freebsd_committer freebsd_triage 2013-10-26 02:36:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wg

I'll take it.
Comment 2 William Grzybowski freebsd_committer freebsd_triage 2013-10-26 13:46:43 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-10-26 13:46:44 UTC
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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"