aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nvclock/Makefile
blob: 7efb2b295908fb3649c55300355385a6bba503ce (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:	nvclock
# Date created:				August 4, 2003
# Whom:					Samy Al Bahra <samy@kerneled.com>
#
# $FreeBSD$
#

PORTNAME=	nvclock
PORTVERSION=	0.7
PORTREVISION=	3
CATEGORIES=	sysutils
MASTER_SITES=	http://www.linuxhardware.org/nvclock/ \
		http://www.kerneled.com/freebsd/ports/
DISTNAME=	nvclock${PORTVERSION}

MAINTAINER=	samy@kerneled.com
COMMENT=	The nVidia graphic card status and overclocking tool

USE_GMAKE=	yes
USE_REINPLACE=	yes
USE_GETOPT_LONG=yes
GNU_CONFIGURE=	yes
USE_GNOME=	pkgconfig

.if defined(WITHOUT_GUI)
PLIST_SUB+=	GTK="@comment "
CONFIGURE_ARGS+="--enable-gtk=no"
.else
USE_GNOME+=	gtk20
PLIST_SUB+=	GTK=""
.endif

pre-everything::
	@${ECHO_MSG} ""
	@${ECHO_MSG} "************************************************"
	@${ECHO_MSG} "* You can disable nvclock's GTK user interface *"
	@${ECHO_MSG} "* by defining WITHOUT_GUI.                     *"
	@${ECHO_MSG} "************************************************"
	@${ECHO_MSG} ""

post-patch:
.for i in src/gtk/Makefile.in src/backend/Makefile.in
	@${REINPLACE_CMD} -e 's|"CFLAGS="|"CFLAGS+="|g' ${WRKSRC}/${i}
.endfor

.include <bsd.port.mk>