2007-07-23 10:59:10 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# fbv
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-23 14:19:59 +02:00
|
|
|
FBV_VERSION:=1.0b
|
|
|
|
FBV_SOURCE:=fbv-$(FBV_VERSION).tar.gz
|
2007-07-23 10:59:10 +02:00
|
|
|
FBV_SITE:=http://s-tech.elsat.net.pl/fbv
|
2007-07-23 14:19:59 +02:00
|
|
|
FBV_DIR:=$(BUILD_DIR)/fbv-$(FBV_VERSION)
|
2007-07-23 10:59:10 +02:00
|
|
|
FBV_CAT:=$(ZCAT)
|
|
|
|
FBV_BINARY:=fbv
|
|
|
|
FBV_TARGET_BINARY:=usr/bin/$(FBV_BINARY)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(FBV_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(FBV_SITE),$(FBV_SOURCE))
|
2007-07-23 10:59:10 +02:00
|
|
|
|
2007-08-01 10:37:14 +02:00
|
|
|
fbv-source: $(DL_DIR)/$(FBV_SOURCE)
|
|
|
|
|
2007-07-23 10:59:10 +02:00
|
|
|
$(FBV_DIR)/.unpacked: $(DL_DIR)/$(FBV_SOURCE)
|
|
|
|
$(FBV_CAT) $(DL_DIR)/$(FBV_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2008-04-24 11:03:25 +02:00
|
|
|
toolchain/patch-kernel.sh $(FBV_DIR) package/fbv/ \
|
|
|
|
fbv-$(FBV_VERSION)\*.patch fbv-$(FBV_VERSION)\*.patch.$(ARCH)
|
2007-07-23 14:19:59 +02:00
|
|
|
touch $@
|
2007-07-23 10:59:10 +02:00
|
|
|
|
|
|
|
$(FBV_DIR)/.configured: $(FBV_DIR)/.unpacked
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(FBV_DIR); rm -f config.cache; \
|
2007-08-01 10:37:14 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-07-23 14:22:37 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-07-23 10:59:10 +02:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libs="-lz -lm" \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-07-23 14:19:59 +02:00
|
|
|
touch $@
|
2007-07-23 10:59:10 +02:00
|
|
|
|
|
|
|
$(FBV_DIR)/$(FBV_BINARY): $(FBV_DIR)/.configured
|
2007-08-01 10:37:14 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(FBV_DIR)
|
2007-07-23 10:59:10 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(FBV_TARGET_BINARY): $(FBV_DIR)/$(FBV_BINARY)
|
|
|
|
install -D $(FBV_DIR)/$(FBV_BINARY) $(TARGET_DIR)/$(FBV_TARGET_BINARY)
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
fbv: libpng jpeg libungif $(TARGET_DIR)/$(FBV_TARGET_BINARY)
|
2007-07-23 10:59:10 +02:00
|
|
|
|
|
|
|
fbv-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(FBV_TARGET_BINARY)
|
|
|
|
-$(MAKE) -C $(FBV_DIR) clean
|
|
|
|
|
|
|
|
fbv-dirclean:
|
|
|
|
rm -rf $(FBV_DIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FBV),y)
|
2007-07-23 10:59:10 +02:00
|
|
|
TARGETS+=fbv
|
|
|
|
endif
|