| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
PACKAGE = xfonts-base |
| 14 |
|
| 15 |
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
| 16 |
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
| 17 |
MAKEFLAGS += -j$(NUMJOBS) |
| 18 |
endif |
| 19 |
|
| 20 |
STAMP_DIR = debian/stamps |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
SUBDIRS= \ |
| 26 |
font-arabic-misc \ |
| 27 |
font-cursor-misc \ |
| 28 |
font-daewoo-misc \ |
| 29 |
font-dec-misc \ |
| 30 |
font-isas-misc \ |
| 31 |
font-jis-misc \ |
| 32 |
font-micro-misc \ |
| 33 |
font-misc-misc \ |
| 34 |
font-mutt-misc \ |
| 35 |
font-schumacher-misc \ |
| 36 |
font-sony-misc \ |
| 37 |
font-sun-misc |
| 38 |
|
| 39 |
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) |
| 40 |
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
| 41 |
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
| 42 |
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) |
| 43 |
confflags += --build=$(DEB_HOST_GNU_TYPE) |
| 44 |
else |
| 45 |
confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) |
| 46 |
endif |
| 47 |
|
| 48 |
$(STAMP_DIR)/prepare: |
| 49 |
mkdir -p $(STAMP_DIR) |
| 50 |
dh_update_autotools_config |
| 51 |
>$@ |
| 52 |
|
| 53 |
$(STAMP_DIR)/build-%: $(STAMP_DIR)/prepare |
| 54 |
mkdir -p $*-build |
| 55 |
cd $*-build && \ |
| 56 |
../$*/configure \ |
| 57 |
--prefix=/usr \ |
| 58 |
--mandir=\$${prefix}/share/man \ |
| 59 |
--infodir=\$${prefix}/share/info \ |
| 60 |
$(confflags) |
| 61 |
$(MAKE) -C $*-build GZIP=-n |
| 62 |
>$@ |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
build: build-stamp |
| 67 |
build-indep: build-stamp |
| 68 |
build-stamp: $(addprefix $(STAMP_DIR)/build-,$(SUBDIRS)) |
| 69 |
>$@ |
| 70 |
|
| 71 |
build-arch: |
| 72 |
|
| 73 |
|
| 74 |
clean: |
| 75 |
dh_testdir |
| 76 |
rm -f config.cache config.log config.status |
| 77 |
rm -f */config.cache */config.log */config.status |
| 78 |
rm -f conftest* */conftest* |
| 79 |
rm -rf autom4te.cache */autom4te.cache |
| 80 |
rm -rf *-build |
| 81 |
rm -rf $(STAMP_DIR) |
| 82 |
dh_clean |
| 83 |
|
| 84 |
install: build |
| 85 |
dh_testdir |
| 86 |
dh_testroot |
| 87 |
dh_clean -k |
| 88 |
dh_installdirs |
| 89 |
for FILE in $(SUBDIRS); do \ |
| 90 |
cd "$$FILE"-build \ |
| 91 |
&& $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install; \ |
| 92 |
cd ..; \ |
| 93 |
done |
| 94 |
install -D -m644 debian/fonts.alias \ |
| 95 |
debian/tmp/etc/X11/fonts/misc/xfonts-base.alias |
| 96 |
|
| 97 |
|
| 98 |
binary-arch: build install |
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
binary-indep: build install |
| 103 |
dh_testdir |
| 104 |
dh_testroot |
| 105 |
dh_installdocs |
| 106 |
dh_install --fail-missing --exclude fonts.dir \ |
| 107 |
--exclude fonts.scale |
| 108 |
dh_installxfonts |
| 109 |
dh_installchangelogs |
| 110 |
dh_compress |
| 111 |
dh_fixperms |
| 112 |
dh_installdeb |
| 113 |
dh_gencontrol |
| 114 |
dh_md5sums |
| 115 |
dh_builddeb |
| 116 |
|
| 117 |
binary: binary-indep binary-arch |
| 118 |
.PHONY: build clean binary-indep binary-arch binary install |
| 119 |
|
| 120 |
get-tarballs: $(addprefix get-tarball-,$(SUBDIRS)) |
| 121 |
|
| 122 |
get-tarball-%: |
| 123 |
uscan --no-conf --download --no-symlink --destdir . --package $* --upstream-version $(shell awk -F = '/^PACKAGE_VERSION=/ { print $$2 }' < $*/configure || echo 0) --watchfile debian/watch.$* || test $$? = 1 |
| 124 |
|
| 125 |
noet |