| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.2 2021/11/13 12:44:39 rhialto Exp $ | | 1 | # $NetBSD: Makefile,v 1.3 2021/11/14 08:50:03 jperkin 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,32 +23,30 @@ USE_LANGUAGES+= c | | | @@ -23,32 +23,30 @@ 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 | | 36 | # 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 | | 37 | # GNU, and on Darwin it thinks GNU C++ is needed to create shared |
39 | # libraries, even though no actual C++ is used. Or something. | | 38 | # libraries, even though no actual C++ is used. Or something. |
40 | CONFIGURE_ENV+= ac_cv_cxx_compiler_gnu=yes | | 39 | CONFIGURE_ENV.Darwin+= ac_cv_cxx_compiler_gnu=yes |
41 | .endif | | | |
42 | | | 40 | |
43 | INSTALLATION_DIRS+= share/examples/hercules | | 41 | INSTALLATION_DIRS+= share/examples/hercules |
44 | | | 42 | |
45 | pre-configure: | | 43 | pre-configure: |
46 | ${RM} -f ${WRKSRC}/ltdl.h ${WRKSRC}/ltdl.c | | 44 | ${RM} -f ${WRKSRC}/ltdl.h ${WRKSRC}/ltdl.c |
47 | cd ${WRKSRC} && ./autogen.sh | | 45 | cd ${WRKSRC} && ./autogen.sh |
48 | | | 46 | |
49 | post-install: | | 47 | post-install: |
50 | ${INSTALL_DATA} ${WRKSRC}/hercules.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/ | | 48 | ${INSTALL_DATA} ${WRKSRC}/hercules.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/ |
51 | | | 49 | |
52 | .include "../../archivers/bzip2/buildlink3.mk" | | 50 | .include "../../archivers/bzip2/buildlink3.mk" |
53 | .include "../../converters/libiconv/buildlink3.mk" | | 51 | .include "../../converters/libiconv/buildlink3.mk" |
54 | .include "../../devel/libltdl/buildlink3.mk" | | 52 | .include "../../devel/libltdl/buildlink3.mk" |