aboutsummaryrefslogtreecommitdiff
path: root/libs/qrencode/Makefile
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-03-04 14:45:01 -0800
committerRosen Penev <rosenp@gmail.com>2021-03-27 21:51:50 -0700
commita31b7320077c340268d31642ded69cc66fbc230c (patch)
tree884808c8657f774a56f82720486b88017f30e6a6 /libs/qrencode/Makefile
parent3ad92293da92b2d5fc3de1ccc214a69f2b081f2e (diff)
treewide: build CMake projects with Ninja
faster to compile. A small selection of packages was tested going from: Executed in 696.30 secs fish external usr time 82.98 mins 395.00 micros 82.98 mins sys time 9.02 mins 0.00 micros 9.02 mins to: Executed in 592.20 secs fish external usr time 84.84 mins 361.00 micros 84.84 mins sys time 8.85 mins 57.00 micros 8.85 mins Tested by running make -j 12 and wiping staging/build_dir/target_x Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'libs/qrencode/Makefile')
-rw-r--r--libs/qrencode/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/qrencode/Makefile b/libs/qrencode/Makefile
index d305c24bd..c5a36c219 100644
--- a/libs/qrencode/Makefile
+++ b/libs/qrencode/Makefile
@@ -19,11 +19,10 @@ PKG_MAINTAINER:=Jonathan Bennett <JBennett@incomsystems.biz>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING
-PKG_BUILD_PARALLEL:=1
PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_qrencode
include $(INCLUDE_DIR)/package.mk
-include $(INCLUDE_DIR)/cmake.mk
+include ../../devel/ninja/ninja-cmake.mk
define Package/libqrencode
SECTION:=libs
@@ -68,7 +67,7 @@ define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/include/qrencode.h $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libqrencode.so* $(1)/usr/lib/
- $(CP) $(PKG_BUILD_DIR)/libqrencode.pc $(1)/usr/lib/pkgconfig/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libqrencode.pc $(1)/usr/lib/pkgconfig/
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libqrencode.pc
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libqrencode.pc
endef