diff --git a/srcpkgs/xosview/patches/musl-fix.patch b/srcpkgs/xosview/patches/musl-fix.patch new file mode 100644 index 00000000000..98f81c61880 --- /dev/null +++ b/srcpkgs/xosview/patches/musl-fix.patch @@ -0,0 +1,14 @@ +--- linux/serialmeter.cc 2016-01-02 10:39:10.279496776 +0100 ++++ linux/serialmeter.cc 2016-01-02 10:37:54.667491325 +0100 +@@ -39,9 +39,11 @@ + #endif + #else + #if !defined(__alpha__) && !defined(__sparc__) && !defined(__powerpc__) && !defined(__ia64__) && !defined(__m68k__) ++#if defined(HAVE_ASM_IO_H) + #include + #endif + #endif ++#endif + #include + + diff --git a/srcpkgs/xosview/template b/srcpkgs/xosview/template new file mode 100644 index 00000000000..ceb7e2504ca --- /dev/null +++ b/srcpkgs/xosview/template @@ -0,0 +1,19 @@ +# Template file for 'xosview' +pkgname=xosview +version=1.17 +revision=1 +build_style=gnu-makefile +makedepends="libXpm-devel" +short_desc="A classic system monitoring tool" +maintainer="Diogo Leal " +license="GPL-3" +homepage="http://www.pogo.org.uk/~mark/xosview" +distfiles="http://www.pogo.org.uk/~mark/xosview/releases/xosview-${version}.tar.gz" +checksum=640998e7bd23b875e2556a97b9149a4cca0ac255889f484489b13a888c19b3f1 + +case "$XBPS_TARGET_MACHINE" in + *-musl) # does not have asm/io.h + ;; + *) CFLAGS="-DHAVE_ASM_IO=1" + ;; +esac