File: keywords

package info (click to toggle)
acr 2.2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 712 kB
  • sloc: sh: 4,738; makefile: 41
file content (298 lines) | stat: -rw-r--r-- 8,179 bytes parent folder | download | duplicates (5)
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
Keywords for the ACR configuration file:
========================================

Tips:
-----
- Arguments of the functions doesn't have '<' or '>' tags.
- '"' character means that contains the text of the above line

All LANG_?? sets HAVE_LANG_?? variable to 1 or 0. Append '!' character
to crash when no target lang found.


operations:
-----------
=  <varname> <string> <...> ;
+= <varname> <string> <...> ;
?= <varname> <string> <...> ;
	Assigns or appends the typed <strings> to the selected <varname>

keywords:
---------
PKGNAME <pkgname>
	Sets the target package name to be used.

VERSION <version>
	Sets the version number for the package

AUTHOR <name> ; <email>
	Sets the Author string for --help. The author, is the person who starts the project
	environment:
	AUTHOR_MAIL: -> author email
	AUTHOR_NAME: -> author name

CONTACT <name> ; <email>
	Sets the Contact string for --help, the address to contact for support
	environment:
	CONTACT_MAIL: -> contact email
	CONTACT_NAME: -> contact name

REQUIRE_ACR_VERSION <number>
	Check for ACR version before generating the configure.

REPORT <varname> <varname> ;
	Shows a final report of the results of ./configure script.

LANG_C[!]
	Tells to ACR that package needs a C compiler.
	- sets CC to 'gcc' if not defined.
	- adds implicit LANG_CPP

LANG_CC[!]
LANG_CXX[!]
	Tells to ACR that package needs a C++ compiler.
	- sets CXX to 'g++' if not defined.

LANG_BASH[!]
	Looks for bash shell installed on the system
	- sets SH to the BASH path

LANG_TCL[!]
	Looks for tcl version and libraries.
	- Sets TCL_VERSION, TCL_LIBS and HAVE_TCL=[0|1] 
	- for more information look at ${pfx}/lib/tclConfig.sh

LANG_JAVA[!]
	Tells to use java
	- adds --with-jikes and --with-kjc flags
	- export JAVAC environ

LANG_VALA[!]
	checks for vala and valac programs and gets libvala version
	environment:
	VALA
	VALAC
	VALA_VERSION
	HAVE_VALA
	HAVE_VALAC
	HAVE_LANG_VALA

LANG_PERL
	Looks for perl installed on current system

LANG_RUBY
	Looks for ruby binaries and exports HAVE_LANG_RUBY, RUBY and RUBY_VERSION

USE_PERL_THREADS[!]
	Looks for perl-threads on the system
	- Sets HAVE_PERL_THREAD to 0|1

USE_JNI
	Checks JAVA_HOME to use it for building java native interfaces.
	- Sets JCFLAGS
	
USE_DL
	Autodetects if system needs libdl and sets LIBS_DL environ
	- Sets LIBS_DL to -ldl or ""
	- Sets HAVE_LIB_DL to 1|0

USE_ICONV
	Autodetects if system needs libiconv.
	- Sets LIBS_ICONV

USE_PTHREAD
	Finds POSIX threads implementation and sets PTHREAD_LIBS variable to
	the properly one that must be attached to the LDFLAGS by the user.

NOP
	Does nothing keyword. (NO OPERATION)

USE_BACKUP
	Use the .backup feature to recheck SUBST_FILES. (doc/backup)

EXPORT_DEFINED
	Export only variables that value != "" and != 0

USE_X11
	Adds --with-x11base=xx and --without-x flags
	- Sets X11BASE

USE_TK
	Adds --with-tk-libdir flag
	- Sets HAVE_TK TK_VERSION TK_CFLAGS and TK_LIBS

USE_GMAKE
	Finds the GNU version of make.
	- sets MAKE to the GNU make path

CHECK       <varname> <eof> <..code..> <eof>
CHECK_EXEC  <varname> <eof> <..code..> <eof>
	Executes the <..code..> delimited by the <eof> keyword and marks varname
	as the target variable to be defined by the script.

	(see examples/check.acr fmi)


CHECK_INCLUDE[!]  <include.h>
CHKINC[!]         <include.h>
	Finds the requested include file
	- needs LANG_C or LANG_CXX
	- sets HAVE_INCLUDE_H to 1 or 0

CHKFNC[!]          <libname> <function>
CHECK_FUNCTION[!]  <libname> <function>
	Checks if desired function exists in libname
	- sets HAVE_FUNCTION environ to 0 or 1.

	-> for example:
	CHECK_FUNCTION SDL_mixer Mix_Linked_Version

CHKLIB[!]         <libname>
CHECK_LIBRARY[!]  <libname>
	Finds the functionname in libname
	- sets HAVE_LIB_LIBNAME environ to 0 or 1

	-> for example:
	CHECK_LIBRARY SDL

