~ubuntu-branches/ubuntu/trusty/argyll/trusty-proposed

« back to all changes in this revision

Viewing changes to Jamtop

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2014-02-12 00:35:39 UTC
  • mfrom: (13.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20140212003539-24tautzlitsiz61w
Tags: 1.5.1-5ubuntu1
* Merge from Debian unstable. (LP: #1275572) Remaining changes:
  - debian/control:
    + Build-depend on libtiff-dev rather than libtiff4-dev.
  - debian/control, debian/patches/06_fix_udev_rule.patch:
    + Fix udev rules to actually work; ENV{ACL_MANAGE} has
      stopped working ages ago, and with logind it's now the
      "uaccess" tag. Dropping also consolekit from Recommends.
  - debian/patches/drop-usb-db.patch:
    + Use hwdb builtin, instead of the obsolete usb-db
      in the udev rules.
* debian/patches/05_ftbfs-underlinkage.diff:
  - Dropped change, no needed anymore.
* Refresh the patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
# Tell standalone libraries that they are part of Argyll:
25
25
DEFINES += ARGYLLCMS ;
26
26
 
 
27
# enable serial instruments & support
 
28
USE_SERIAL = true ;     
 
29
 
 
30
# enable USB instruments & support
 
31
USE_USB = true ;        
 
32
 
 
33
# Use native USB drivers, else use libusb
 
34
USE_NATIVE_USB = true ;
 
35
 
27
36
# Use libusb1 rather than libusb0 & libusb0-win32
28
37
USE_LIBUSB1 = true ;
29
38
 
30
 
# Except that FreeBSD doesn't have libusb1 port yet..
 
39
# Except that FreeBSD doesn't have a spectro/usbio_bsd.c yet
31
40
if $(OS) = FREEBSD || $(OS) = OPENBSD {
32
 
        USE_LIBUSB1 = false ; # Use libusb 0.1
 
41
        USE_NATIVE_USB = false ;        # Use libusb
 
42
        USE_LIBUSB1 = false ;           # Use libusb 0.1
33
43
}
34
44
 
35
45
# Make the USB V1 library static
50
60
                LINKFLAGS += -framework IOKit ;
51
61
                LINKFLAGS += -framework CoreFoundation ;
52
62
                LINKFLAGS += -framework AudioToolbox ;
 
63
                LINKFLAGS += -framework AppKit ;
53
64
 
54
65
        } else {
55
66
                if [ GLOB /usr/X11R6/include/X11 : X.h ] {
56
67
                        LibWinH = /usr/X11R6/include ;
57
68
                } else if [ GLOB /usr/include/X11 : X.h ] {
58
69
                        LibWinH = /usr/include ;
 
70
                } else if [ GLOB /usr/local/include/X11 : X.h ] {
 
71
                        LibWinH = /usr/local/include ;
59
72
                } else {
60
73
                        EXIT Unable to locate the X11 include files ;
61
74
                }
67
80
                                LibWinD = /usr/lib/x86_64-linux-gnu ;
68
81
                        } else if [ GLOB /usr/lib64 : libX11.so ] {
69
82
                                LibWinD = /usr/lib64 ;
 
83
                        } else if [ GLOB /usr/lib : libX11.so ] {
 
84
                                LibWinD = /usr/lib ;
 
85
                        } else if [ GLOB /usr/local/lib : libX11.so ] {
 
86
                                LibWinD = /usr/local/lib ;
70
87
                        } else {
71
88
                                ECHO Unable to locate the 64 bit X11 library files ;
72
89
                        }
75
92
                                LibWinD = /usr/X11R6/lib ;
76
93
                        } else if [ GLOB /usr/lib : libX11.so ] {
77
94
                                LibWinD = /usr/lib ;
 
95
                        } else if [ GLOB /usr/local/lib : libX11.so ] {
 
96
                                LibWinD = /usr/local/lib ;
78
97
                        } else {
79
98
                                ECHO Unable to locate the 32 bit X11 library files ;
80
99
                        }
90
109
 
