Don't strip the prebuilt binaries.

Avoid a possible license violation.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
Use the manpages from version 3.0.0016 for the included binaries.

They got removed upstream in version 3.1.0010 but are still included in the Cg
Reference Manual.
Fix a spelling error in cgc.1 (compatable -> compatible).
Create the libcg and libcggl packages.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
Add symbols from version 3.0.0007.

3.0.0007 was the 1st release with an unversioned SONAME.
Previous releases did not have a SONAME at all.
Update with new symbols from version 3.1.0010.

3.0.0015 => no changes
3.0.0016 => no changes
3.1.0010 => Introduces 11 new in libCg and 8 in libCgGL as mentioned in
http://http.developer.nvidia.com/Cg/cg_3_1_0010.html in the New Api section.
Create *.postinst/*.postrm according to Debian policy 8.1.1.

Lintian errors:
E: libcggl: postinst-must-call-ldconfig usr/lib/x86_64-linux-gnu/libCgGL.so
E: libcg: postinst-must-call-ldconfig usr/lib/x86_64-linux-gnu/libCg.so
Debian policy:
http://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-ldconfig

Since upstream ships libraries with an unversioned SONAME these snippets
are not created automatically by dh_shlibdeps.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
Create the nvidia-cg-dev package.

There is an upgrade path that gives the following results:
debsums: missing file /usr/include/Cg/cg.h (from nvidia-cg-dev package)
debsums: missing file /usr/include/Cg/cgGL.h (from nvidia-cg-dev package)
.
This is a result of the following dpkg bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578872
.
If you do:
dpkg -i --auto-deconfigure lib*.deb nvidia-cg-dev_*.deb \
   nvidia-cg-doc_*.deb nvidia-cg-toolkit_*.deb
the error occurs. If the -dev package is moved to the end:
dpkg -i --auto-deconfigure lib*.deb nvidia-cg-doc_*.deb  \
   nvidia-cg-toolkit_*.deb nvidia-cg-dev_*.deb
there is no error.
.
Installing by conventional means seems to give no error therefore leave as a
break/replace for now.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
Create the nvidia-cg-doc package.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
Don't compress the examples.

Users most likely want to be able to compile the examples.
Don't include the license.pdf/license.txt files.

Redundant content.
Don't include the Microsoft Visual Studio files.

Windows files.
Don't include architecture dependent files in the -doc package.

The tarball include most of the examples already built. Since the doc package
is arch independant remove these files. Note that the Trace folder recently
got moved from the Tools folder and is no longer cleaned by using the Makefile
in the examples folder.
.
We clean cginfo/cgfxcat to make sure the "rules clean" leaves the tree clean
(extra files found). For the same reason we do dh_installexample before the
global clean (missing files since we are deleting binaries found in the
original tar).

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
Update the nvidia-cg-toolkit entry of the control file.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
Add *.install, *.lintian and *.manpages for nvidia-cg-toolkit.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
Manually remove /usr/lib/libCg*.so.

Scenario:
User using an amd64 system installs and then removes the nvidia-cg-toolkit that
uses the installer script. The user no longer has the package nvidia-cg-toolkit
installed but the /usr/lib/libCg*.so files remain.  Now the user does one of
the following:
- apt-get install libcg
- apt-get install libcggl
- apt-get install nvidia-cg-dev
- apt-get install nvidia-cg-toolkit
.
In all of these cases libcg gets installed therefore the only way to be sure
that we remove the 2 leftover files is to remove them when installing or
upgrading libcg.
.
Since there should not be a file in /usr/lib/libCg*.so when using the Debian
archive it should be safe to always try to remove those 2 files. There could
be issues if the user is using a custom built nvidia cg toolkit package (with
a different package name for example) but that could be said about any package.
.
There is probably a better way to do this but use this for now.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
Also remove /usr/lib/libCg*.so when installing nvidia-cg-doc.

In rare cases the user may have nvidia-cg-toolkit << 3 and just do
apt-get install nvidia-cg-doc. This will still leave the 2 files in  the
system. There is no guarantee that the user will ever install libcg therefore
remove in postinst.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
Update my name in various files.
New upstream release 3.1.0013 (April 2012).
update Lintian overrides

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>