kumquat-buildroot/package/feh/feh.mk
Fabrice Fontaine 74adec4f3a package/feh: add FEH_CPE_ID_VENDOR
cpe:2.3🅰️feh_project:feh is a valid CPE identifier for this package:

  https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe%3A2.3%3Aa%3Afeh_project%3Afeh

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-07-17 16:09:26 +02:00

47 lines
1.1 KiB
Makefile

################################################################################
#
# feh
#
################################################################################
FEH_VERSION = 3.6.3
FEH_SOURCE = feh-$(FEH_VERSION).tar.bz2
FEH_SITE = http://feh.finalrewind.org
FEH_DEPENDENCIES = imlib2 libpng xlib_libXt
FEH_LICENSE = MIT
FEH_LICENSE_FILES = COPYING
FEH_CPE_ID_VENDOR = feh_project
ifeq ($(BR2_PACKAGE_LIBCURL),y)
FEH_DEPENDENCIES += libcurl
FEH_MAKE_OPTS += curl=1
else
FEH_MAKE_OPTS += curl=0
endif
ifeq ($(BR2_PACKAGE_LIBEXIF),y)
FEH_DEPENDENCIES += libexif
FEH_MAKE_OPTS += exif=1
else
FEH_MAKE_OPTS += exif=0
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
FEH_DEPENDENCIES += xlib_libXinerama
FEH_MAKE_OPTS += xinerama=1
else
FEH_MAKE_OPTS += xinerama=0
endif
define FEH_BUILD_CMDS
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
$(MAKE) $(FEH_MAKE_OPTS) -C $(@D) all
endef
define FEH_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(FEH_MAKE_OPTS) PREFIX=/usr \
DESTDIR=$(TARGET_DIR) -C $(@D) install
endef
$(eval $(generic-package))