91
110
# See if we have a system TIFF library.
92
111
if ! $(BUILTIN_TIFF) && $(UNIX) {
93
 
        if [ GLOB /usr/include : tiffio.h ]  {
94
 
                if  ! $(HOST64) && ( [ GLOB /usr/lib : libtiff.so ] || [ GLOB /usr/lib : libtiff.a ] )
95
 
                 ||   $(HOST64) && ( [ GLOB /usr/lib64 : libtiff.so ] || [ GLOB /usr/lib64 : libtiff.a ] )
96
 
                 ||   $(HOST64) && ( [ GLOB /usr/lib/x86_64-linux-gnu : libtiff.so ] || [ GLOB /usr/lib/x86_64-linux-gnu : libtiff.a ] ) {
 
112
        if [ GLOB /usr/include : tiffio.h ] || [ GLOB /usr/local/include : tiffio.h ]  {
 
113
                if  [ GLOB /usr/lib : libtiff.so ] || [ GLOB /usr/lib : libtiff.a ]
 
114
                 || [ GLOB /usr/lib64 : libtiff.so ] || [ GLOB /usr/lib64 : libtiff.a ]
 
115
                 || [ GLOB /usr/lib/x86_64-linux-gnu : libtiff.so ]
 
116
                 || [ GLOB /usr/lib/x86_64-linux-gnu : libtiff.a ]
 
117
                 || [ GLOB /usr/local/lib : libtiff.so ] || [ GLOB /usr/local/lib : libtiff.a ] { 
97
118
                        echo "Using system TIFF library" ;
98
119
                        TIFFLIB = ;
99
120
                        TIFFINC = ;
105
126
 
106
127
# If nothing else, use Argyll supplied TIFF library
107
128
if ! $(HAVE_TIFF) || $(BUILTIN_TIFF) {
108
 
        echo "Using built in TIFF library" ;
 
129
        echo "Using Argyll TIFF library" ;
109
130
        TIFFLIB = ../tiff/libtiff.lib ;
110
131
        TIFFINC = ../tiff ;
111
132
}
112
133
 
113
134
# See if we have a system JPEG library.
114
135
if ! $(BUILTIN_JPEG) && $(UNIX) {
115
 
        if [ GLOB /usr/include : jpeglib.h ]  {
116
 
                if  ! $(HOST64) && ( [ GLOB /usr/lib : libjpg.so ] || [ GLOB /usr/lib : libjpg.a ] )
117
 
                 ||   $(HOST64) && ( [ GLOB /usr/lib64 : libjpg.so ] || [ GLOB /usr/lib64 : libjpg.a ] )
118
 
                 ||   $(HOST64) && ( [ GLOB /usr/lib/x86_64-linux-gnu : libjpg.so ] || [ GLOB /usr/lib/x86_64-linux-gnu : libjpg.a ] ) {
 
136
        if [ GLOB /usr/include : jpeglib.h ] || [ GLOB /usr/local/include : jpeglib.h ] {
 
137
                if  [ GLOB /usr/lib : libjpeg.so ] || [ GLOB /usr/lib : libjpeg.a ]
 
138
                 || [ GLOB /usr/lib64 : libjpeg.so ] || [ GLOB /usr/lib64 : libjpeg.a ]
 
139
                 || [ GLOB /usr/lib/x86_64-linux-gnu : libjpeg.so ]
 
140
                 || [ GLOB /usr/lib/x86_64-linux-gnu : libjpeg.a ]
 
141
                 || [ GLOB /usr/local/lib : libjpeg.so ] || [ GLOB /usr/local/lib : libjpeg.a ] {
119
142
                        echo "Using system JPEG library" ;
120
143
                        JPEGLIB = ;
121
144
                        JPEGINC = ;
122
 
                        LINKFLAGS += $(LINKFLAG)tiff ;
 
145
                        LINKFLAGS += $(LINKFLAG)jpeg ;
123
146
                        HAVE_JPEG = true ;
124
147
                }
125
148
        }
127
150
 
128
151
# If nothing else, use Argyll supplied JPEG library
129
152
if ! $(HAVE_JPEG) || $(BUILTIN_JPEG) {
130
 
        echo "Using built in JPEG library" ;
131
 
        JPEGLIB = ../jpg/libjpg.lib ;
 
153
        echo "Using Argyll JPEG library" ;
 
154
        JPEGLIB = ../jpg/libjpeg.lib ;
132
155
        JPEGINC = ../jpg ;
133
156
}
134
157