| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export DH_VERBOSEscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/DH_VERBOSE.=1 |
| 5 |
|
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONSscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+all optimize=+lto |
| 8 |
|
| 9 |
include /usr/share/dpkg/architecture.mk |
| 10 |
|
| 11 |
|
| 12 |
export OPENCC_BUILD_DIRscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/OPENCC_BUILD_DIR. = obj-$(DEB_BUILD_GNU_TYPEscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/DEB_BUILD_GNU_TYPE.) |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
%scip-debian debian opencc 1.4.1+ds1-7 opencc/rules/`%`().: |
| 18 |
dh $@ --buildsystem=cmake |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
BUILD_OPTIONSscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/BUILD_OPTIONS. = \ |
| 23 |
-DCMAKE_INSTALL_PREFIX=/usr \ |
| 24 |
-DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCHscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/DEB_HOST_MULTIARCH.)/ \ |
| 25 |
-DCMAKE_BUILD_TYPE=Release \ |
| 26 |
-DBUILD_OPENCC_JIEBA_PLUGIN=ON \ |
| 27 |
-DBUILD_PYTHON=OFF \ |
| 28 |
-DUSE_SYSTEM_DARTS=OFF \ |
| 29 |
-DUSE_SYSTEM_GTEST=ON \ |
| 30 |
-DUSE_SYSTEM_MARISA=ON \ |
| 31 |
-DUSE_SYSTEM_PYBIND11=ON \ |
| 32 |
-DUSE_SYSTEM_RAPIDJSON=ON \ |
| 33 |
-DUSE_SYSTEM_TCLAP=ON |
| 34 |
|
| 35 |
ifeq (,$(filterscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/filter. nodoc,$(DEB_BUILD_OPTIONSscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/DEB_BUILD_OPTIONS.))) |
| 36 |
BUILD_OPTIONSscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/BUILD_OPTIONS. += -DBUILD_DOCUMENTATION=ON |
| 37 |
else |
| 38 |
BUILD_OPTIONSscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/BUILD_OPTIONS. += -DBUILD_DOCUMENTATION=OFF |
| 39 |
endif |
| 40 |
|
| 41 |
ifeq (,$(filterscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/filter. nocheck,$(DEB_BUILD_OPTIONSscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/DEB_BUILD_OPTIONS.))) |
| 42 |
BUILD_OPTIONSscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/BUILD_OPTIONS. += -DENABLE_GTEST=ON |
| 43 |
else |
| 44 |
BUILD_OPTIONSscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/BUILD_OPTIONS. += -DENABLE_GTEST=OFF |
| 45 |
endif |
| 46 |
|
| 47 |
override_dh_auto_configurescip-debian debian opencc 1.4.1+ds1-7 opencc/rules/override_dh_auto_configure().: |
| 48 |
dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- $(BUILD_OPTIONSscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/BUILD_OPTIONS.) |
| 49 |
|
| 50 |
execute_after_dh_auto_buildscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/execute_after_dh_auto_build().: |
| 51 |
dh_auto_buildscip-debian debian debhelper . dh_auto_build(). -O--buildsystem=pybuild -- -s pyproject |
| 52 |
|
| 53 |
execute_after_dh_auto_testscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/execute_after_dh_auto_test().: |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
-LD_LIBRARY_PATH=$(CURDIRscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/CURDIR.)/$(OPENCC_BUILD_DIRscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/OPENCC_BUILD_DIR.)/src$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} \ |
| 58 |
dh_auto_testscip-debian debian debhelper . dh_auto_test(). -O--buildsystem=pybuild -- -s pyproject |
| 59 |
|
| 60 |
execute_after_dh_auto_installscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/execute_after_dh_auto_install().: |
| 61 |
dh_auto_installscip-debian debian debhelper . dh_auto_install(). -O--buildsystem=pybuild -- -s pyproject |
| 62 |
for i in debian/tmp/usr/lib/*/dist-packages/opencc/clib/; do \ |
| 63 |
mkdir -p $$i/share/; \ |
| 64 |
ln -sf ../../../../../../share/opencc $$i/share/; \ |
| 65 |
done |
| 66 |
|
| 67 |
execute_after_dh_auto_cleanscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/execute_after_dh_auto_clean().: |
| 68 |
find . -name *.pyc -delete |
| 69 |
|
| 70 |
execute_after_dh_installdocs-indepscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/execute_after_dh_installdocs-indep().: |
| 71 |
ifeq (,$(findstringscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/findstring. nodoc,$(DEB_BUILD_OPTIONSscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/DEB_BUILD_OPTIONS.))) |
| 72 |
dh_doxygen --indep |
| 73 |
endif |
| 74 |
|
| 75 |
override_dh_installdocsscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/override_dh_installdocs().: |
| 76 |
dh_installdocsscip-debian debian debhelper . dh_installdocs(). -plibopencc-doc --doc-main-package=opencc |
| 77 |
dh_installdocsscip-debian debian debhelper . dh_installdocs(). --remaining-packages |
| 78 |
|
| 79 |
override_dh_installchangelogsscip-debian debian opencc 1.4.1+ds1-7 opencc/rules/override_dh_installchangelogs().: |
| 80 |
dh_installchangelogsscip-debian debian debhelper . dh_installchangelogs(). -k NEWS.md |