HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/sysutils/cpuid2cpuflags/Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>

PORTNAME=	cpuid2cpuflags
PORTVERSION=	11
DISTVERSIONPREFIX=	v
CATEGORIES=	sysutils

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Tool to generate CPU_FLAGS_* for your CPU

LICENSE=	BSD2CLAUSE

BROKEN_powerpc64=	fails to build: error "Platform not supported (only Linux supported at the moment)"
BROKEN_powerpc64le=	fails to build: error "Platform not supported (only Linux supported at the moment)"
BROKEN_riscv64=		fails to build: src/platforms.h:15:4: error: "Unsupported platform, please report"

USES=		autoreconf
USE_GITHUB=	yes
GH_ACCOUNT=	mgorny
GNU_CONFIGURE=	yes
TEST_TARGET=	check

PLIST_FILES=	bin/${PORTNAME}
PORTDOCS=	README

OPTIONS_DEFINE=	DOCS

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>