View | Details | Raw Unified | Return to bug 178160 | Differences between
and this patch

Collapse All | Expand All

(-)emulators/snes9express/Makefile (-20 / +21 lines)
Lines 1-9 Link Here
1
# New ports collection makefile for:	snes9express
1
# Created by: Travis Poppe <tlp@liquidx.org>
2
# Date created:			15 Mar 2004
3
# Whom:				Travis Poppe <tlp@liquidx.org>
4
#
5
# $FreeBSD: head/emulators/snes9express/Makefile 324744 2013-08-14 22:35:50Z ak $
2
# $FreeBSD: head/emulators/snes9express/Makefile 324744 2013-08-14 22:35:50Z ak $
6
#
7
3
8
PORTNAME=	snes9express
4
PORTNAME=	snes9express
9
PORTVERSION=	1.43
5
PORTVERSION=	1.43
Lines 14-52 Link Here
14
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	GTK interface for snes9x
11
COMMENT=	GTK interface for snes9x
16
12
13
LICENSE=	GPLv2 # (or later)
14
17
RUN_DEPENDS=	snes9x:${PORTSDIR}/emulators/snes9x
15
RUN_DEPENDS=	snes9x:${PORTSDIR}/emulators/snes9x
18
16
17
OPTIONS_DEFINE=	DOCS
18
19
USE_GNOME=	gtk20
19
USE_GNOME=	gtk20
20
USES=		gettext
20
USES=		gettext
21
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
22
22
23
BROKEN=		does not build
24
25
PORTDOCS=	AUTHORS ChangeLog NEWS README
23
PORTDOCS=	AUTHORS ChangeLog NEWS README
26
PLIST_FILES=	bin/${PORTNAME} \
24
PLIST_FILES=	bin/${PORTNAME} \
27
		%%DATADIR%%/snes.s9xskin \
25
		%%DATADIR%%/snes.s9xskin \
28
		%%DATADIR%%/snsp.s9xskin
26
		%%DATADIR%%/snsp.s9xskin
29
PLIST_DIRS=	%%DATADIR%%
27
PLIST_DIRS=	%%DATADIR%%
30
28
29
.include <bsd.port.pre.mk>
30
31
.if ${ARCH} == "sparc64"
32
BROKEN=		Does not compile on sparc64
33
.endif
34
31
post-patch:
35
post-patch:
32
	@${REINPLACE_CMD} -e 's|<endian\.h>|<sys/endian.h>|' \
36
	@${REINPLACE_CMD} -e \
33
		${WRKSRC}/s9xskin.cc
37
		's|(gzFile\*)|| ; \
38
		 s|\*fptr;|fptr;|' ${WRKSRC}/rom.cc
39
	@${REINPLACE_CMD} -e \
40
		's|<endian\.h>|<sys/endian.h>|' ${WRKSRC}/s9xskin.cc
34
41
35
do-install:
42
do-install:
36
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
43
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
37
	@${MKDIR} ${DATADIR}
44
	@${MKDIR} ${DATADIR}
38
	${INSTALL_DATA} ${WRKSRC}/*.s9xskin ${DATADIR}
45
	(cd ${WRKSRC} && ${INSTALL_DATA} *.s9xskin ${DATADIR})
39
.if !defined(NOPORTDOCS)
46
.if ${PORT_OPTIONS:MDOCS}
40
	@${MKDIR} ${DOCSDIR}
47
	@${MKDIR} ${DOCSDIR}
41
.for file in ${PORTDOCS}
48
.for i in ${PORTDOCS}
42
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
49
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
43
.endfor
50
.endfor
44
.endif
51
.endif
45
52
46
.include <bsd.port.pre.mk>
47
48
.if ${ARCH} == "sparc64"
49
BROKEN=		Does not compile on sparc64
50
.endif
51
52
.include <bsd.port.post.mk>
53
.include <bsd.port.post.mk>

Return to bug 178160