Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / pkgtools / autoswc / files / autoswc.mk
blob8bebdf73dbd23c3ebf7273237a532794dfa5480b
1 # $NetBSD$
3 # autoswc - Generates system wide cache files for GNU autoconf
4 # Copyright (c) 2004 Julio M. Merino Vidal <jmmv@NetBSD.org>
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
8 # are met:
9 # 1. Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer.
11 # 2. Redistributions in binary form must reproduce the above copyright
12 # notice, this list of conditions and the following disclaimer in
13 # the documentation and/or other materials provided with the
14 # distribution.
15 # 3. Neither the name of author nor the names of its contributors may
16 # be used to endorse or promote products derived from this software
17 # without specific prior written permission.
19 # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 # POSSIBILITY OF SUCH DAMAGE.
32 .if !defined(AUTOSWC_MK)
33 AUTOSWC_MK= # defined
35 . if !defined(AUTOSWC_DISABLE)
36 AUTOSWC_CACHE_FILE?= @CACHEDIR@/config.cache.${AUTOSWC_CACHE_NAME}
37 AUTOSWC_CACHE_NAME?= default
39 . if exists(@SYSCONFDIR@/config.site)
40 AUTOSWC_CONFIG_SITE?= @SYSCONFDIR@/config.site
41 . else
42 AUTOSWC_CONFIG_SITE?= @PREFIX@/share/autoswc/config.site
43 . endif
45 CONFIGURE_ENV+= AUTOSWC_CACHE_FILE="${AUTOSWC_CACHE_FILE}"
46 CONFIGURE_ENV+= AUTOSWC_CACHE_NAME="${AUTOSWC_CACHE_NAME}"
47 CONFIGURE_ENV+= CONFIG_SITE="${AUTOSWC_CONFIG_SITE}"
48 . endif
50 .endif # AUTOSWC_MK