blob: 56451bf366cd56fabb2167438722d2e144fe6e53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# $NetBSD: Makefile,v 1.24 2020/11/19 17:17:15 nia Exp $
DISTNAME= dosbox-x-0.83.7
PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=joncampbell123/}
GITHUB_TAG= dosbox-x-v${PKGVERSION_NOREV}
MAINTAINER= nia@NetBSD.org
HOMEPAGE= https://dosbox-x.com/
COMMENT= DOSBox fork with enhancements
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/dosbox-x-${GITHUB_TAG}
GNU_CONFIGURE= yes
USE_TOOLS+= autoconf autoreconf automake pkg-config
USE_LANGUAGES= c c++
# C++11
GCC_REQD+= 4.7
LIBS.NetBSD+= -lcompat
CONFIGURE_ARGS+= --disable-alsatest
CONFIGURE_ARGS+= --disable-sdl2test
CONFIGURE_ARGS+= --disable-sdltest
CONFIGURE_ARGS+= --disable-sdl
CONFIGURE_ARGS+= --enable-sdl2
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
TOOL_DEPENDS+= nasm>=2.14:../../devel/nasm
.endif
.if ${MACHINE_ARCH} != "i386" && \
${MACHINE_ARCH} != "x86_64" && \
${MACHINE_ARCH} != "aarch64" && \
${MACHINE_ARCH} != "earmv6hf" && \
${MACHINE_ARCH} != "earmv7hf"
CONFIGURE_ARGS+= --disable-dynamic-core
.else
# LOG: Setting execute permission on the code cache has failed
NOT_PAX_MPROTECT_SAFE+= bin/dosbox-x
.endif
PKGCONFIG_OVERRIDE+= vs2015/libpng/libpng.pc.in
PKGCONFIG_OVERRIDE+= vs2015/sdl/sdl.pc.in
PKGCONFIG_OVERRIDE+= vs2015/sdl2/sdl2.pc.in
PKGCONFIG_OVERRIDE+= vs2015/sdlnet/SDL_net.pc.in
PKGCONFIG_OVERRIDE+= vs2015/zlib/zlib.pc.in
INSTALLATION_DIRS+= bin share/dosbox-x
INSTALLATION_DIRS+= share/applications
INSTALLATION_DIRS+= share/pixmaps
CHECK_PORTABILITY_SKIP+= vs2015/sdl2/build-scripts/androidbuildlibs.sh
CHECK_PORTABILITY_SKIP+= vs2015/sdl2/build-scripts/iosbuild.sh
BUILDLINK_TRANSFORM+= rm:-Wno-int-to-void-pointer-cast
BUILDLINK_TRANSFORM+= rm:-Wno-address-of-packed-member
pre-configure:
cd ${WRKSRC} && autoreconf -fi
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/dosbox-x ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/contrib/fonts/FREECG98.BMP \
${DESTDIR}${PREFIX}/share/dosbox-x
${INSTALL_DATA} ${WRKSRC}/contrib/icons/dosbox-x.png \
${DESTDIR}${PREFIX}/share/pixmaps/dosbox-x.png
${INSTALL_DATA} ${WRKSRC}/contrib/linux/com.dosbox_x.DOSBox-X.desktop \
${DESTDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/CHANGELOG \
${DESTDIR}${PREFIX}/share/dosbox-x
${INSTALL_DATA} ${WRKSRC}/dosbox-x.reference.conf \
${DESTDIR}${PREFIX}/share/dosbox-x
.include "options.mk"
.include "../../audio/fluidsynth/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|