aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/i7z/Makefile
blob: 588067546a17a4ddf23b916740da846bf3691d57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $FreeBSD$

PORTNAME=   i7z
PORTVERSION=    0.27.2
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= zont@FreeBSD.org
COMMENT=    Thermal and C-state reporting utility for Intel-Core-i CPUs

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       gmake
USE_GCC=    yes

PLIST_FILES=    bin/${PORTNAME} \
        man/man1/${PORTNAME}.1.gz

ONLY_FOR_ARCHS= i386 amd64

# Disable scheduling flags as they cause segfaults since they are enabled at
# default FreeBSD optimization levels (-O2, -O3, -Os)
CFLAGS+=    -fno-schedule-insns2 -fno-schedule-insns -fno-caller-saves

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.man \
        ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1

.include <bsd.port.mk>