xref: /OK3568_Linux_fs/buildroot/package/opkg/opkg.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# opkg
4#
5################################################################################
6
7OPKG_VERSION = 0.4.5
8OPKG_SITE = https://downloads.yoctoproject.org/releases/opkg
9OPKG_DEPENDENCIES = host-pkgconf libarchive
10OPKG_LICENSE = GPL-2.0+
11OPKG_LICENSE_FILES = COPYING
12OPKG_INSTALL_STAGING = YES
13OPKG_CONF_OPTS = --disable-curl
14
15# Ensure directory for lockfile exists
16define OPKG_CREATE_LOCKDIR
17	mkdir -p $(TARGET_DIR)/usr/lib/opkg
18endef
19
20ifeq ($(BR2_PACKAGE_OPKG_GPG_SIGN),y)
21OPKG_CONF_OPTS += --enable-gpg
22OPKG_CONF_ENV += \
23	ac_cv_path_GPGME_CONFIG=$(STAGING_DIR)/usr/bin/gpgme-config \
24	ac_cv_path_GPGERR_CONFIG=$(STAGING_DIR)/usr/bin/gpg-error-config
25OPKG_DEPENDENCIES += libgpgme libgpg-error
26else
27OPKG_CONF_OPTS += --disable-gpg
28endif
29
30OPKG_POST_INSTALL_TARGET_HOOKS += OPKG_CREATE_LOCKDIR
31
32$(eval $(autotools-package))
33