51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.39 2021/01/01 09:52:23 ryoon Exp $
|
|
|
|
DISTNAME= fMSX54
|
|
PKGNAME= fmsx-5.4
|
|
PKGREVISION= 2
|
|
CATEGORIES= emulators x11
|
|
MASTER_SITES= https://fms.komkon.org/fMSX/
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://fms.komkon.org/fMSX/
|
|
COMMENT= MSX (Z80-based computer) emulator
|
|
|
|
RESTRICTED= The binary based on modified source code is not redistributable
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
BUILD_DIRS= fMSX/Unix
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "../../mk/endian.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
DEFS+= -D_KERNTYPES
|
|
.endif
|
|
|
|
.if ${MACHINE_ENDIAN} == "big"
|
|
DEFS+= -DMSB_FIRST
|
|
.elif ${MACHINE_ENDIAN} == "little"
|
|
DEFS+= -DLSB_FIRST
|
|
.else
|
|
BROKEN= "Unknown endian"
|
|
.endif
|
|
|
|
INSTALLATION_DIRS= bin share/doc
|
|
|
|
# Makefile of fMSX doesn't have install target.
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/fMSX/Unix/fmsx ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/fMSX/fMSX.html ${DESTDIR}${PREFIX}/share/doc
|
|
|
|
.include "options.mk"
|
|
MAKE_ENV+= DEFS=${DEFS:Q}
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|