pkgsrc/emulators/BasiliskII/Makefile
nat 5cc2cae2c6 Fix package for NetBSD.
Use the correct memory/timer options to make this package work on NetBSD.
Use the correct defaults for NetBSD audio devices.

Bump PKG_REVISION.
2021-01-14 02:47:39 +00:00

60 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.48 2021/01/14 02:47:39 nat Exp $
DISTNAME= BasiliskII-20190405
PKGREVISION= 4
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=cebix/}
GITHUB_PROJECT= macemu
GITHUB_TAG= 01052ca89d22882c870b84c5498cd0ee9a843b6b
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://basilisk.cebix.net/
COMMENT= Open Source 68k Macintosh emulator
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}/BasiliskII
CONFIGURE_DIRS= src/Unix
BUILD_DIRS= src/Unix
USE_LANGUAGES= c c++
USE_TOOLS+= aclocal autoheader autoconf automake
USE_TOOLS+= msgfmt msgmerge xgettext
USE_TOOLS+= pkg-config gmake
# Reported upstream in https://github.com/cebix/macemu/pull/198
CHECK_PORTABILITY_SKIP+= src/Unix/Darwin/testlmem.sh
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-fbdev-dga
CONFIGURE_ARGS+= --disable-xf86-dga
CONFIGURE_ARGS+= --disable-xf86-vidmode
CONFIGURE_ARGS+= --enable-addressing=banks
CONFIGURE_ARGS+= --without-mon
CONFIGURE_ARGS+= --without-esd
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --enable-macosx-gui
CONFIGURE_ARGS+= --enable-macosx-sound
.else
post-extract:
${RM} ${WRKSRC}/src/Unix/semaphore.h
.endif
.include "options.mk"
INSTALLATION_DIRS= share/doc/BasiliskII
pre-configure:
cd ${WRKSRC}/src/Unix && NO_CONFIGURE=x ./autogen.sh
${MKDIR} ${WRKSRC}/src/Unix/obj
post-install:
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/BasiliskII/
${INSTALL_DATA} ${WRKSRC}/TECH ${DESTDIR}${PREFIX}/share/doc/BasiliskII/
${INSTALL_DATA} ${WRKSRC}/TODO ${DESTDIR}${PREFIX}/share/doc/BasiliskII/
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"