parent
f351aaaf85
commit
9897b35661
@ -0,0 +1,13 @@ |
||||
diff --git a/src/chartype.h b/src/chartype.h
|
||||
index 0beee17..4ac86f3 100644
|
||||
--- a/src/chartype.h
|
||||
+++ b/src/chartype.h
|
||||
@@ -44,7 +44,7 @@
|
||||
* supports non-BMP code points without requiring UTF-16, but nothing
|
||||
* seems to actually advertise this properly, despite Unicode 3.1 having
|
||||
* been around since 2001... */
|
||||
-#if !defined(__NetBSD__) && !defined(__sun) && !(defined(__APPLE__) && defined(__MACH__)) && !defined(__OpenBSD__)
|
||||
+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__sun) && !(defined(__APPLE__) && defined(__MACH__)) && !defined(__OpenBSD__)
|
||||
#ifndef __STDC_ISO_10646__
|
||||
/* In many places it is assumed that the first 127 code points are ASCII
|
||||
* compatible, so ensure wchar_t indeed does ISO 10646 and not some other
|
@ -0,0 +1,28 @@ |
||||
{ fetchsvn, stdenv }: |
||||
|
||||
stdenv.mkDerivation (rec { |
||||
version = "3258"; |
||||
name = "libelf-freebsd-${version}"; |
||||
|
||||
#src = fetchurl { |
||||
# url = "http://sourceforge.net/code-snapshots/svn/e/el/elftoolchain/code/elftoolchain-code-${version}-trunk.zip"; |
||||
# sha256 = "0vf7s9dwk2xkmhb79aigqm0x0yfbw1j0b9ksm51207qwr179n6jr"; |
||||
#}; |
||||
src = fetchsvn { |
||||
url = svn://svn.code.sf.net/p/elftoolchain/code/trunk ; |
||||
rev = 3258; |
||||
}; |
||||
|
||||
doCheck = true; |
||||
|
||||
meta = { |
||||
description = "Essential compilation tools and libraries for building and analyzing ELF based program images"; |
||||
|
||||
homepage = https://sourceforge.net/p/elftoolchain/wiki/Home/; |
||||
|
||||
license = stdenv.lib.licenses.bsd2; |
||||
|
||||
platforms = stdenv.lib.platforms.freebsd; |
||||
maintainers = [ ]; |
||||
}; |
||||
}) |
@ -0,0 +1,54 @@ |
||||
diff --git a/Makefile b/Makefile
|
||||
index d1b0d0c..f8d6a2d 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -80,8 +80,6 @@ clean:
|
||||
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
-#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets
|
||||
-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU))
|
||||
|
||||
install:
|
||||
@cd $(LZ4DIR); $(MAKE) -e install
|
||||
@@ -129,4 +127,3 @@ examples:
|
||||
prg-travis:
|
||||
@cd $(PRGDIR); $(MAKE) -e test-travis
|
||||
|
||||
-endif
|
||||
diff --git a/lib/Makefile b/lib/Makefile
|
||||
index 02ddd3b..26ed18f 100644
|
||||
--- a/lib/Makefile
|
||||
+++ b/lib/Makefile
|
||||
@@ -80,8 +80,6 @@ clean:
|
||||
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
-#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets
|
||||
-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU))
|
||||
|
||||
liblz4.pc: liblz4.pc.in Makefile
|
||||
@echo creating pkgconfig
|
||||
@@ -114,4 +112,3 @@ uninstall:
|
||||
@[ -f $(DESTDIR)$(INCLUDEDIR)/lz4frame.h ] && rm -f $(DESTDIR)$(INCLUDEDIR)/lz4frame.h
|
||||
@echo lz4 libraries successfully uninstalled
|
||||
|
||||
-endif
|
||||
diff --git a/programs/Makefile b/programs/Makefile
|
||||
index f422902..6943363 100644
|
||||
--- a/programs/Makefile
|
||||
+++ b/programs/Makefile
|
||||
@@ -113,8 +113,6 @@ clean:
|
||||
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
-#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets
|
||||
-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU))
|
||||
|
||||
install: lz4 lz4c
|
||||
@echo Installing binaries
|
||||
@@ -307,4 +305,3 @@ test-mem: lz4 datagen fuzzer frametest fullbench
|
||||
test-mem32: lz4c32 datagen
|
||||
# unfortunately, valgrind doesn't seem to work with non-native binary. If someone knows how to do a valgrind-test on a 32-bits exe with a 64-bits system...
|
||||
|
||||
-endif
|
Loading…
Reference in new issue