Blame view

buildroot/buildroot-2016.08.1/package/opkg/opkg.mk 986 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  ################################################################################
  #
  # opkg
  #
  ################################################################################
  
  OPKG_VERSION = v0.3.1
  OPKG_SITE = http://git.yoctoproject.org/git/opkg
  OPKG_SITE_METHOD = git
  # Uses PKG_CHECK_MODULES() in configure.ac
  OPKG_DEPENDENCIES = host-pkgconf libarchive
  OPKG_LICENSE = GPLv2+
  OPKG_LICENSE_FILES = COPYING
  OPKG_INSTALL_STAGING = YES
  OPKG_CONF_OPTS = --disable-curl
  OPKG_AUTORECONF = YES
  
  # Ensure directory for lockfile exists
  define OPKG_CREATE_LOCKDIR
  	mkdir -p $(TARGET_DIR)/usr/lib/opkg
  endef
  
  ifeq ($(BR2_PACKAGE_OPKG_GPG_SIGN),y)
  OPKG_CONF_OPTS += --enable-gpg
  OPKG_CONF_ENV += \
  	ac_cv_path_GPGME_CONFIG=$(STAGING_DIR)/usr/bin/gpgme-config \
  	ac_cv_path_GPGERR_CONFIG=$(STAGING_DIR)/usr/bin/gpg-error-config
  OPKG_DEPENDENCIES += libgpgme libgpg-error
  else
  OPKG_CONF_OPTS += --disable-gpg
  endif
  
  OPKG_POST_INSTALL_TARGET_HOOKS += OPKG_CREATE_LOCKDIR
  
  $(eval $(autotools-package))