9
9
# Uncomment this to turn on verbose mode.
10
10
#export DH_VERBOSE=1
12
# This is the debhelper compatability version to use.
15
12
# This has to be exported to make some magic below work.
18
15
FRIBIDI_UDEB=libfribidi0-udeb
19
DEBVERSION=$(shell dpkg-parsechangelog | grep '^Version: ' | sed -e 's/^Version: //')
20
UDEBNAME=$(FRIBIDI_UDEB)_$(DEBVERSION)_$(shell dpkg --print-architecture).udeb
22
17
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
27
STRIP= $(STRIPTOOL) --remove-section=.note --remove-section=.comment
20
DEB_CFLAGS=-Os -fomit-frame-pointer
23
configure: configure-stamp
26
CFLAGS="${DEB_CFLAGS}" ./configure --prefix=/usr --disable-dependency-tracking
31
build-stamp: configure-stamp
62
63
# Pass -a to all debhelper commands in this target to reduce clutter.
63
64
binary-arch: DH_OPTIONS=-a
64
65
binary-arch: build install
65
# Need this version of debhelper for DH_OPTIONS to work.
71
dh_installdocs -a -N$(FRIBIDI_UDEB)
72
dh_installman -a -N$(FRIBIDI_UDEB)
73
dh_installchangelogs fribidi-0.10.4/ChangeLog -a -N$(FRIBIDI_UDEB)
73
dh_installchangelogs ChangeLog -a
74
74
mkdir -p debian/$(FRIBIDI_UDEB)/lib
75
75
cp -a debian/libfribidi0/usr/lib/* debian/$(FRIBIDI_UDEB)/lib
76
$(STRIP) debian/$(FRIBIDI_UDEB)/lib/libfribidi.so.0.0.0
81
dh_makeshlibs -N$(FRIBIDI_UDEB)
82
dh_shlibdeps -Xusr/bin/fribidi -N$(FRIBIDI_UDEB)
83
dh_installdeb -N$(FRIBIDI_UDEB)
84
dh_gencontrol -a -N$(FRIBIDI_UDEB)
85
dh_md5sums -a -N$(FRIBIDI_UDEB)
86
dh_builddeb -a -N$(FRIBIDI_UDEB)
87
dh_gencontrol -p$(FRIBIDI_UDEB) -- -fdebian/files~
88
dpkg-distaddfile $(UDEBNAME) debian-installer extra
89
dh_builddeb $(FRIBIDI_UDEB) --filename=$(UDEBNAME)
80
dh_makeshlibs -V --add-udeb="$(FRIBIDI_UDEB)"
81
dh_shlibdeps -Xusr/bin/fribidi
91
87
binary: binary-indep binary-arch
92
.PHONY: build clean binary-indep binary-arch binary install
88
.PHONY: build clean binary-indep binary-arch binary install configure