File: Imlib.def

package info (click to toggle)
imlib 1.3-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 644 kB
  • ctags: 315
  • sloc: ansic: 8,712; makefile: 354; sh: 197
file content (172 lines) | stat: -rw-r--r-- 4,879 bytes parent folder | download | duplicates (2)
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
XCOMM	Imlib compilation configuration file
XCOMM	------------------------------------

XCOMM	Imlib installation directory
XCOMM	----------------------------
XCOMM	The root directory of where the installation will put include and lib.

IMLROOT = /usr

XCOMM	imlib custom configuration file
XCOMM	--------------------------------
XCOMM	Change the following to where you would like imrc and imlib.pal 
XCOMM	to be loaded

CNFDIR = /usr/etc

XCOMM	Location of the NetPBM Utilities
XCOMM	--------------------------------
XCOMM	NetPBM is needed to convert from various formats to various other
XCOMM	formats that imlib understands.  This should be the location of
XCOMM	those files.
XCOMM
XCOMM	On SunOS and Solaris machines, Sun provides these binaries. 

#ifdef	SunArchitecture
NETPBM_DIR = /usr/openwin/bin
#else
NETPBM_DIR = /usr/local/bin
#endif

XCOMM	Location of the IJG JPEG Utilities
XCOMM	----------------------------------
XCOMM	imlib needs convert and djpeg from the IJG.  This is the location
XCOMM	of those files.

CONVERT_DIR = /usr/local/bin
JPEG_DIR = /usr/local/bin

XCOMM	JPEG Library Support
XCOMM	--------------------
XCOMM	imlib can use the IJG JPEG library (libjpeg) directly.  If you
XCOMM	wish to compile this in, set this to YES.

#define DoJPEG  NO

XCOMM   PNG Library Support
XCOMM   --------------------
XCOMM   imlib can use the PNG Consortium library (libpng) directly.  
XCOMM	If you wish to compile this in, set this to YES.
XCOMM	[NOTE:  This library requires libz be availabel too.]

#define DoPNG NO

XCOMM   TIFF Library Support
XCOMM   --------------------
XCOMM   imlib can use the TIFF library (libtiff) directly.  If you
XCOMM   wish to compile this in, set this to YES.

#define DoTIFF  NO

XCOMM   GIF Library Support
XCOMM   -------------------
XCOMM   imlib can use the GIF library (libgif) directly.  If you
XCOMM   wish to compile this in, set this to YES.

#define DoGIF  NO


XCOMM	Shared Library Support
XCOMM	----------------------
XCOMM	By default, a shared library will be built *if* your architecture
XCOMM	supports it.  If you wish to disable shared libraries, then either
XCOMM	comment this out or change HasSharedLibraries to NO.

#define DoSharedLib HasSharedLibraries

XCOMM	Extra Library Support
XCOMM	-------------------------
XCOMM	If you are a developer and wish to activate debugging, profiled,
XCOMM	or a lint'ed library, activate them here.  For most users, 
XCOMM	the defaults are fine.

#define DoLintLib NO
#define DoProfileLib NO
#define DoDebugLib NO

XCOMM	String Prototypes
XCOMM	-----------------
XCOMM	Most environments have either a strings.h or a string.h  or both... 
XCOMM	and, a few have neither. Change the YES to NO if you do not have these
XCOMM	files in /usr/include (or wherever your include files are.)
XCOMM	For most people, the defaults will be fine.

#define StringH YES
#define StringsH NO

XCOMM	Compiler Flags
XCOMM	--------------
XCOMM	By default, the Makefile will have whatever flags you need defined
XCOMM	according to what is in the Imake configuration files.  You
XCOMM	can make some custom changes here:

XCOMM   GNU C v2.xxx flags
#if HasGcc2
IML_USR_FLAGS = -Wall -pedantic

XCOMM   Solaris v2.6+  or  Solaris v2.5.1-
#elif defined(HasSunC) || defined(SunArchitecture) && defined(SVR4)    
IML_USR_FLAGS = -v -fast -native -D__EXTENSIONS__

XCOMM   Digital UNIX
#elif ModernOSF1                        /* Digital UNIX */
IML_USR_FLAGS = -fast -verbose -warnprotos -D__EXTENSIONS__

XCOMM	<Your OS Here>
#else
IML_USR_FLAGS =
#endif

XCOMM	Include Files
XCOMM	-------------
XCOMM	If you have some extra include files that you would like to
XCOMM	have available, set this.

XCOMM IML_USR_INC = -I<your directory here>

XCOMM	Library Files
XCOMM	-------------
XCOMM	If you need an additional path to find libraries in,
XCOMM	set this.

XCOMM IML_USR_LIB = -L<your directory here>

XCOMM -------------------------------------------------------------------
XCOMM -------------------------------------------------------------------
XCOMM        DO NOT MODIFY ANYTHING BELOW THIS SECTION
XCOMM -------------------------------------------------------------------
XCOMM -------------------------------------------------------------------
XCOMM
XCOMM	Developers:  These defines are availble to you for your own
XCOMM			Imakefiles.  

#if (RequireImlibDefs > 1 )

XCOMM Have imlib do JPEG rendering?
#if DoJPEG
JPEGL_DEF = -DBUILTIN_JPEG
JPEGL_LIB = -ljpeg
#endif

XCOMM Have imlib do PNG rendering?
#if DoPNG
PNGL_DEF = -DBUILTIN_PNG
PNGL_LIB = -lpng -lz -lm
#endif

XCOMM Have imlib do TIFF rendering?
#if DoTIFF
TIFFL_DEF = -DBUILTIN_TIFF
TIFFL_LIB = -ltiff
#endif

XCOMM Have imlib do GIF rendering?
#if DoGIF
GIFL_DEF = -DBUILTIN_GIF
GIFL_LIB = -lgif
#endif

GRFX_DEF = $(JPEGL_DEF) $(PNGL_DEF) $(TIFFL_DEF) $(GIFL_DEF)
GRFX_LIB = $(JPEGL_LIB) $(PNGL_LIB) $(TIFFL_LIB) $(GIFL_LIB)

#endif