1 # $NetBSD: Makefile,v 1.29 2012/10/23 10:24:03 wiz Exp $
6 CATEGORIES
= emulators x11
7 MASTER_SITES
= http
://fms.komkon.org
/fMSX
/
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}
24 .
include "../../mk/bsd.prefs.mk"
25 .
include "../../mk/endian.mk"
27 .if
${OPSYS} == "NetBSD" ||
${OPSYS} == "SunOS"
32 DEFS
+= -DRomDir
=\"${PREFIX
:Q
}/share
/fmsx
\"
33 .if
${USE_SUN_AUDIO} == "YES"
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'
44 .if
${MACHINE_ENDIAN} == "big"
46 .elif
${MACHINE_ENDIAN} == "little"
49 BROKEN
= "Unknown endian"
52 MAKE_ENV
+= DEFS
=${DEFS
:Q
}
54 INSTALLATION_DIRS
= bin share
/fmsx share
/doc
56 # Makefile of fMSX doesn't have install target.
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"