| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.1 2021/11/06 16:43:23 rhialto Exp $ | | 1 | # $NetBSD: Makefile,v 1.2 2021/11/13 12:44:39 rhialto Exp $ |
2 | | | 2 | |
3 | PKGNAME= hercules4sdl-4.3 | | 3 | PKGNAME= hercules4sdl-4.3 |
4 | DISTNAME= Release_${PKGVERSION_NOREV} | | 4 | DISTNAME= Release_${PKGVERSION_NOREV} |
5 | CATEGORIES= emulators | | 5 | CATEGORIES= emulators |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=SDL-Hercules-390/} | | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=SDL-Hercules-390/} |
7 | EXTRACT_USING= bsdtar | | 7 | EXTRACT_USING= bsdtar |
8 | DIST_SUBDIR= hercules4sdl | | 8 | DIST_SUBDIR= hercules4sdl |
9 | | | 9 | |
10 | MAINTAINER= rhialto@NetBSD.org | | 10 | MAINTAINER= rhialto@NetBSD.org |
11 | HOMEPAGE= https://github.com/SDL-Hercules-390/hyperion | | 11 | HOMEPAGE= https://github.com/SDL-Hercules-390/hyperion |
12 | COMMENT= The SoftDevLabs version of Hercules 4.x (Hyperion) | | 12 | COMMENT= The SoftDevLabs version of Hercules 4.x (Hyperion) |
13 | LICENSE= qpl-v1.0 | | 13 | LICENSE= qpl-v1.0 |
14 | | | 14 | |
| @@ -23,31 +23,37 @@ USE_LANGUAGES+= c | | | @@ -23,31 +23,37 @@ USE_LANGUAGES+= c |
23 | PTHREAD_OPTS+= require | | 23 | PTHREAD_OPTS+= require |
24 | REPLACE_BASH= _dynamic_version | | 24 | REPLACE_BASH= _dynamic_version |
25 | .if ${MACHINE_ARCH} == i386 | | 25 | .if ${MACHINE_ARCH} == i386 |
26 | CFLAGS+= -march=i586 | | 26 | CFLAGS+= -march=i586 |
27 | .endif | | 27 | .endif |
28 | | | 28 | |
29 | SUBST_CLASSES+= prefix | | 29 | SUBST_CLASSES+= prefix |
30 | SUBST_STAGE.prefix= pre-configure | | 30 | SUBST_STAGE.prefix= pre-configure |
31 | SUBST_MESSAGE.prefix= Correcting configuration path | | 31 | SUBST_MESSAGE.prefix= Correcting configuration path |
32 | SUBST_FILES.prefix= hercules.cnf | | 32 | SUBST_FILES.prefix= hercules.cnf |
33 | SUBST_SED.prefix= -e 's,/usr/local,${PREFIX},g' | | 33 | SUBST_SED.prefix= -e 's,/usr/local,${PREFIX},g' |
34 | | | 34 | |
35 | CONFIGURE_ARGS+= --enable-extpkgs=${PREFIX}/lib/hercules4sdl | | 35 | CONFIGURE_ARGS+= --enable-extpkgs=${PREFIX}/lib/hercules4sdl |
| | | 36 | .if ${OPSYS} == "Darwin" |
| | | 37 | # There is a configure check that uses C++ to check if the compiler is |
| | | 38 | # GNU, and on Darwin it thinks GNU C++ is needed to create shared |
| | | 39 | # libraries, even though no actual C++ is used. Or something. |
| | | 40 | CONFIGURE_ENV+= ac_cv_cxx_compiler_gnu=yes |
| | | 41 | .endif |
36 | | | 42 | |
37 | INSTALLATION_DIRS+= share/examples/hercules | | 43 | INSTALLATION_DIRS+= share/examples/hercules |
38 | | | 44 | |
39 | pre-configure: | | 45 | pre-configure: |
40 | ${RM} ${WRKSRC}/ltdl.h ${WRKSRC}/ltdl.c | | 46 | ${RM} -f ${WRKSRC}/ltdl.h ${WRKSRC}/ltdl.c |
41 | cd ${WRKSRC} && ./autogen.sh | | 47 | cd ${WRKSRC} && ./autogen.sh |
42 | | | 48 | |
43 | post-install: | | 49 | post-install: |
44 | ${INSTALL_DATA} ${WRKSRC}/hercules.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/ | | 50 | ${INSTALL_DATA} ${WRKSRC}/hercules.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/ |
45 | | | 51 | |
46 | .include "../../archivers/bzip2/buildlink3.mk" | | 52 | .include "../../archivers/bzip2/buildlink3.mk" |
47 | .include "../../converters/libiconv/buildlink3.mk" | | 53 | .include "../../converters/libiconv/buildlink3.mk" |
48 | .include "../../devel/libltdl/buildlink3.mk" | | 54 | .include "../../devel/libltdl/buildlink3.mk" |
49 | .include "../../devel/zlib/buildlink3.mk" | | 55 | .include "../../devel/zlib/buildlink3.mk" |
50 | .include "../../math/hercules4sdl-decnumber/buildlink3.mk" | | 56 | .include "../../math/hercules4sdl-decnumber/buildlink3.mk" |
51 | .include "../../math/hercules4sdl-softfloat/buildlink3.mk" | | 57 | .include "../../math/hercules4sdl-softfloat/buildlink3.mk" |
52 | .include "../../net/hercules4sdl-telnet/buildlink3.mk" | | 58 | .include "../../net/hercules4sdl-telnet/buildlink3.mk" |
53 | .include "../../security/hercules4sdl-crypto/buildlink3.mk" | | 59 | .include "../../security/hercules4sdl-crypto/buildlink3.mk" |