* Packaging update.
[ginac.git] / debian / rules
index acaffa985c19b247c61d1ce9cb98453791872539..b3856a320e46f5be2978c6150e2a40bf54b5195c 100755 (executable)
@@ -7,7 +7,7 @@ version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
 
 build:
        dh_testdir
-       ./configure --prefix=/usr --with-cint
+       ./configure --prefix=/usr
        $(MAKE) CXXFLAGS="-O2"
        touch build
 
@@ -30,19 +30,21 @@ binary-arch: build
        dh_installdirs
        # When is Automake going to honor FHS?
        $(MAKE) install prefix=`pwd`/debian/tmp/usr infodir=`pwd`/debian/tmp/usr/share/info mandir=`pwd`/debian/tmp/usr/share/man
-       # Work around dumb lintian error: binary-without-manpage ginaccint.bin
-       (cd `pwd`/debian/tmp/usr/share/man/man1; ln -s ginaccint.1.gz ginaccint.bin.1.gz)
+       # Automake generated Makefile.in do install-info, which is bad for us:
+       -rm -f `pwd`/debian/tmp/usr/share/info/dir*
        dh_installdocs ChangeLog NEWS README
        dh_installchangelogs
        dh_installmenu
+       mkdir -p `pwd`/debian/tmp/usr/X11R6/include/X11/pixmaps
+       cp `pwd`/debian/ginac.xpm `pwd`/debian/tmp/usr/X11R6/include/X11/pixmaps/
        dh_movefiles
        dh_strip
        dh_compress
        dh_fixperms
-       dh_shlibdeps
-       dh_gencontrol
        dh_makeshlibs
        dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
        dh_md5sums
        dh_builddeb