summaryrefslogtreecommitdiffstats
path: root/gspcav1
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2007-01-09 21:35:27 +0000
committer Eric Hameleers <alien@slackware.com>2007-01-09 21:35:27 +0000
commit7813ec1a7c0f47dcf57fef54cb1498b84a02e5b3 (patch)
tree732bdee0a37de7742bfbbbaeca5622f149d7bde5 /gspcav1
parent552d6cf449459464d01a4a735f48549e03e76c0a (diff)
downloadasb-7813ec1a7c0f47dcf57fef54cb1498b84a02e5b3.tar.gz
asb-7813ec1a7c0f47dcf57fef54cb1498b84a02e5b3.tar.xz
Made DEBUG selectable (default is to not build debug code)
Diffstat (limited to 'gspcav1')
-rwxr-xr-xgspcav1/build/gspcav1.SlackBuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/gspcav1/build/gspcav1.SlackBuild b/gspcav1/build/gspcav1.SlackBuild
index 8ce9c81a..63b19d7c 100755
--- a/gspcav1/build/gspcav1.SlackBuild
+++ b/gspcav1/build/gspcav1.SlackBuild
@@ -30,6 +30,9 @@ BUILD=${BUILD:-1}
DOCS="changelog"
+# Do we add debug code to the driver? If not 'NO', we'll add it.
+DEBUG=${DEBUG:-NO}
+
# Where do we look for sources?
CWD=`pwd`
SRCDIR=`dirname $0`
@@ -152,6 +155,10 @@ else
tar -xzvf ${SOURCE}
fi
cd ${PRGNAM}-${VERSION}
+if [ "$DEBUG" == "NO" ]; then
+ # Set DEBUG="YES" up above if you need to debug the driver:
+ patch -p0 < $SRCDIR/${PRGNAM}_nodebug.patch 2>&1 | tee $OUTPUT/patch-${PRGNAM}.log
+fi
chown -R root.root *
find . -perm 777 -exec chmod 755 {} \;