aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/snes9express/Makefile
blob: 2b29aff0040f9265332ee50843ec977644f9ec51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: Travis Poppe <tlp@liquidx.org>
# $FreeBSD$

PORTNAME=   snes9express
PORTVERSION=    1.43
PORTREVISION=   1
CATEGORIES= emulators
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    GTK interface for snes9x

LICENSE=    GPLv2 # (or later)

RUN_DEPENDS=    snes9x:${PORTSDIR}/emulators/snes9x

USE_GNOME=  gtk20
USES=       gettext pkgconfig
GNU_CONFIGURE=  yes

BROKEN_sparc64= does not compile on sparc64

PORTDOCS=   AUTHORS ChangeLog NEWS README
PLIST_FILES=    bin/${PORTNAME} \
        %%DATADIR%%/snes.s9xskin \
        %%DATADIR%%/snsp.s9xskin
PLIST_DIRS= %%DATADIR%%

# fix build with clang
CFLAGS+= -Wno-return-type

post-patch:
    @${REINPLACE_CMD} -e 's|(gzFile\*)||' \
                    -e 's|\*fptr;|fptr;|' ${WRKSRC}/rom.cc
    @${REINPLACE_CMD} -e 's|<endian\.h>|<sys/endian.h>|' \
        ${WRKSRC}/s9xskin.cc

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/*.s9xskin ${STAGEDIR}${DATADIR}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>