pkgsrc/emulators/ucon64/Makefile
nia 5c340db937 ucon64: Fix build on macOS. Patch from Daniël Hörchner.
"There are several reasons not to enable libdiscmage, which is different
than saying that it is unnecessary. It appears it is also unnecessary, as it
has never gotten further than alpha status and certain functionality was
actively disabled many years ago, but I never got any feedback about it.

The presence of libdiscmage caused confusion for some users and I had
discovered some issues in its limited functionality, so for version 2.2.1 of
uCON64 I decided to change the default of the configure script to
--without-libdiscmage. I probably should have stated that I consider
libdiscmage deprecated, because several distribution channels responded by
adding --with-libdiscmage to their build specifications for uCON64 instead.
Among those is pkgsrc."
2021-05-08 15:18:37 +00:00

43 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2021/05/08 15:18:37 nia Exp $
DISTNAME= ucon64-2.2.1-src
PKGNAME= ${DISTNAME:S/-src//}
PKGREVISION= 3
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ucon64/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://ucon64.sourceforge.io/
COMMENT= Emulator ROM and disk image converter and inspector
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/${DISTNAME}/src
.include "../../mk/bsd.prefs.mk"
# code assumes 64-bit target on NetBSD
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} != "i386"
CONFIGURE_ARGS+= --with-libcd64
.endif
# parallel port I/O cannot work on macOS, even on Intel
.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --disable-parallel
.endif
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
CHECK_PORTABILITY_SKIP+= install_beos.sh
INSTALLATION_DIRS= bin share/doc/ucon64/images
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ucon64 ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/*.html \
${DESTDIR}${PREFIX}/share/doc/ucon64
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/images/* \
${DESTDIR}${PREFIX}/share/doc/ucon64/images
.include "options.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"