package/feh: Cleanup build configuration

* build in parallel
* use TARGET_CONFIGURE_OPTS
* cleanup FEH_INSTALL_TARGET_CMDS

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Petr Vorel 2017-11-16 11:04:58 +01:00 committed by Thomas Petazzoni
parent 4ce9345d9d
commit 2168d42852

View File

@ -12,13 +12,12 @@ FEH_LICENSE = MIT
FEH_LICENSE_FILES = COPYING
define FEH_BUILD_CMDS
$(TARGET_MAKE_ENV) CFLAGS="$(TARGET_CFLAGS) -std=gnu99" $(MAKE1) \
CC="$(TARGET_CC) $(TARGET_LDFLAGS)" -C $(@D) all
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
$(MAKE) -C $(@D) all
endef
define FEH_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) " \
PREFIX=/usr DESTDIR=$(TARGET_DIR) -C $(@D) install
$(TARGET_MAKE_ENV) $(MAKE) PREFIX=/usr DESTDIR=$(TARGET_DIR) -C $(@D) install
endef
$(eval $(generic-package))