diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-03-28 14:13:18 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-03-28 14:13:18 -0500 |
commit | 4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6 (patch) | |
tree | c6f53decaabed9678523a8bbd6a1000a9f3bf78f /ubuntu/raring/tde-i18n/debian/rules | |
parent | 211d261d7778de1d9a773e7ec43a4e97b4bd7e57 (diff) | |
download | tde-packaging-4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6.tar.gz tde-packaging-4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6.zip |
Split raring packaging into new directory due to defoma changes
Diffstat (limited to 'ubuntu/raring/tde-i18n/debian/rules')
-rwxr-xr-x | ubuntu/raring/tde-i18n/debian/rules | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/ubuntu/raring/tde-i18n/debian/rules b/ubuntu/raring/tde-i18n/debian/rules new file mode 100755 index 000000000..b60af22ee --- /dev/null +++ b/ubuntu/raring/tde-i18n/debian/rules @@ -0,0 +1,119 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +I18N_DIR_PREFIX := tde-i18n +#I18N_VERSION := $(shell cat debian/changelog | head -n1 | sed 's/.*(\([[:digit:]]\+:\)\?\(.\+\)-.\+).*/\2/') +I18N_VERSION := 3.5.10 +I18N_DIR_PAT := $(I18N_DIR_PREFIX)-% +I18N_DIRS := $(wildcard $(I18N_DIR_PREFIX)-*) +I18N_PATCHES := $(wildcard debian/patches/*.diff) + +# Stamps and support variables +cur_lang = $(word 2,$(subst __, ,$@)) +cur_lang_dir = $(patsubst %,$(I18N_DIR_PREFIX)-%,$(cur_lang)) +cur_lang_patch = $(patsubst %,debian/patches/%.diff,$(cur_lang)) +cur_pkg = $(I18N_DIR_PREFIX)-$(cur_lang) + +STAMP_EXTRACT := $(patsubst $(I18N_DIR_PAT),debian/stamp__%__extract,$(I18N_DIRS)) +STAMP_PATCH := $(patsubst debian/patches/%.diff,debian/stamp__%__patch,$(I18N_PATCHES)) +STAMP_BUILD := $(patsubst $(I18N_DIR_PAT),debian/stamp__%__build,$(I18N_DIRS)) +I18N_INSTALL := $(patsubst $(I18N_DIR_PAT),install__%,$(I18N_DIRS)) + + +-include debian/debiandirs + +DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include/tde +DEB_CONFIGURE_MANDIR := /opt/trinity/share/man +DEB_CONFIGURE_PREFIX := /opt/trinity +DEB_CONFIGURE_INFODIR := /opt/trinity/share/info + +cdbs_configure_flags := --with-qt-dir=/usr/share/qt3 --disable-rpath --with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug) + +DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ + && echo xz || echo bzip2) + +debian/debiandirs: scripts/admin/debianrules + perl -w scripts/admin/debianrules echodirs > debian/debiandirs + + +patch: $(STAMP_PATCH) + +$(STAMP_PATCH): + # Applying patch for the '$(cur_lang)' language ... + cd $(cur_lang_dir) && patch --set-utc -p1 < "$(CURDIR)/$(cur_lang_patch)" > $(CURDIR)/$@_log + mv $@_log $@ + + +build:: + dh_testdir + +build:: $(STAMP_EXTRACT) patch $(STAMP_BUILD) + +$(STAMP_EXTRACT): +# tar xfj $(cur_lang_dir).tar.bz2 + @touch $@ + +$(STAMP_BUILD): + # Building the '$(cur_lang)' language ... + cd $(cur_lang_dir) && autoreconf && automake -f && $(MAKE) -f ../admin/Makefile.common && ./configure $(configkde) && $(MAKE) + touch $@ + + +install:: + dh_testdir + dh_testroot + dh_clean -k + +install:: $(I18N_INSTALL) + # copying the non 2 letter languages into the correct directory + mkdir debian/tde-i18n-engb-trinity + cp -aR debian/tde-i18n-en_GB-trinity/* debian/tde-i18n-engb-trinity/ + mkdir debian/tde-i18n-ptbr-trinity + cp -aR debian/tde-i18n-pt_BR-trinity/* debian/tde-i18n-ptbr-trinity/ + mkdir debian/tde-i18n-srlatin-trinity + cp -aR debian/tde-i18n-sr@Latn-trinity/* debian/tde-i18n-srlatin-trinity/ + mkdir debian/tde-i18n-zhcn-trinity + cp -aR debian/tde-i18n-zh_CN-trinity/* debian/tde-i18n-zhcn-trinity/ + mkdir debian/tde-i18n-zhtw-trinity + cp -aR debian/tde-i18n-zh_TW-trinity/* debian/tde-i18n-zhtw-trinity/ + +$(I18N_INSTALL): + cd $(cur_lang_dir) && $(MAKE) install DESTDIR=$(CURDIR)/debian/$(cur_pkg)-trinity + + +clean: debian-clean +debian-clean: + dh_testdir + # delete unpacked bzip2 languages + rm -rf $(I18N_DIR_PREFIX)-*-$(I18N_VERSION)/ debian/tde-i18n-* + rm -f debian/stamp__* + dh_clean + + +binary-arch: build + dh_testroot + dh_testdir + + +binary-indep: build install + dh_testroot + dh_testdir + dh_installdocs + dh_installmenu + dh_installchangelogs + dh_strip + dh_compress -X.docbook -X.css -X-license -X.dcl -X.bz2 + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb $(DEB_DH_BUILDDEB_ARGS) + + +# Below here is fairly generic really +binary: binary-indep binary-arch + +.PHONY: binary binary-arch binary-indep clean patch build install $(I18N_INSTALL) |