1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
export CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
export AUTOHEADER = true
%:
dh $@ --with autoreconf --parallel
override_dh_auto_clean:
rm -rf lib/.libs
dh_auto_clean
override_dh_auto_configure:
CONFIG_SHELL=/bin/bash dh_auto_configure -- \
--enable-shared \
--enable-deriv \
--enable-r12 \
--enable-debug=opt \
--with-libint-max-am=5 \
--with-libderiv-max-am1=4 \
--with-libderiv-max-am2=3 \
--prefix=/usr \
--with-cc-optflags="$(CFLAGS) $(CPPFLAGS)" \
--with-cxx-optflags="$(CXXFLAGS) $(CPPFLAGS)" \
--with-libdirs="$(LDFLAGS)"
override_dh_auto_build:
$(MAKE) -C doc
dh_auto_build
override_dh_strip:
dh_strip --dbg-package=libint-dbg
override_dh_install:
dh_install --list-missing
override_dh_installchangelogs:
dh_installchangelogs updates
|