Edit

IABSD.fr/ports/sysutils/dmidecode/Makefile

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2020-11-20 13:10:23
    Hash : 64a8ae8e
    Message : dmidecode: disable on aarch64 again, on !x86 it will only fetch from sysfs or by looking up the entry point in EFI and it only has code to do the latter on x86.

  • sysutils/dmidecode/Makefile
  • # $OpenBSD: Makefile,v 1.14 2020/11/20 13:10:23 sthen Exp $
    
    # builds on aarch64 but for !x86 it requires code to lookup the entry
    # point from EFI and only FreeBSD/Linux implementations are present.
    ONLY_FOR_ARCHS=	amd64 i386
    
    COMMENT=	dump DMI/SMBIOS contents in human-readable format
    DISTNAME=	dmidecode-3.3
    EXTRACT_SUFX=	.tar.xz
    REVISION=	1
    
    CATEGORIES=	sysutils
    
    MASTER_SITES=	${MASTER_SITE_SAVANNAH:=dmidecode/}
    
    HOMEPAGE=	https://www.nongnu.org/dmidecode/
    
    # GPLv2+
    PERMIT_PACKAGE=	Yes
    
    WANTLIB=	c
    
    MAKE_FLAGS=	CC="${CC}"
    FAKE_FLAGS=	mandir="${PREFIX}/man"
    NO_TEST=	Yes
    
    post-install:
    	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dmidecode/
    	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dmidecode/
    
    .if ${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == i386
    PKG_ARGS+=	-Dx86=1
    .else
    PKG_ARGS+=	-Dx86=0
    .endif
    
    .include <bsd.port.mk>