| @@ -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 | |
3 | DISTNAME= hercules-3.13 | | 3 | DISTNAME= hercules-3.13 |
4 | PKGREVISION= 2 | | 4 | PKGREVISION= 2 |
5 | CATEGORIES= emulators | | 5 | CATEGORIES= emulators |
6 | MASTER_SITES= http://downloads.hercules-390.eu/ | | 6 | MASTER_SITES= http://downloads.hercules-390.eu/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://www.hercules-390.eu/ | | 9 | HOMEPAGE= http://www.hercules-390.eu/ |
10 | COMMENT= S370 emulator | | 10 | COMMENT= S370 emulator |
11 | LICENSE= qpl-v1.0 | | 11 | LICENSE= qpl-v1.0 |
12 | | | 12 | |
13 | DEPENDS+= hercules-images-[0-9]*:../../emulators/hercules-images | | 13 | DEPENDS+= hercules-images-[0-9]*:../../emulators/hercules-images |
14 | | | 14 | |
15 | AUTOCONF_REQD= 2.50 | | 15 | AUTOCONF_REQD= 2.50 |
16 | USE_TOOLS+= autoconf gmake bash:run | | 16 | USE_TOOLS+= autoconf gmake bash:run |
17 | GNU_CONFIGURE= YES | | 17 | GNU_CONFIGURE= YES |
18 | #MAKE_ENV+= HOST_ARCH=${MACHINE_ARCH:Q} | | 18 | #MAKE_ENV+= HOST_ARCH=${MACHINE_ARCH:Q} |
19 | USE_LIBTOOL= YES | | 19 | USE_LIBTOOL= YES |
20 | | | 20 | |
21 | PTHREAD_OPTS+= require | | 21 | PTHREAD_OPTS+= require |
22 | | | 22 | |
23 | REPLACE_PERL+= util/bldlvlck | | 23 | REPLACE_PERL+= util/bldlvlck |
24 | USE_TOOLS+= perl:run | | 24 | USE_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. |
| | | 29 | CONFIGURE_ENV.Darwin+= ac_cv_cxx_compiler_gnu=yes |
| | | 30 | |
26 | INSTALLATION_DIRS+= bin share/examples/hercules | | 31 | INSTALLATION_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 | |
30 | pre-configure: | | 35 | pre-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 | |
34 | pre-install: | | 39 | pre-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" |