7bf1d88a321632f90149b026046f024beb7f1a62
[dragonfly.git] / sys / conf / acpi.mk
1 # $DragonFly: src/sys/conf/acpi.mk,v 1.1 2005/08/16 10:31:35 y0netan1 Exp $
2 #
3
4 ACPICA_VERSION=         20050309
5 ACPICA_DIR?=            contrib/dev/acpica-unix-${ACPICA_VERSION}
6 OSACPI_MI_DIR?=         dev/acpica5
7 OSACPI_MD_DIR?=         ${MACHINE_ARCH}/acpica5
8
9 .if !defined(SYSDIR) && defined(S)
10 SYSDIR= $S
11 .endif
12
13 .PATH:  ${SYSDIR}/${ACPICA_DIR}/interpreter/dispatcher  \
14         ${SYSDIR}/${ACPICA_DIR}/interpreter/executer    \
15         ${SYSDIR}/${ACPICA_DIR}/interpreter/parser      \
16         ${SYSDIR}/${ACPICA_DIR}/events                  \
17         ${SYSDIR}/${ACPICA_DIR}/hardware                \
18         ${SYSDIR}/${ACPICA_DIR}/namespace               \
19         ${SYSDIR}/${ACPICA_DIR}/resources               \
20         ${SYSDIR}/${ACPICA_DIR}/tables                  \
21         ${SYSDIR}/${ACPICA_DIR}/utilities               \
22         ${SYSDIR}/${ACPICA_DIR}/debugger                \
23         ${SYSDIR}/${ACPICA_DIR}/disassembler            \
24         ${SYSDIR}/${ACPICA_DIR}/INTERPRETER/DISPATCHER  \
25         ${SYSDIR}/${ACPICA_DIR}/INTERPRETER/EXECUTER    \
26         ${SYSDIR}/${ACPICA_DIR}/INTERPRETER/PARSER      \
27         ${SYSDIR}/${ACPICA_DIR}/EVENTS                  \
28         ${SYSDIR}/${ACPICA_DIR}/HARDWARE                \
29         ${SYSDIR}/${ACPICA_DIR}/NAMESPACE               \
30         ${SYSDIR}/${ACPICA_DIR}/RESOURCES               \
31         ${SYSDIR}/${ACPICA_DIR}/TABLES                  \
32         ${SYSDIR}/${ACPICA_DIR}/UTILITIES
33
34 ${.OBJDIR}/acpi.h: ${SYSDIR}/${ACPICA_DIR}/include/acpi.h
35         cp ${.ALLSRC} ${.TARGET}
36
37 ${.OBJDIR}/platform/acenv.h: ${SYSDIR}/${ACPICA_DIR}/include/platform/acenv.h
38         mkdir -p ${.OBJDIR}/platform
39         sed -e 's/__FreeBSD__/__DragonFly__/' \
40             -e 's/acfreebsd.h/acdragonfly.h/' ${.ALLSRC} > ${.TARGET}.new
41         mv -f ${.TARGET}.new ${.TARGET}