libieee1284: portability patch for musl.
This commit is contained in:
parent
6cc300623b
commit
c0c222c0a7
2 changed files with 21 additions and 7 deletions
20
srcpkgs/libieee1284/patches/musl.patch
Normal file
20
srcpkgs/libieee1284/patches/musl.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- src/access_io.c.orig 2005-03-11 18:55:41.000000000 +0100
|
||||
+++ src/access_io.c 2015-05-31 11:14:36.635234600 +0200
|
||||
@@ -47,7 +47,7 @@
|
||||
#include "parport.h"
|
||||
#include "ppdev.h"
|
||||
|
||||
-#ifdef HAVE_LINUX
|
||||
+#if defined(HAVE_LINUX) && defined(__GLIBC__)
|
||||
|
||||
#ifdef HAVE_SYS_IO_H
|
||||
#include <sys/io.h>
|
||||
@@ -62,7 +62,7 @@ struct iopbuf {
|
||||
unsigned char port_value;
|
||||
};
|
||||
|
||||
-#elif defined(HAVE_CYGWIN_9X)
|
||||
+#elif defined(HAVE_LINUX) && !defined(__GLIBC__) || defined(HAVE_CYGWIN_9X)
|
||||
|
||||
#include "io.h"
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'libieee1284'
|
||||
pkgname=libieee1284
|
||||
version=0.2.11
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static --without-python"
|
||||
short_desc="A library to query devices connected in parallel port"
|
||||
|
@ -11,12 +11,6 @@ license="GPL-2"
|
|||
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.bz2"
|
||||
checksum=7730de107782e5d2b071bdcb5b06a44da74856f00ef4a9be85d1ba4806a38f1a
|
||||
|
||||
post_extract() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) export CFLAGS+=" -Doutb_p=outb";;
|
||||
esac
|
||||
}
|
||||
|
||||
libieee1284-devel_package() {
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
|
|
Loading…
Reference in a new issue