summaryrefslogtreecommitdiff
path: root/debian/patches/15_jam.patch.org
blob: f50b17a280517791a92d705f0276602432e74a81 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Description: Add multiarch support to jam files
Author: Jörg Frings Fürst <debian@jff-webhosting.net>
Forwarded: 
Last-Update: 2014-09-06
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: trunk/Jamtop
===================================================================
--- trunk.orig/Jamtop	2014-09-07 20:09:37.013428228 +0200
+++ trunk/Jamtop	2014-09-07 20:09:37.005428060 +0200
@@ -108,13 +108,18 @@
 }
 
 # See if we have a system TIFF library.
-if ! $(BUILTIN_TIFF) && $(UNIX) {
-	if [ GLOB /usr/include : tiffio.h ] || [ GLOB /usr/local/include : tiffio.h ]  {
+if ! $(BUILDIN_TIFF) {
+if $(UNIX) {
+	if    [ GLOB /usr/include : tiffio.h ] || [ GLOB /usr/local/include : tiffio.h ]
+	   || [ GLOB /usr/include/x86_64-linux-gnu : tiffio.h ]
+	   || [ GLOB /usr/include/i386-linux-gnu : tiffio.h ] {
 		if  [ GLOB /usr/lib : libtiff.so ] || [ GLOB /usr/lib : libtiff.a ]
 		 || [ GLOB /usr/lib64 : libtiff.so ] || [ GLOB /usr/lib64 : libtiff.a ]
 		 || [ GLOB /usr/lib/x86_64-linux-gnu : libtiff.so ]
 		 || [ GLOB /usr/lib/x86_64-linux-gnu : libtiff.a ]
-		 || [ GLOB /usr/local/lib : libtiff.so ] || [ GLOB /usr/local/lib : libtiff.a ] { 
+		 || [ GLOB /usr/lib/lib/i386-linux-gnu : libtiff.so ]
+		 || [ GLOB /usr/lib/lib/i386-linux-gnu : libtiff.a ]
+		 || [ GLOB /usr/local/lib : libtiff.so ] || [ GLOB /usr/local/lib : libtiff.a ] {
 			echo "Using system TIFF library" ;
 			TIFFLIB = ;
 			TIFFINC = ;
@@ -123,12 +128,13 @@
 		}
 	}
 }
+}
 
 # If nothing else, use Argyll supplied TIFF library
 if ! $(HAVE_TIFF) || $(BUILTIN_TIFF) {
 	echo "Using Argyll TIFF library" ;
-	TIFFLIB = ../tiff/libtiff.lib ;
-	TIFFINC = ../tiff ;
+#	TIFFLIB = ../tiff/libtiff.lib ;
+#	TIFFINC = ../tiff ;
 }
 
 # See if we have a system JPEG library.
Index: trunk/Jambase
===================================================================
--- trunk.orig/Jambase	2014-09-07 20:09:37.013428228 +0200
+++ trunk/Jambase	2014-09-07 20:10:45.770864145 +0200
@@ -880,7 +880,7 @@
 
 	# UNIX defaults
 
-	CCFLAGS			?= -DUNIX -D_THREAD_SAFE -pipe ;
+	CCFLAGS			?= $(CPPFLAGS) -g -DUNIX -D_THREAD_SAFE -pipe ;
 	CCOPTFLAG		?= -O2 ;		
 	CCDEBUGFLAG		?= -g ;		
 	CCPROFFLAG		?= ;		
@@ -890,7 +890,7 @@
 	CHGRP			?= chgrp ;
 	CHOWN			?= chown ;
 	LEX				?= lex ;
-	LINKFLAGS		?= ;
+	LINKFLAGS		?= $(LDFLAGS) ;
 	LINKOPTFLAG		?= -O ;				# Affects creating .so's
 	LINKSTRIPFLAG	?= -s ;
 	LINKDEBUGFLAG	?= ;
@@ -971,7 +971,7 @@
 	RMDIR			?= $(RM) ;
 	RSH				?= rsh ;
 	SED				?= sed ;
-	SHELLHEADER		?= "#!/bin/sh" ;
+	SHELLHEADER		?= "#!/bin/bash" ;
 	SHELLMODE		?= 755 ;
 	SLASH			?= / ;
 	STDHDRS			?= /usr/include ;
Index: trunk/imdi/Makefile
===================================================================
--- trunk.orig/imdi/Makefile	2014-09-07 20:09:37.013428228 +0200
+++ trunk/imdi/Makefile	2014-09-07 20:09:37.005428060 +0200
@@ -9,10 +9,10 @@
 # by uncommenting the appropriate line:
 
 # Microsoft VC++, WinNT setup
-include Makefile.WNT
+#include Makefile.WNT
 
 # Generic UNIX setup
-#include Makefile.UNIX
+include Makefile.UNIX
 
 # Apple OS X
 #include Makefile.OSX