2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-08-24 01:39:54 +02:00
|
|
|
#
|
|
|
|
# schifra
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2012-08-24 01:39:54 +02:00
|
|
|
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
|
|
|
|
|
2014-09-27 21:32:38 +02:00
|
|
|
SCHIFRA_MAKE_OPTS = COMPILER="$(TARGET_CXX)" \
|
2014-10-28 11:17:41 +01:00
|
|
|
OPTIONS="$(TARGET_CFLAGS) $(TARGET_LDFLAGS)"
|
2012-08-24 01:39:54 +02:00
|
|
|
|
|
|
|
# The examples are the only buildable artefacts.
|
|
|
|
ifeq ($(BR2_PACKAGE_SCHIFRA_EXAMPLES),y)
|
|
|
|
define SCHIFRA_BUILD_CMDS
|
2014-09-27 21:32:38 +02:00
|
|
|
$(MAKE) -C $(@D) $(SCHIFRA_MAKE_OPTS) all
|
2012-08-24 01:39:54 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define SCHIFRA_INSTALL_EXAMPLES
|
|
|
|
cd $(@D) && for i in `find -type f -name 'schifra_*' -executable` ; \
|
|
|
|
do \
|
2013-11-22 00:01:54 +01:00
|
|
|
$(INSTALL) -m 0755 -D $$i $(TARGET_DIR)/usr/bin/$$i; \
|
2012-08-24 01:39:54 +02:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
2013-11-21 14:47:37 +01:00
|
|
|
SCHIFRA_POST_INSTALL_TARGET_HOOKS += SCHIFRA_INSTALL_EXAMPLES
|
2012-08-24 01:39:54 +02:00
|
|
|
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))
|