~ubuntu-branches/ubuntu/saucy/nvidia-cuda-toolkit/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Beckmann
  • Date: 2010-11-20 19:20:46 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101120192046-hyrx89rbm65ru77o
Tags: 3.2.16-1
* New upstream release 3.2.
* Upload to experimental.
* Upstream no longer ships the manual pages.
* Create new packages libcusparse3 and libcurand3 (and their 32-bit
  variants) for the libraries added by NVIDIA.
* Update symbols files and install lists.
* Update lintian overrides.
* Switch to source format 3.0 (quilt).

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
TEMPLATES       := $(wildcard debian/*.in)
16
16
AUTOGEN         += $(patsubst %.in,%,$(TEMPLATES))
17
 
AUTOGEN         += $(foreach lib,cudart cublas cufft,\
 
17
AUTOGEN         += $(foreach lib,cudart cublas cufft cusparse curand,\
18
18
                   debian/lib32$(lib)3.lintian-overrides)
19
19
AUTOKEEP         =
20
20
AUTOCLEAN        = $(filter-out $(AUTOKEEP),$(AUTOGEN))
34
34
        # fixup lib{,32,64} directory layout
35
35
        mv nvidia-cuda-amd64/lib nvidia-cuda-amd64/lib32
36
36
        mv nvidia-cuda-amd64/lib64 nvidia-cuda-amd64/lib
37
 
        # rename manual pages conflicting with manpages-dev
38
 
        mv nvidia-cuda/man/man3/major.3 nvidia-cuda/man/man3/cuda_major.3
39
 
        mv nvidia-cuda/man/man3/minor.3 nvidia-cuda/man/man3/cuda_minor.3
40
 
        # apply patches
41
 
        dh_quilt_patch
42
37
        touch $@
43
38
 
44
39
 
71
66
        dh_gencontrol -- -V'nvidia:MinVersion=$(version_driver)'
72
67
 
73
68
override_dh_auto_clean:
74
 
        dh_quilt_unpatch
75
69
        $(RM) -r nvidia-cuda nvidia-cuda-i386 nvidia-cuda-amd64
76
70
        $(RM) EULA.txt
77
71
 
109
103
 
110
104
nvidia-cuda/doc/EULA.txt: unpack-stamp
111
105
EULA.txt: nvidia-cuda/doc/EULA.txt
112
 
        cat $< | fromdos | fromdos | expand | fold -s -w 76 | sed -e 's/ *$$//;s/^$$/./;s/^/ /;'> $@
 
106
        cat $<  | fromdos | fromdos | expand \
 
107
                | iconv -f CP1255 -t latin1//TRANSLIT \
 
108
                | fold -s -w 76 \
 
109
                | sed -e 's/ *$$//;s/^$$/./;s/^/ /;' \
 
110
                > $@
113
111