mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
2c672a4de9
While here, make sure gtk-update-icon-cache is only on run dependency where added as a dependency Enforce gtk3 to depend on gtk-update-icon-cache (previously it was inheriting the dependency)
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
PORTNAME= cpu-x
|
|
PORTVERSION= 4.0.1
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Gathers information about CPU, motherboard, and more
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= nasm:devel/nasm
|
|
LIB_DEPENDS= libcpuid.so:sysutils/libcpuid \
|
|
libpci.so:devel/libpci \
|
|
libstatgrab.so:devel/libstatgrab
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= X0rg
|
|
GH_PROJECT= ${PORTNAME:tu}
|
|
|
|
USES= cmake gettext ncurses pkgconfig
|
|
|
|
PORTDOCS= ChangeLog.md README.md
|
|
|
|
OPTIONS_DEFINE= DOCS X11
|
|
OPTIONS_DEFAULT= X11
|
|
OPTIONS_SUB= yes
|
|
|
|
X11_DESC= Build GTK+3 frontend in addition to ncurses one
|
|
|
|
X11_USES= gnome
|
|
X11_USE= GNOME=gtk30
|
|
X11_CMAKE_OFF= -DWITH_GTK:BOOL=OFF
|
|
X11_VARS= GLIB_SCHEMAS=org.cpu-x.gschema.xml
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's, -Wno-unused-result,,' ${WRKSRC}/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e '23s,^,#include <sys/wait.h>,' ${WRKSRC}/src/gui_gtk.c
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|