kumquat-buildroot/package/schifra/schifra.mk
Arnout Vandecappelle 7e6431708c schifra: fix build of examples and add hash
The OPTIONS argument passed to make had a redundant -o option, leading
to:

g++ -pipe -Os   -o -o schifra_reed_solomon_speed_evaluation schifra_reed_solomon_speed_evaluation.cpp -lstdc++ -lm
arm-linux-musleabi-g++: error: schifra_reed_solomon_speed_evaluation: No such file or directory

Fixes:
http://autobuild.buildroot.net/results/2143b4f6f22f50ccb4af36732cc7d9304daa3ff9/

This error didn't occur before because upstream has silently updated
the tarball. To protect against this in the future, a hash is added as
well.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-10-28 18:55:16 +01:00

44 lines
1.2 KiB
Makefile

################################################################################
#
# schifra
#
################################################################################
SCHIFRA_VERSION = 0.0.1
SCHIFRA_SITE = http://www.schifra.com/downloads
SCHIFRA_SOURCE = schifra.tgz
SCHIFRA_INSTALL_STAGING = YES
SCHIFRA_LICENSE = schifra license
SCHIFRA_LICENSE_FILES = schifra_license.txt
SCHIFRA_MAKE_OPTS = COMPILER="$(TARGET_CXX)" \
OPTIONS="$(TARGET_CFLAGS) $(TARGET_LDFLAGS)"
# The examples are the only buildable artefacts.
ifeq ($(BR2_PACKAGE_SCHIFRA_EXAMPLES),y)
define SCHIFRA_BUILD_CMDS
$(MAKE) -C $(@D) $(SCHIFRA_MAKE_OPTS) all
endef
define SCHIFRA_INSTALL_EXAMPLES
cd $(@D) && for i in `find -type f -name 'schifra_*' -executable` ; \
do \
$(INSTALL) -m 0755 -D $$i $(TARGET_DIR)/usr/bin/$$i; \
done
endef
SCHIFRA_POST_INSTALL_TARGET_HOOKS += SCHIFRA_INSTALL_EXAMPLES
endif
define SCHIFRA_INSTALL_TARGET_CMDS
cd $(@D) && for i in schifra_*.hpp; do \
$(INSTALL) -m 0644 -D $$i $(TARGET_DIR)/usr/include/$$i; done
endef
define SCHIFRA_INSTALL_STAGING_CMDS
cd $(@D) && for i in schifra_*.hpp; do \
$(INSTALL) -m 0644 -D $$i $(STAGING_DIR)/usr/include/$$i; done
endef
$(eval $(generic-package))