Tue Nov 16 17:18:05 2021 UTC ()
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).


(rhialto)
diff -r1.44 -r1.45 pkgsrc/emulators/hercules/Makefile

cvs diff -r1.44 -r1.45 pkgsrc/emulators/hercules/Makefile (expand / switch to unified diff)

--- pkgsrc/emulators/hercules/Makefile 2021/05/24 19:52:10 1.44
+++ pkgsrc/emulators/hercules/Makefile 2021/11/16 17:18:05 1.45
@@ -1,38 +1,43 @@ @@ -1,38 +1,43 @@
1# $NetBSD: Makefile,v 1.44 2021/05/24 19:52:10 wiz Exp $ 1# $NetBSD: Makefile,v 1.45 2021/11/16 17:18:05 rhialto Exp $
2 2
3DISTNAME= hercules-3.13 3DISTNAME= hercules-3.13
4PKGREVISION= 2 4PKGREVISION= 2
5CATEGORIES= emulators 5CATEGORIES= emulators
6MASTER_SITES= http://downloads.hercules-390.eu/ 6MASTER_SITES= http://downloads.hercules-390.eu/
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://www.hercules-390.eu/ 9HOMEPAGE= http://www.hercules-390.eu/
10COMMENT= S370 emulator 10COMMENT= S370 emulator
11LICENSE= qpl-v1.0 11LICENSE= qpl-v1.0
12 12
13DEPENDS+= hercules-images-[0-9]*:../../emulators/hercules-images 13DEPENDS+= hercules-images-[0-9]*:../../emulators/hercules-images
14 14
15AUTOCONF_REQD= 2.50 15AUTOCONF_REQD= 2.50
16USE_TOOLS+= autoconf gmake bash:run 16USE_TOOLS+= autoconf gmake bash:run
17GNU_CONFIGURE= YES 17GNU_CONFIGURE= YES
18#MAKE_ENV+= HOST_ARCH=${MACHINE_ARCH:Q} 18#MAKE_ENV+= HOST_ARCH=${MACHINE_ARCH:Q}
19USE_LIBTOOL= YES 19USE_LIBTOOL= YES
20 20
21PTHREAD_OPTS+= require 21PTHREAD_OPTS+= require
22 22
23REPLACE_PERL+= util/bldlvlck 23REPLACE_PERL+= util/bldlvlck
24USE_TOOLS+= perl:run 24USE_TOOLS+= perl:run
25 25
 26# There is a configure check that uses C++ to check if the compiler is
 27# GNU, and on Darwin it thinks GNU C++ is needed to create shared
 28# libraries, even though no actual C++ is used. Or something.
 29CONFIGURE_ENV.Darwin+= ac_cv_cxx_compiler_gnu=yes
 30
26INSTALLATION_DIRS+= bin share/examples/hercules 31INSTALLATION_DIRS+= bin share/examples/hercules
27#CONFIGURE_ARGS+= --enable-setuid-hercifc=hercules 32#CONFIGURE_ARGS+= --enable-setuid-hercifc=hercules
28#SPECIAL_PERMS+= ${PREFIX}/bin/hercifc ${SETUID_ROOT_PERMS} 33#SPECIAL_PERMS+= ${PREFIX}/bin/hercifc ${SETUID_ROOT_PERMS}
29 34
30pre-configure: 35pre-configure:
31 ${RM} ${WRKSRC}/ltdl.h ${WRKSRC}/ltdl.c 36 ${RM} ${WRKSRC}/ltdl.h ${WRKSRC}/ltdl.c
32 cd ${WRKSRC} && autoconf 37 cd ${WRKSRC} && autoconf
33 38
34pre-install: 39pre-install:
35 ${INSTALL_DATA} ${WRKSRC}/hercules.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/ 40 ${INSTALL_DATA} ${WRKSRC}/hercules.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/
36# ${INSTALL_DATA} ${WRKSRC}/zzsa.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/ 41# ${INSTALL_DATA} ${WRKSRC}/zzsa.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/
37 42
38.include "../../converters/libiconv/buildlink3.mk" 43.include "../../converters/libiconv/buildlink3.mk"