Browse Source

- pkg-utils: better readability

master
vanhofen 3 years ago
parent
commit
41505149ca
  1. 8
      package/pkg-utils.mk

8
package/pkg-utils.mk

@ -17,6 +17,7 @@ PKG_PATCHES_DIR = $(PACKAGE_DIR)/$(subst host-,,$(pkgname))/patches
# check for necessary $(PKG) variables
define PKG_CHECK_VARIABLES
# autoreconf
ifndef $(PKG)_AUTORECONF
$(PKG)_AUTORECONF = NO
@ -30,6 +31,7 @@ endif
ifndef $(PKG)_AUTORECONF_OPTS
$(PKG)_AUTORECONF_OPTS =
endif
# cmake / configure / meson
ifndef $(PKG)_CMAKE
$(PKG)_CMAKE = cmake
@ -43,6 +45,7 @@ endif
ifndef $(PKG)_CONF_OPTS
$(PKG)_CONF_OPTS =
endif
# make
ifndef $(PKG)_MAKE
$(PKG)_MAKE = $(MAKE)
@ -53,6 +56,7 @@ endif
ifndef $(PKG)_MAKE_OPTS
$(PKG)_MAKE_OPTS =
endif
# make install
ifndef $(PKG)_MAKE_INSTALL_ENV
$(PKG)_MAKE_INSTALL_ENV = $($(PKG)_MAKE_ENV)
@ -60,6 +64,7 @@ endif
ifndef $(PKG)_MAKE_INSTALL_OPTS
$(PKG)_MAKE_INSTALL_OPTS = $($(PKG)_MAKE_OPTS)
endif
# ninja
ifndef $(PKG)_NINJA_ENV
$(PKG)_NINJA_ENV =
@ -67,7 +72,8 @@ endif
ifndef $(PKG)_NINJA_OPTS
$(PKG)_NINJA_OPTS =
endif
endef
endef # PKG_CHECK_VARIABLES
pkg-check-variables = $(call PKG_CHECK_VARIABLES)

Loading…
Cancel
Save