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
|
#!/usr/bin/make -f
DEB_BUILD_PARALLEL = 1
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
pkg = $(DEB_SOURCE_PACKAGE)
stem = $(patsubst lib%,%,$(pkg))
abi = 1
lib = lib$(stem)
libpkg = lib$(stem)$(abi)
devpkg = lib$(stem)-dev
DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
export LIBSASS_VERSION = $(DEB_UPSTREAM_VERSION)
DEB_MAKE_CHECK_TARGET = check
# Let d-shlibs calculate development package dependencies
# and handle shared library install
# * d-shlibs 0.50 required for --multiarch and --exclude-la options
binary-post-install/$(libpkg) binary-post-install/$(devpkg):: \
debian/stamp-local-shlibs-$(lib)
debian/stamp-local-shlibs-$(lib): \
binary-install/$(libpkg) \
binary-install/$(devpkg)
d-shlibmove --commit \
--devunversioned \
--exclude-la \
--multiarch \
--movedev "debian/tmp/usr/include/*" usr/include/ \
--movedev "debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/*" \
usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/$(lib).so
touch $@
clean::
rm -f debian/stamp-local-shlibs-$(lib)
|