freebsd-ports/sysutils/cpu-x/Makefile
Alexey Dokuchaev 16b12f2282 Version 3.2.2 was released for `sysutils/cpu-x', but it does not build on
FreeBSD as is (was fixed in master later).  The patch which fixes the build
is actually larger than the functional difference between the two versions,
which is added support for Zen+ (Pinnacle Ridge) CPUs, so cherry-pick that
instead and instruct our dear portscout to ignore version 3.2.2 for now.

Reported by:	portscout
2018-05-04 12:00:26 +00:00

48 lines
1 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= cpu-x
PORTVERSION= 3.2.1
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= danfe@FreeBSD.org
COMMENT= Gathers information about CPU, motherboard, and more
LICENSE= GPLv3
PORTSCOUT= skipv:3.2.2 # useful parts of 3.2.2 were cherry-picked
BUILD_DEPENDS= nasm:devel/nasm
LIB_DEPENDS= libcpuid.so:sysutils/libcpuid \
libpci.so:devel/libpci \
libstatgrab.so:devel/libstatgrab \
libcurl.so:ftp/curl
USE_GITHUB= yes
GH_ACCOUNT= X0rg
GH_PROJECT= ${PORTNAME:tu}
USES= cmake gettext ncurses pkgconfig
PORTDOCS= ChangeLog README.md
OPTIONS_DEFINE= DOCS X11
OPTIONS_DEFAULT= X11
OPTIONS_SUB= yes
X11_DESC= Build GTK+3 frontend in addition to ncurses one
X11_USE= GNOME=gtk30
X11_CMAKE_OFF= -DWITH_GTK:BOOL=OFF
X11_VARS= INSTALLS_ICONS=yes
post-patch:
@${REINPLACE_CMD} -e 's, -Wno-unused-result,,' ${WRKSRC}/CMakeLists.txt
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>