Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 2013 05:47:17 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/185310: emulators/tuxnes: Fix build with clang
Message-ID:  <20131231054717.a66d775cc7cdb668aa602186@yahoo.com>
Resent-Message-ID: <201312302110.rBULA05o098489@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185310
>Category:       ports
>Synopsis:       emulators/tuxnes: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 30 21:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Add LICENSE
- Add DESKTOP_ENTRIES

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/emulators/tuxnes/Makefile emulators/tuxnes/Makefile
--- /usr/ports/emulators/tuxnes/Makefile	2013-11-06 22:06:24.000000000 +0900
+++ emulators/tuxnes/Makefile	2013-12-31 00:00:00.000000000 +0900
@@ -3,21 +3,40 @@
 
 PORTNAME=	tuxnes
 PORTVERSION=	0.75
-PORTREVISION=	4
+PORTREVISION=	6
 CATEGORIES=	emulators
 MASTER_SITES=	SF/${PORTNAME}/TuxNES/TuxNES%20v${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A Nintendo Entertainment System 8-bit emulator
+COMMENT=	Nintendo Entertainment System 8-bit emulator
+
+LICENSE=	GPLv2
 
 ONLY_FOR_ARCHS=	i386
 ONLY_FOR_ARCHS_REASON=	uses i386 assembly code
 
+USES=		compiler gmake
 USE_XORG=	x11 ice sm xext xpm
-USE_GMAKE=	yes
+USE_BINUTILS=	yes
 GNU_CONFIGURE=	yes
 
-PLIST_FILES=	bin/romfixer bin/tuxnes
+PLIST_FILES=	bin/romfixer bin/tuxnes share/pixmaps/tuxnes.xpm
+
+DESKTOP_ENTRIES="TuxNES" "" "${PREFIX}/share/pixmaps/tuxnes.xpm" \
+		"${PORTNAME}" "" ""
+
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == "clang"
+CPPFLAGS+=	-no-integrated-as
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|^CFLAGS=|#CFLAGS=|' ${WRKSRC}/configure
+
+post-install:
+	(cd ${WRKSRC} && ${INSTALL_DATA} tuxnes.xpm \
+		${STAGEDIR}${PREFIX}/share/pixmaps)
 
-NO_STAGE=	yes
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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