summaryrefslogtreecommitdiff
path: root/x11/xf86-video-nv/patches/patch-aa
blob: 53d99bee28b9519cbb53afbdab5d183d86bfee21 (plain)
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
$NetBSD: patch-aa,v 1.2 2007/01/13 05:36:35 toshii Exp $

--- configure.orig	2006-12-16 08:48:45.000000000 +0900
+++ configure
@@ -21458,10 +21458,10 @@ echo "$as_me: Building with package name
 	fi
 
 cat >>confdefs.h <<_ACEOF
-#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\).*/\1/p'`
+#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | sed -ne 's/^\([^\.][^\.]*\).*/\1/p'`
 _ACEOF
 
-	PVM=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\).*/\2/p'`
+	PVM=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.][^\.]*\)\.\([^\.][^\.]*\).*/\2/p'`
 	if test "x$PVM" = "x"; then
 		PVM="0"
 	fi
@@ -21470,7 +21470,7 @@ cat >>confdefs.h <<_ACEOF
 #define PACKAGE_VERSION_MINOR $PVM
 _ACEOF
 
-	PVP=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\)\.\([^\.]\+\).*/\3/p'`
+	PVP=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.][^\.]*\)\.\([^\.][^\.]*\)\.\([^\.][^\.]*\).*/\3/p'`
 	if test "x$PVP" = "x"; then
 		PVP="0"
 	fi