47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.7 2012/01/11 02:35:14 sthen Exp $
|
|
|
|
ONLY_FOR_ARCHS = amd64 i386
|
|
|
|
COMMENT = reference implementation of ACPI tools
|
|
V = 20111123
|
|
DISTNAME = acpica-unix-$V
|
|
PKGNAME = acpica-$V
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = http://www.acpica.org/
|
|
MASTER_SITES = ${HOMEPAGE}download/
|
|
|
|
WANTLIB = c pthread
|
|
|
|
# Intel License
|
|
# http://www.acpica.org/downloads/unix_source_code.php
|
|
PERMIT_PACKAGE_CDROM = export restrictions
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM =export restrictions
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
USE_GMAKE = Yes
|
|
NO_REGRESS = Yes
|
|
BUILD_DEPENDS = devel/flex devel/bison
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/compiler && env CFLAGS="${CFLAGS}" ${MAKE_PROGRAM}
|
|
cd ${WRKSRC}/tools/acpisrc && env CFLAGS="${CFLAGS}" ${MAKE_PROGRAM}
|
|
cd ${WRKSRC}/tools/acpinames && env CFLAGS="${CFLAGS}" ${MAKE_PROGRAM}
|
|
cd ${WRKSRC}/tools/acpixtract && env CFLAGS="${CFLAGS}" ${MAKE_PROGRAM}
|
|
cd ${WRKSRC}/tools/acpiexec && \
|
|
env CFLAGS="${CFLAGS}" ${MAKE_PROGRAM} clean acpiexec
|
|
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/compiler/iasl ${PREFIX}/bin/
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/acpisrc/acpisrc ${PREFIX}/bin/
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/acpinames/acpinames ${PREFIX}/bin/
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/acpixtract/acpixtract ${PREFIX}/bin/
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/acpiexec/acpiexec ${PREFIX}/bin/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/acpica/
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/acpica/
|
|
${INSTALL_DATA} ${FILESDIR}/LICENSE ${PREFIX}/share/doc/acpica/
|
|
|
|
.include <bsd.port.mk>
|