pkgsrc/emulators/hercules/Makefile
rhialto e163980de4 emulators/hercules: unbreak the build on Darwin.
Same fix as for hercules4sdl.
No revbump needed since the change is limited to Darwin, where no built
package previously existed (at least for Darwin 20.6.0 which I tested).
2021-11-16 17:18:05 +00:00

46 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.45 2021/11/16 17:18:05 rhialto Exp $
DISTNAME= hercules-3.13
PKGREVISION= 2
CATEGORIES= emulators
MASTER_SITES= http://downloads.hercules-390.eu/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.hercules-390.eu/
COMMENT= S370 emulator
LICENSE= qpl-v1.0
DEPENDS+= hercules-images-[0-9]*:../../emulators/hercules-images
AUTOCONF_REQD= 2.50
USE_TOOLS+= autoconf gmake bash:run
GNU_CONFIGURE= YES
#MAKE_ENV+= HOST_ARCH=${MACHINE_ARCH:Q}
USE_LIBTOOL= YES
PTHREAD_OPTS+= require
REPLACE_PERL+= util/bldlvlck
USE_TOOLS+= perl:run
# There is a configure check that uses C++ to check if the compiler is
# GNU, and on Darwin it thinks GNU C++ is needed to create shared
# libraries, even though no actual C++ is used. Or something.
CONFIGURE_ENV.Darwin+= ac_cv_cxx_compiler_gnu=yes
INSTALLATION_DIRS+= bin share/examples/hercules
#CONFIGURE_ARGS+= --enable-setuid-hercifc=hercules
#SPECIAL_PERMS+= ${PREFIX}/bin/hercifc ${SETUID_ROOT_PERMS}
pre-configure:
${RM} ${WRKSRC}/ltdl.h ${WRKSRC}/ltdl.c
cd ${WRKSRC} && autoconf
pre-install:
${INSTALL_DATA} ${WRKSRC}/hercules.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/
# ${INSTALL_DATA} ${WRKSRC}/zzsa.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"