c29e68f808
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Acked-by: Petr Vorel <petr.vorel@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
32 lines
818 B
Makefile
32 lines
818 B
Makefile
################################################################################
|
|
#
|
|
# feh
|
|
#
|
|
################################################################################
|
|
|
|
FEH_VERSION = 2.27.1
|
|
FEH_SOURCE = feh-$(FEH_VERSION).tar.bz2
|
|
FEH_SITE = http://feh.finalrewind.org
|
|
FEH_DEPENDENCIES = imlib2 libpng xlib_libXinerama xlib_libXt
|
|
FEH_LICENSE = MIT
|
|
FEH_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
FEH_DEPENDENCIES += libcurl
|
|
FEH_MAKE_OPTS += curl=1
|
|
else
|
|
FEH_MAKE_OPTS += curl=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))
|