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 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#!/usr/bin/make -f
export CFLAGS := -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
confflags := --prefix=/usr \
--with-docdir=/usr/share/doc/libwmf0.2-7 \
--with-fontdir=/var/lib/defoma/libwmf0.2-7.d \
--with-gsfontdir=/var/lib/defoma/libwmf0.2-7.d \
--with-sysfontmap=/var/lib/defoma/libwmf0.2-7.d/fontmap \
--with-gsfontmap=/var/lib/defoma/libwmf0.2-7.d/fontmap.gs \
--with-xtrafontmap=/etc/libwmf.fontmap
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
confflags += --build=$(DEB_HOST_GNU_TYPE)
else
confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
endif
build: build-stamp
build-stamp:
dh_testdir
ln -sf /usr/share/misc/config.sub /usr/share/misc/config.guess .
./configure $(confflags)
$(MAKE)
> $@
clean:
dh_testdir
dh_testroot
dh_clean build-stamp
[ ! -f Makefile ] || $(MAKE) distclean
rm -f config.sub config.guess
export DH_OPTIONS
install: DH_OPTIONS =
install: build
dh_testdir
dh_testroot
dh_clean
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp font_DATA= install
binary-arch: DH_OPTIONS = -a
binary-indep: DH_OPTIONS = -i
binary-%: DH_OPTIONS = -p$*
binary binary-%: install
dh_installdirs
dh_link
dh_installchangelogs ChangeLog
dh_installdocs
dh_installdefoma
dh_install
dh_strip
dh_compress
dh_fixperms
dh_makeshlibs -V
dh_installdeb
dh_shlibdeps -ldebian/libwmf0.2-7/usr/lib -Xusr/lib/gtk
dh_gencontrol
dh_md5sums
dh_builddeb
.PHONY: build clean install binary
|