summaryrefslogtreecommitdiff
path: root/x11-drivers/xf86-video-nouveau/Makefile
blob: c44ac008e6711a5bac85bfce91f6990c9fcaec5c (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
47
48
49
50
51
52
53
54
55
56
# Created by: Anonymous <swell.k@gmail.com>
# $FreeBSD$

PORTNAME=	xf86-video-nouveau
PORTVERSION=	0.0.10.${SNAPDATE}
DISTVERSIONSUFFIX=.${SNAPREV}
PORTREVISION=	3
CATEGORIES=	x11-drivers
MASTER_SITES=	ftp://ftp.lissyara.su/users/Guest/distfiles/

MAINTAINER=	x11@FreeBSD.org
COMMENT=	Free nouveau display driver for nvidia-based cards

XORG_CAT=	driver
USE_XORG=	xf86driproto glproto
MAN4=		nouveau.4x


# also doesn't work with mesa (libGL) version higher then 7.4.x
IGNORE=		Not supported, missing kernel support. use the nvidia driver.

NO_STAGE=	yes
post-configure:
	${REINPLACE_CMD} '/NV_DRIVER_DATE/s/".*"/"${SNAPDATE}.${SNAPREV}"/' ${WRKSRC}/config.h

post-install:	.SILENT
	${ECHO_MSG}
	${CAT} ${PKGMESSAGE}
	${ECHO_MSG}

GIT_WORK=	${WRKDIR}/${PORTNAME}.git-clone
GIT_DATE=	$$(date -ur$$(git log --pretty=format:%ct -1 ) +%Y%m%d)
GIT_REV=	$$(git log --pretty=format:%h -1)
NEWDISTNAME=	${DISTNAME:S/${SNAPDATE}.${SNAPREV}$$//}${GIT_DATE}.${GIT_REV}

maint-gen-distfile:
	git clone git://anongit.freedesktop.org/nouveau/xf86-video-nouveau \
		${GIT_WORK}

	( cd ${GIT_WORK}; \
	  git log --stat >ChangeLog; \
	  autoreconf -if; \
	  ${TAR} cjf ${DISTDIR}/${DIST_SUBDIR}/${NEWDISTNAME}${EXTRACT_SUFX} \
	  	--exclude '.git*' --exclude autogen.sh \
		--exclude autom4te.cache \
	  	-s "|${GIT_WORK}|${NEWDISTNAME}|" \
	  	${GIT_WORK}; \
	  ${ECHO_CMD} "SNAPDATE=	${GIT_DATE}" \
		>${MASTERDIR}/Makefile.rev; \
	  ${ECHO_CMD} "SNAPREV=	${GIT_REV}" \
		>>${MASTERDIR}/Makefile.rev )

	${RM} -rf ${GIT_WORK}

.include "Makefile.rev"
.include <bsd.port.mk>