File: 05-support-gnu-kfreebsd.patch

package info (click to toggle)
libjna-java 5.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,840 kB
  • sloc: java: 89,413; ansic: 4,951; xml: 4,793; makefile: 431; sh: 299
file content (25 lines) | stat: -rw-r--r-- 927 bytes parent folder | download | duplicates (6)
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
Author: Jan Dittberner <jandd@debian.org>
Subject: patch build.xml and native/Makefile to support Debian GNU/kFreeBSD

--- a/native/Makefile
+++ b/native/Makefile
@@ -39,6 +39,7 @@
 OS=$(shell uname | sed -e 's/CYGWIN.*/win32/g' \
 	                -e 's/MINGW32.*/win32/g' \
                         -e 's/SunOS.*/solaris/g' \
+                        -e 's/GNU\/kFreeBSD/linux/g' \
                         -e 's/NetBSD/netbsd/g' \
                         -e 's/FreeBSD/freebsd/g' \
                         -e 's/OpenBSD/openbsd/g' \
--- a/build.xml
+++ b/build.xml
@@ -202,6 +202,9 @@
     <condition property="os.prefix" value="freebsd-${os.arch}">
       <os name="FreeBSD"/>
     </condition>
+    <condition property="os.prefix" value="linux-${jre.arch}">
+      <os name="GNU/kFreeBSD"/>
+    </condition>
     <condition property="os.prefix" value="openbsd-${os.arch}">
       <os name="OpenBSD"/>
     </condition>