Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / emulators / fmsx / Makefile
blob34af2180a65e6c39ef4618b51b49c3a8f38ede8d
1 # $NetBSD: Makefile,v 1.29 2012/10/23 10:24:03 wiz Exp $
3 DISTNAME= fMSX351
4 PKGNAME= fmsx-3.5.1
5 PKGREVISION= 1
6 CATEGORIES= emulators x11
7 MASTER_SITES= http://fms.komkon.org/fMSX/
8 EXTRACT_SUFX= .zip
10 MAINTAINER= pkgsrc-users@NetBSD.org
11 HOMEPAGE= http://fms.komkon.org/fMSX/
12 COMMENT= MSX (Z80-based computer) emulator
14 RESTRICTED= ROM image copyright is questionable
15 NO_BIN_ON_CDROM= ${RESTRICTED}
16 NO_BIN_ON_FTP= ${RESTRICTED}
17 NO_SRC_ON_CDROM= ${RESTRICTED}
18 NO_SRC_ON_FTP= ${RESTRICTED}
20 WRKSRC= ${WRKDIR}
22 BUILD_DIRS= fMSX/Unix
24 .include "../../mk/bsd.prefs.mk"
25 .include "../../mk/endian.mk"
27 .if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
28 USE_SUN_AUDIO?= YES
29 .else
30 USE_SUN_AUDIO?= NO
31 .endif
32 DEFS+= -DRomDir=\"${PREFIX:Q}/share/fmsx\"
33 .if ${USE_SUN_AUDIO} == "YES"
34 DEFS+= -DSUN_AUDIO
35 .else
36 . include "../../mk/oss.buildlink3.mk"
38 SUBST_CLASSES+= devdsp
39 SUBST_STAGE.devdsp= pre-build
40 SUBST_FILES.devdsp= EMULib/SndUnix.c
41 SUBST_SED.devdsp= -e 's|/dev/dsp|${DEVOSSSOUND}|g'
43 .endif
44 .if ${MACHINE_ENDIAN} == "big"
45 DEFS+= -DMSB_FIRST
46 .elif ${MACHINE_ENDIAN} == "little"
47 DEFS+= -DLSB_FIRST
48 .else
49 BROKEN= "Unknown endian"
50 .endif
52 MAKE_ENV+= DEFS=${DEFS:Q}
54 INSTALLATION_DIRS= bin share/fmsx share/doc
56 # Makefile of fMSX doesn't have install target.
57 do-install:
58 ${INSTALL_PROGRAM} ${WRKSRC}/fMSX/Unix/fmsx ${DESTDIR}${PREFIX}/bin
59 ${INSTALL_DATA} ${WRKSRC}/fMSX/ROMs/*.ROM ${DESTDIR}${PREFIX}/share/fmsx
60 ${INSTALL_DATA} ${WRKSRC}/fMSX/ROMs/*.FNT ${DESTDIR}${PREFIX}/share/fmsx
61 ${INSTALL_DATA} ${WRKSRC}/fMSX/fMSX.html ${DESTDIR}${PREFIX}/share/doc
63 .include "../../devel/zlib/buildlink3.mk"
64 .include "../../x11/libXext/buildlink3.mk"
65 .include "../../mk/pthread.buildlink3.mk"
66 .include "../../mk/bsd.pkg.mk"