"Fossies" - the Fresh Open Source Software Archive

Member "buildroot-2021.05/package/apcupsd/apcupsd.mk" (6 Jun 2021, 2145 Bytes) of package /linux/privat/buildroot-2021.05.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes reports for "apcupsd.mk": 2021.05-rc3_vs_2021.05 or 2021.02.2_vs_2021.05.

    1 ################################################################################
    2 #
    3 # apcupsd
    4 #
    5 ################################################################################
    6 
    7 APCUPSD_VERSION = 3.14.14
    8 APCUPSD_SITE = http://downloads.sourceforge.net/project/apcupsd/apcupsd%20-%20Stable/$(APCUPSD_VERSION)
    9 APCUPSD_LICENSE = GPL-2.0
   10 APCUPSD_LICENSE_FILES = COPYING
   11 APCUPSD_CPE_ID_VENDOR = apcupsd
   12 APCUPSD_CONF_OPTS = --disable-test
   13 
   14 ifneq ($(BR2_PACKAGE_APCUPSD_MODBUS_USB)$(BR2_PACKAGE_APCUPSD_USB),)
   15 APCUPSD_CONF_ENV += ac_cv_path_usbcfg=$(STAGING_DIR)/usr/bin/libusb-config
   16 ifeq ($(BR2_STATIC_LIBS),y)
   17 APCUPSD_DEPENDENCIES += host-pkgconf
   18 APCUPSD_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libusb`"
   19 endif
   20 endif
   21 
   22 ifeq ($(BR2_PACKAGE_APCUPSD_APCSMART),y)
   23 APCUPSD_CONF_OPTS += --enable-apcsmart
   24 else
   25 APCUPSD_CONF_OPTS += --disable-apcsmart
   26 endif
   27 
   28 ifeq ($(BR2_PACKAGE_APCUPSD_DUMB),y)
   29 APCUPSD_CONF_OPTS += --enable-dumb
   30 else
   31 APCUPSD_CONF_OPTS += --disable-dumb
   32 endif
   33 
   34 ifeq ($(BR2_PACKAGE_APCUPSD_MODBUS_USB),y)
   35 APCUPSD_CONF_OPTS += --enable-modbus-usb
   36 APCUPSD_DEPENDENCIES = libusb libusb-compat
   37 else
   38 APCUPSD_CONF_OPTS += --disable-modbus-usb
   39 endif
   40 
   41 ifeq ($(BR2_PACKAGE_APCUPSD_MODBUS),y)
   42 APCUPSD_CONF_OPTS += --enable-modbus
   43 else
   44 APCUPSD_CONF_OPTS += --disable-modbus
   45 endif
   46 
   47 ifeq ($(BR2_PACKAGE_APCUPSD_NET),y)
   48 APCUPSD_CONF_OPTS += --enable-net
   49 else
   50 APCUPSD_CONF_OPTS += --disable-net
   51 endif
   52 
   53 ifeq ($(BR2_PACKAGE_APCUPSD_PCNET),y)
   54 APCUPSD_CONF_OPTS += --enable-pcnet
   55 else
   56 APCUPSD_CONF_OPTS += --disable-pcnet
   57 endif
   58 
   59 ifeq ($(BR2_PACKAGE_APCUPSD_SNMP),y)
   60 APCUPSD_CONF_OPTS += --enable-snmp
   61 else
   62 APCUPSD_CONF_OPTS += --disable-snmp
   63 endif
   64 
   65 ifeq ($(BR2_PACKAGE_APCUPSD_USB),y)
   66 APCUPSD_CONF_OPTS += --enable-usb
   67 APCUPSD_DEPENDENCIES = libusb libusb-compat
   68 else
   69 APCUPSD_CONF_OPTS += --disable-usb
   70 endif
   71 
   72 define APCUPSD_BUILD_CMDS
   73     $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/src
   74     $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/platforms
   75 endef
   76 
   77 define APCUPSD_INSTALL_TARGET_CMDS
   78     $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/src DESTDIR=$(TARGET_DIR) install
   79     $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/platforms DESTDIR=$(TARGET_DIR) install
   80 endef
   81 
   82 $(eval $(autotools-package))