From owner-svn-ports-all@freebsd.org Mon Jul 30 09:29:01 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FAAF105062D; Mon, 30 Jul 2018 09:29:01 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E97238FFA1; Mon, 30 Jul 2018 09:29:00 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CA9C7226E7; Mon, 30 Jul 2018 09:29:00 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6U9T0ve024106; Mon, 30 Jul 2018 09:29:00 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6U9T0M1024105; Mon, 30 Jul 2018 09:29:00 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201807300929.w6U9T0M1024105@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Mon, 30 Jul 2018 09:29:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r475873 - head/games/xminehunter X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/games/xminehunter X-SVN-Commit-Revision: 475873 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2018 09:29:01 -0000 Author: tobik Date: Mon Jul 30 09:29:00 2018 New Revision: 475873 URL: https://svnweb.freebsd.org/changeset/ports/475873 Log: games/xminehunter: Fix build with Clang 6 ./bitmaps/bomb:5:28: error: constant expression evaluates to 144 which cannot be narrowed to type 'char' [-Wc++11-narrowing] 0x00, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, ^~~~ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/xminehunter-0.4_4.log - Actually install the binary as executable (broken 5 years ago in r337083) Modified: head/games/xminehunter/Makefile Modified: head/games/xminehunter/Makefile ============================================================================== --- head/games/xminehunter/Makefile Mon Jul 30 09:16:04 2018 (r475872) +++ head/games/xminehunter/Makefile Mon Jul 30 09:29:00 2018 (r475873) @@ -3,7 +3,7 @@ PORTNAME= xminehunter PORTVERSION= 0.4 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games MASTER_SITES= XCONTRIB/games @@ -17,10 +17,12 @@ LICENSE_PERMS= dist-mirror pkg-mirror auto-accept WRKSRC= ${WRKDIR}/${PORTNAME} -USES= motif +USES= compiler motif USE_XORG= xpm ALL_TARGET= ${PORTNAME} +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib @@ -43,13 +45,12 @@ post-patch: s|$${CFLAGS}|$${CXXFLAGS}| ; \ s| \($${INSTALL_SCORE_PATH}\)| $${DESTDIR}\1| ; \ s|chmod 333|chmod 633| ; \ - s|cp |$${BSD_INSTALL_DATA} | ; \ + s|cp |$${BSD_INSTALL_PROGRAM} | ; \ s| \($${INSTALL_BIN_PATH}\)| $${DESTDIR}\1|' \ ${WRKSRC}/${MAKEFILE} post-install: (cd ${WRKSRC}/bitmaps && ${INSTALL_DATA} normal.xpm \ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.xpm) - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include