New package: xnp2-0.86

Closes: #11373 [via git-merge-pr]
This commit is contained in:
hipperson0 2018-02-03 17:43:19 +00:00 committed by Jürgen Buchmüller
parent 3c14ea5545
commit f1f2ab3cd3
3 changed files with 51 additions and 0 deletions

7
srcpkgs/xnp2/INSTALL.msg Normal file
View File

@ -0,0 +1,7 @@
The following packages are not required for operation, but are necessary
to support extra features:
SDL2 Required when using sound and joystick.
SDL2_mixer Required when playing PCM such as floppy seek sound.
libXxf86vm Required when using full screen function to change screen resolution.
libusb Required when supporting C86 BOX.

View File

@ -0,0 +1,17 @@
--- x11/compiler.h.old 2018-02-02 17:00:29.174895866 +0000
+++ x11/compiler.h 2018-02-02 17:00:41.199160781 +0000
@@ -117,12 +117,14 @@
#define MAX_PATH MAXPATHLEN
#endif
+#ifndef __cplusplus
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
+#endif /* __cplusplus */
#ifndef ZeroMemory
#define ZeroMemory(d,n) memset((d), 0, (n))

27
srcpkgs/xnp2/template Normal file
View File

@ -0,0 +1,27 @@
# Template file for 'xnp2'
pkgname=xnp2
version=0.86
revision=1
build_wrksrc=x11
build_style=gnu-configure
configure_args="--enable-ia32 --enable-build-all"
hostmakedepends="pkg-config nasm"
makedepends="gtk+-devel SDL2-devel"
short_desc="A port for UNIX with X11 of the Neko Project II PC-9801 emulator"
maintainer="hipperson0 <hipperson0@gmail.com>"
license="BSD"
homepage="https://www.nonakap.org/np2"
distfiles="https://www.nonakap.org/np2/release/xnp2-${version}.tar.bz2"
checksum=e0b8c93f54682a4b3373907fd9ffe78094f95f7430dffc5038eccbcc4c3f78fd
do_install() {
vbin xnp2
vbin xnp21
vman xnp2.1
vman xnp2.1j
vman xnp21.1
vman xnp21.1j
vdoc README.ja
sed '/\*\//q' main.c > LICENSE
vlicense LICENSE
}