You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
2.9 KiB
109 lines
2.9 KiB
12 years ago
|
#!/usr/bin/make -f
|
||
|
|
||
|
# Uncomment this to turn on verbose mode.
|
||
|
#export DH_VERBOSE=1
|
||
|
|
||
9 years ago
|
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
||
|
DEB_PARALLEL_JOBS ?= $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
||
|
endif
|
||
|
DEB_MAKE_PARALLEL ?= $(and $(DEB_BUILD_PARALLEL),$(DEB_PARALLEL_JOBS),-j$(DEB_PARALLEL_JOBS))
|
||
|
|
||
4 years ago
|
# The default gzip compressor has been changed in dpkg >= 1.17.0.
|
||
|
deb_default_compress = $(shell LANG=C dpkg-deb --version | head -n1 | \
|
||
|
sed -e "s|.*version ||" -e "s| .*||" | \
|
||
|
xargs -r dpkg --compare-versions 1.17.0 lt \
|
||
|
&& echo xz || echo gzip)
|
||
|
ifeq ($(deb_default_compress),gzip)
|
||
12 years ago
|
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
|
||
|
&& echo xz || echo bzip2)
|
||
4 years ago
|
endif
|
||
12 years ago
|
|
||
12 years ago
|
languages = `ls -1d *i18n*`
|
||
|
|
||
|
build-stamp:
|
||
|
dh_testdir
|
||
|
|
||
|
# Regenerate build system
|
||
9 years ago
|
ifneq "$(wildcard /usr/share/libtool/ltmain.sh)" ""
|
||
12 years ago
|
cp -f /usr/share/libtool/ltmain.sh admin/ltmain.sh
|
||
9 years ago
|
endif
|
||
|
ifneq "$(wildcard /usr/share/libtool/config/ltmain.sh)" ""
|
||
12 years ago
|
cp -f /usr/share/libtool/config/ltmain.sh admin/ltmain.sh
|
||
9 years ago
|
endif
|
||
|
ifneq "$(wildcard /usr/share/libtool/build-aux/ltmain.sh)" ""
|
||
|
cp -f /usr/share/libtool/build-aux/ltmain.sh admin/ltmain.sh
|
||
|
endif
|
||
12 years ago
|
cp -f /usr/share/aclocal/libtool.m4 admin/libtool.m4.in
|
||
|
|
||
|
#Configure languages.
|
||
|
-for i in $(languages); do \
|
||
|
cd $$i && \
|
||
|
autoreconf && automake -f && $(MAKE) -f ../admin/Makefile.common && \
|
||
|
./configure $(configkde); \
|
||
9 years ago
|
$(MAKE) $(DEB_MAKE_PARALLEL); \
|
||
12 years ago
|
cd ..; \
|
||
|
done
|
||
|
|
||
|
touch build-stamp
|
||
|
|
||
|
build: build-stamp
|
||
|
-include debian/debiandirs
|
||
|
|
||
|
clean:
|
||
|
dh_clean
|
||
|
dh_testdir
|
||
|
|
||
|
# Remove all language directories.
|
||
|
rm -rf build-stamp
|
||
|
rm -rf debian/*18n*
|
||
|
|
||
|
binary-indep: build
|
||
|
dh_testdir
|
||
|
dh_testroot
|
||
|
dh_clean -k
|
||
|
|
||
|
-for i in $(languages); do \
|
||
|
( \
|
||
|
cd $$i && \
|
||
|
echo $$(install_dir) && \
|
||
9 years ago
|
$(MAKE) install DESTDIR=`pwd`/../debian/$$i-trinity $(DEB_MAKE_PARALLEL); \
|
||
12 years ago
|
cd .. \
|
||
|
) \
|
||
|
done
|
||
|
|
||
|
|
||
|
mkdir debian/koffice-i18n-engb-trinity
|
||
|
cp -aR debian/koffice-i18n-en_GB-trinity/* debian/koffice-i18n-engb-trinity/
|
||
|
|
||
|
mkdir debian/koffice-i18n-ptbr-trinity
|
||
|
cp -aR debian/koffice-i18n-pt_BR-trinity/* debian/koffice-i18n-ptbr-trinity/
|
||
|
|
||
|
mkdir debian/koffice-i18n-srlatin-trinity
|
||
|
cp -aR debian/koffice-i18n-sr@Latn-trinity/* debian/koffice-i18n-srlatin-trinity/
|
||
|
|
||
|
mkdir debian/koffice-i18n-zhcn-trinity
|
||
|
cp -aR debian/koffice-i18n-zh_CN-trinity/* debian/koffice-i18n-zhcn-trinity/
|
||
|
|
||
|
mkdir debian/koffice-i18n-zhtw-trinity
|
||
|
cp -aR debian/koffice-i18n-zh_TW-trinity/* debian/koffice-i18n-zhtw-trinity/
|
||
|
|
||
|
|
||
|
#Removing duplicate kdgantt.mo files.
|
||
|
-rm -f `find . -name "kdgantt.mo"`
|
||
|
|
||
|
dh_installdocs
|
||
|
dh_installmenu
|
||
|
dh_installchangelogs
|
||
|
dh_strip
|
||
|
dh_link
|
||
|
dh_compress -X.docbook -X.css -X-license -X.dcl -X.bz2
|
||
|
dh_fixperms
|
||
|
dh_installdeb
|
||
|
dh_gencontrol
|
||
|
dh_md5sums
|
||
12 years ago
|
dh_builddeb $(DEB_DH_BUILDDEB_ARGS)
|
||
12 years ago
|
|
||
|
binary: binary-indep
|
||
|
|
||
|
.PHONY: binary binary-indep clean
|