ENDIAN
CHECK_ENDIAN
	Checks for host endianness (big or little) (not middle supported ;)

	This keyword exports BYTEORDER LIL_ENDIAN and BIG_ENDIAN vars.

	BYTEORDER is 1234 on little endian machines and 4321 for big endian.

	LIL_ENDIAN and BIG_ENDIAN values are 0 xor 1


INCLUDE <module-name>
	Allows to include a file called 'module-name' in the acr module
	directory ( ${prefix}/share/acr/modules/ ) or in the current
	directory.
	

SIZEOF varname ;
	Gets the size of the target value and assigns it to the variable.
	SIZEOF_VARNAME.

	-> for example:
	SIZEOF int ;
	SIZEOF long long ;

CHK_PM <perl_module>
CHECK_PERL_MODULE <perl_module>
	Checks if the system have installed the desired perl module
	- Sets HAVE_PM_xxx to 0|1

CHKVER <pkgname> <version>
CHECK_VERSION <pkgname> <version>
	Checks if pkgname (software package registered into pkg-config db)
	is <= version.

CHKPRG[!]        <variable> <program>
CHECK_PROGRAM[!] <variable> <program>
	Finds the program in ${PATH} or uses the environment variable.
	- define <variable> to path to <program>

CHK_CP[!] <java_package_name>
CHECK_CLASSPATH[!] <"">
	Checks if the desired package name (java.util, org.gnu.gtk...) is
	inside the CLASSPATH and can be used.

CHK_PY[!] <python_module>
CHECK_PYTHON_MODULE[!] <python module>
	Checks for the requested python module. Sets HAVE_PY_xxx.

CHK_RU[!] <python_module>
CHECK_RUBY_EXTENSION[!] <ruby extension>
	Checks for the requested ruby extension. Sets HAVE_PY_xxx.

OUTPUT_H <file1> <file2> ;
	Generates a .h file that #defines all environment variables

OUTPUT_SH <file1> <file2> ;
	Generate a shell-script compatible file that sets all result variables.

SUBST_FILES <file1> <file2> ;
	Subst all @VARNAME@ to value of ${VARNAME}

SUBDIRS <dir1> <dir2> ;
	Finds in dirs for Makefile.acr files to generate the final Makefile
	(acr>=0.4) if the target is a file plus '.acr' then will use this
	file as incoming filtering.

SUBCONF <dirname> <dirname> ;
	Call recursively other ./configure scripts found in <dirname> passing the 
	root ./configure flag arguments.

ARG_WITH    <varname> <flagname> <value> <description string> ;
ARG_WITHOUT  " " " "
ARG_ENABLE   " " " "
ARG_DISABLE  " " " "
	Adds a with/without/enable/disable flag to the configure script.
	For example:
		ARG_ENABLE STATIC static Build static binaries ;
		-> will be used:
		./configure --enable-static

		ARG_WITH DATAPATH datapath Sets the path for the data
		-> will be used:
		./configure --with-datapath=/path/to/data

CHECK <varname> <eof-string> <code> <eof-string>
	Executes the <code> and sets <varname> to set the varname.
	For example:
		CHECK SDL_sound <<EOF
			
		<<EOF

EXPORT <varname> <varname> ;
	Exports a new varname to the ACR environment. This is used to subst
	@XXX@ strings on files

NOT <varname>
	Negates the value of the requested varname.

IF    <varname> <setvarname> <op> <value> ;
IFNOT <varname> <setvarname> <op> <value> ;
	Sets <setvarname> to <value> when <varname> = (IF=1,IFNOT=0)

IFNULL    <varname> <setvarname> <op> <value> ;
IFNOTNULL <varname> <setvarname> <op> <value> ;
	Sets <setvarname> to <value> when <varname> = "" or not

IFEQ    <varname> <value> ; <setvar> <op> <setvalue> ;
IFNOTEQ <varname> <value> ; <setvar> <op> <setvalue> ;
	If value of varname is equal to the given <value> then will set the
	<setvalue> to the <setvar>.

IFEQVAL    <varname> <varname2> <setvar> <op> <setvalue> ;
IFNOTEQVAL <varname> <varname2> <setvar> <op> <setvalue> ;
	If value of varname is equal to the value of <varname2> then will set the
	<setvar> to the <setvar>.

IFAND    <var1> <var2> <setvar> <op> <setvalue> ;
IFNOTAND <var1> <var2> <setvar> <op> <setvalue> ;
	If value of <var1> is the same that <var2> then <setvar> variable
	will have the value of <setvalue>.

DIE    <varname> <word> <word> <word> ;
DIENOT <varname> <word> <word> <word> ;
	Configure script fails when <varname> = (DIE=1,DIENOT=0)
	DIE will print the array of words after crash.

VALAPKG <pkgname>
	Check if the given Vala package name exists

PKGCFG    <cflags-var> <ldflags-var> <pkg-config-name>
PKGCONFIG
PKGCFG+
PKGCONFIG+
	Uses pkg-config to set the cflags and ldflags values. Suffixing the command
	by the '+' sign pkg-config output will be appended at the end of the
	desired variable name.

EXEC VAR command to be executed ;
	Sets VAR=`command to be executed`
	- Exports it.