Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 %:
3 dh $@
4
5 # copy up to date files
6 override_dh_auto_configure:
7 -test -r /usr/share/misc/config.sub && \
8 cp -f /usr/share/misc/config.sub config.sub
9 -test -r /usr/share/misc/config.guess && \
10 cp -f /usr/share/misc/config.guess config.guess
11 ( PCSC_CFLAGS=`/usr/bin/pkg-config --cflags libpcsclite` ; PCSC_LIBS=`/usr/bin/pkg-config --libs libpcsclite` ; dh_auto_configure -- --with-debug --disable-dependency-tracking )
12
13 override_dh_auto_clean:
14 dh_auto_clean
15 rm -f config.guess config.sub
16
17 # avoid libtool -rpath problems
18 override_dh_auto_build:
19 sed < libtool > libtool-2 -e 's/^hardcode_libdir_flag_spec.*$$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' -e '/^archive_cmds="/s/"$$/ \\$$deplibs"/'
20 mv libtool-2 libtool
21 chmod 755 libtool
22 dh_auto_build