aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers
diff options
context:
space:
mode:
authorRobert Noland <rnoland@FreeBSD.org>2009-04-10 18:26:09 +0000
committerRobert Noland <rnoland@FreeBSD.org>2009-04-10 18:26:09 +0000
commitf2633f7724cb77c6dc0f8be97a494bfacd7b6ce2 (patch)
treeee33d5715d3b899d3104d012231865b429ed74f2 /x11-drivers
parent9067dde6a8400a79520220713b2d4e14be9dda50 (diff)
downloadports-f2633f7724cb77c6dc0f8be97a494bfacd7b6ce2.tar.gz
ports-f2633f7724cb77c6dc0f8be97a494bfacd7b6ce2.zip
Notes
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/xf86-video-nouveau/Makefile38
-rw-r--r--x11-drivers/xf86-video-nouveau/distinfo6
2 files changed, 34 insertions, 10 deletions
diff --git a/x11-drivers/xf86-video-nouveau/Makefile b/x11-drivers/xf86-video-nouveau/Makefile
index f3590bed69d1..3295fc8ed61c 100644
--- a/x11-drivers/xf86-video-nouveau/Makefile
+++ b/x11-drivers/xf86-video-nouveau/Makefile
@@ -1,15 +1,15 @@
-# New ports collection makefile for: xf86-video-nouveau
-# Date Created: 29 Jan 2009
-# Whom: Anonymous <swell.k@gmail.com>
+# New ports collection makefile for: xf86-video-nouveau
+# Date Created: 29 Jan 2009
+# Whom: Anonymous <swell.k@gmail.com>
#
# $FreeBSD$
#
PORTNAME= xf86-video-nouveau
-PORTVERSION= 0.0.10.20090129
-PORTREVISION= 1
+PORTVERSION= 0.0.10.${SNAPDATE}
+DISTVERSIONSUFFIX=.${SNAPREV}
CATEGORIES= x11-drivers
-MASTER_SITES= ftp://ftp.lissyara.su/users/Guest/
+MASTER_SITES= ftp://ftp.lissyara.su/users/Guest/distfiles/
MAINTAINER= x11@FreeBSD.org
COMMENT= Free nouveau display driver for nvidia-based cards
@@ -18,6 +18,30 @@ XORG_CAT= driver
USE_XORG= videoproto xextproto xf86driproto glproto
MAN4= nouveau.4x
-BROKEN= does not compile
+MAKE_JOBS_SAFE= yes
+
+SNAPDATE= 20090408
+SNAPREV= d8545e6
+
+post-configure:
+ ${REINPLACE_CMD} '/NV_DRIVER_DATE/s/".*"/"${SNAPDATE}.${SNAPREV}"/' ${WRKSRC}/config.h
+
+GIT_WORK= ${WRKDIR}/${PORTNAME}.git-clone
+GIT_REV= $$(echo $$(date -ur$$(git log --pretty=format:%ct -1 \
+ ) +%Y%m%d).$$(git log --pretty=format:%h -1))
+
+maint-gen-distfile:
+ git clone git://anongit.freedesktop.org/git/nouveau/xf86-video-nouveau \
+ ${GIT_WORK}
+
+ ( cd ${GIT_WORK}; \
+ git log --stat >ChangeLog; \
+ autoreconf -if; \
+ ${TAR} cjf ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME:S/${SNAPDATE}.${SNAPREV}$$//}${GIT_REV}.tar.bz2 \
+ --exclude '.git*' --exclude autogen.sh --exclude autom4te.cache \
+ -s "|${GIT_WORK}|${DISTNAME:S/${SNAPDATE}.${SNAPREV}$$//}${GIT_REV}|" \
+ ${GIT_WORK} )
+
+ ${RM} -rf ${GIT_WORK}
.include <bsd.port.mk>
diff --git a/x11-drivers/xf86-video-nouveau/distinfo b/x11-drivers/xf86-video-nouveau/distinfo
index f7700f80e58d..9445c294ce7c 100644
--- a/x11-drivers/xf86-video-nouveau/distinfo
+++ b/x11-drivers/xf86-video-nouveau/distinfo
@@ -1,3 +1,3 @@
-MD5 (xorg/driver/xf86-video-nouveau-0.0.10.20090129.tar.bz2) = ea4663197027d798b2d287b315721832
-SHA256 (xorg/driver/xf86-video-nouveau-0.0.10.20090129.tar.bz2) = a8fe3ba39aa691535c7423134bc6b6224c6bd8fbfdee3ed523301892976c6bdf
-SIZE (xorg/driver/xf86-video-nouveau-0.0.10.20090129.tar.bz2) = 569851
+MD5 (xorg/driver/xf86-video-nouveau-0.0.10.20090408.d8545e6.tar.bz2) = 84d00c5524502e618b6629d37aa7190c
+SHA256 (xorg/driver/xf86-video-nouveau-0.0.10.20090408.d8545e6.tar.bz2) = 29b017bb1b8590c967e5472747a177e3ce7af43bbd48b23eb9f6fd95d252c9da
+SIZE (xorg/driver/xf86-video-nouveau-0.0.10.20090408.d8545e6.tar.bz2) = 531494