Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 2013 18:10:07 GMT
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/178160: emulators/sness9express: Fix build
Message-ID:  <201308181810.r7IIA7cg081357@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/178160; it has been noted by GNATS.

From: KATO Tsuguru <tkato432@yahoo.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/178160: emulators/sness9express: Fix build
Date: Mon, 19 Aug 2013 02:51:02 +0900

 This is a multi-part message in MIME format.
 
 --Multipart=_Mon__19_Aug_2013_02_51_02_+0900_C1Q1x.1EsBHxC/Bf
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Remake of the patch against current tree.
 
 --Multipart=_Mon__19_Aug_2013_02_51_02_+0900_C1Q1x.1EsBHxC/Bf
 Content-Type: text/x-diff;
  name="emulators_snes9express.diff"
 Content-Disposition: attachment;
  filename="emulators_snes9express.diff"
 Content-Transfer-Encoding: 7bit
 
 diff -urN /usr/ports/emulators/snes9express/Makefile emulators/snes9express/Makefile
 --- /usr/ports/emulators/snes9express/Makefile	2013-08-15 22:34:59.000000000 +0900
 +++ emulators/snes9express/Makefile	2013-08-19 00:00:00.000000000 +0900
 @@ -1,9 +1,5 @@
 -# New ports collection makefile for:	snes9express
 -# Date created:			15 Mar 2004
 -# Whom:				Travis Poppe <tlp@liquidx.org>
 -#
 +# Created by: Travis Poppe <tlp@liquidx.org>
  # $FreeBSD: head/emulators/snes9express/Makefile 324744 2013-08-14 22:35:50Z ak $
 -#
  
  PORTNAME=	snes9express
  PORTVERSION=	1.43
 @@ -14,39 +10,44 @@
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	GTK interface for snes9x
  
 +LICENSE=	GPLv2 # (or later)
 +
  RUN_DEPENDS=	snes9x:${PORTSDIR}/emulators/snes9x
  
 +OPTIONS_DEFINE=	DOCS
 +
  USE_GNOME=	gtk20
  USES=		gettext
  GNU_CONFIGURE=	yes
  
 -BROKEN=		does not build
 -
  PORTDOCS=	AUTHORS ChangeLog NEWS README
  PLIST_FILES=	bin/${PORTNAME} \
  		%%DATADIR%%/snes.s9xskin \
  		%%DATADIR%%/snsp.s9xskin
  PLIST_DIRS=	%%DATADIR%%
  
 +.include <bsd.port.pre.mk>
 +
 +.if ${ARCH} == "sparc64"
 +BROKEN=		Does not compile on sparc64
 +.endif
 +
  post-patch:
 -	@${REINPLACE_CMD} -e 's|<endian\.h>|<sys/endian.h>|' \
 -		${WRKSRC}/s9xskin.cc
 +	@${REINPLACE_CMD} -e \
 +		's|(gzFile\*)|| ; \
 +		 s|\*fptr;|fptr;|' ${WRKSRC}/rom.cc
 +	@${REINPLACE_CMD} -e \
 +		's|<endian\.h>|<sys/endian.h>|' ${WRKSRC}/s9xskin.cc
  
  do-install:
 -	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
 +	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
  	@${MKDIR} ${DATADIR}
 -	${INSTALL_DATA} ${WRKSRC}/*.s9xskin ${DATADIR}
 -.if !defined(NOPORTDOCS)
 +	(cd ${WRKSRC} && ${INSTALL_DATA} *.s9xskin ${DATADIR})
 +.if ${PORT_OPTIONS:MDOCS}
  	@${MKDIR} ${DOCSDIR}
 -.for file in ${PORTDOCS}
 -	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
 +.for i in ${PORTDOCS}
 +	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
  .endfor
  .endif
  
 -.include <bsd.port.pre.mk>
 -
 -.if ${ARCH} == "sparc64"
 -BROKEN=		Does not compile on sparc64
 -.endif
 -
  .include <bsd.port.post.mk>
 
 --Multipart=_Mon__19_Aug_2013_02_51_02_+0900_C1Q1x.1EsBHxC/Bf--



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