2009-08-19 23:06:16 +02:00
|
|
|
# New ports collection makefile for: NVClock
|
2003-08-11 22:39:31 +02:00
|
|
|
# Date created: August 4, 2003
|
|
|
|
# Whom: Samy Al Bahra <samy@kerneled.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nvclock
|
2009-07-03 22:42:35 +02:00
|
|
|
DISTVERSION= 0.8b4
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 3
|
2003-08-11 22:39:31 +02:00
|
|
|
CATEGORIES= sysutils
|
2009-08-22 02:35:32 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.8%20%28beta4%29
|
2007-07-15 09:15:42 +02:00
|
|
|
DISTNAME= nvclock${DISTVERSION}
|
2003-08-11 22:39:31 +02:00
|
|
|
|
2009-08-19 23:06:16 +02:00
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
2010-09-08 10:43:22 +02:00
|
|
|
COMMENT= NVidia graphic card status and overclocking tool
|
2003-08-11 22:39:31 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2008-09-05 09:51:50 +02:00
|
|
|
|
2009-07-03 22:42:35 +02:00
|
|
|
PLIST_FILES= bin/nvclock \
|
|
|
|
bin/smartdimmer
|
2009-08-19 23:06:16 +02:00
|
|
|
MAN1= nvclock.1
|
|
|
|
PORTDOCS= ABOUT AUTHORS ChangeLog FAQ README
|
|
|
|
|
2010-09-08 10:43:22 +02:00
|
|
|
OPTIONS= NVCONTROL "Enable NV-CONTROL support" on \
|
|
|
|
GTK2 "Build GTK user interface" on \
|
|
|
|
QT "Build Qt 3.x user interface" off
|
2009-08-19 23:06:16 +02:00
|
|
|
|
2010-09-08 10:43:22 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2003-08-11 22:39:31 +02:00
|
|
|
|
2010-09-08 10:43:22 +02:00
|
|
|
.if defined(WITH_NVCONTROL)
|
2008-09-05 09:51:50 +02:00
|
|
|
USE_XORG= xext
|
2010-09-08 10:43:22 +02:00
|
|
|
USE_GNOME= pkgconfig
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nvcontrol
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
USE_GNOME= gtk20
|
2008-09-05 09:51:50 +02:00
|
|
|
PLIST_FILES+= bin/nvclock_gtk
|
2010-09-08 10:43:22 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gtk
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_QT)
|
|
|
|
USE_QT_VER= 3
|
|
|
|
CONFIGURE_ARGS+= --enable-qt --with-qtdir=${LOCALBASE}
|
|
|
|
PLIST_FILES+= bin/nvclock_qt
|
2003-08-11 22:39:31 +02:00
|
|
|
.endif
|
|
|
|
|
2003-08-21 22:17:15 +02:00
|
|
|
post-patch:
|
2010-09-08 10:43:22 +02:00
|
|
|
@${REINPLACE_CMD} -E 's|^(C(XX)?FLAGS)=|\1+=|' \
|
|
|
|
${WRKSRC}/src/backend/Makefile.in \
|
|
|
|
${WRKSRC}/src/gtk/Makefile.in \
|
|
|
|
${WRKSRC}/src/qt/Makefile.in \
|
|
|
|
${WRKSRC}/src/nvcontrol/Makefile.in
|
2003-08-21 22:17:15 +02:00
|
|
|
|
2007-07-15 09:15:42 +02:00
|
|
|
do-install:
|
2009-08-19 23:06:16 +02:00
|
|
|
${GMAKE} -C ${WRKSRC}/src install
|
|
|
|
${GMAKE} -C ${WRKSRC} install-man
|
2007-07-15 09:15:42 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2009-08-19 23:06:16 +02:00
|
|
|
${GMAKE} -C ${WRKSRC} install-docs
|
2007-07-15 09:15:42 +02:00
|
|
|
.endif
|
|
|
|
|
2010-09-08 10:43:22 +02:00
|
|
|
.include <bsd.port.mk>
|