Blame view

buildroot/buildroot-2016.08.1/package/openobex/openobex.mk 1.4 KB
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
36
37
38
39
40
41
42
43
44
45
  ################################################################################
  #
  # openobex
  #
  ################################################################################
  
  OPENOBEX_VERSION_MAJOR = 1.5
  OPENOBEX_VERSION = $(OPENOBEX_VERSION_MAJOR).0
  OPENOBEX_SITE = http://downloads.sourceforge.net/project/openobex/openobex/$(OPENOBEX_VERSION_MAJOR)
  OPENOBEX_SOURCE = openobex-$(OPENOBEX_VERSION)-Source.zip
  # Libraries seems to be released under LGPLv2.1+,
  # while other material is under GPLv2+.
  OPENOBEX_LICENSE = GPLv2+/LGPLv2.1+
  OPENOBEX_LICENSE_FILES = COPYING COPYING.LIB
  
  OPENOBEX_DEPENDENCIES = host-pkgconf
  OPENOBEX_AUTORECONF = YES
  OPENOBEX_INSTALL_STAGING = YES
  
  define OPENOBEX_EXTRACT_CMDS
  	$(UNZIP) -d $(@D) $(DL_DIR)/$(OPENOBEX_SOURCE)
  	mv $(@D)/openobex-$(OPENOBEX_VERSION)-Source/* $(@D)
  	$(RM) -r $(@D)/openobex-$(OPENOBEX_VERSION)-Source
  endef
  
  OPENOBEX_CONF_OPTS += \
  	$(if $(BR2_PACKAGE_OPENOBEX_APPS),--enable-apps) \
  	$(if $(BR2_PACKAGE_OPENOBEX_SYSLOG),--enable-syslog) \
  	$(if $(BR2_PACKAGE_OPENOBEX_DUMP),--enable-dump)
  
  ifeq ($(BR2_PACKAGE_OPENOBEX_BLUEZ),y)
  OPENOBEX_DEPENDENCIES += bluez_utils
  OPENOBEX_CONF_OPTS += --with-bluez=$(STAGING_DIR)
  else
  OPENOBEX_CONF_OPTS += --disable-bluetooth
  endif
  
  ifeq ($(BR2_PACKAGE_OPENOBEX_LIBUSB),y)
  OPENOBEX_DEPENDENCIES += libusb-compat
  OPENOBEX_CONF_OPTS += --with-usb=$(STAGING_DIR)
  else
  OPENOBEX_CONF_OPTS += --disable-usb
  endif
  
  $(eval $(autotools-package))