kumquat-buildroot/package/fbv/fbv.mk

57 lines
1.5 KiB
Makefile
Raw Normal View History

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):
$(WGET) -P $(DL_DIR) $(FBV_SITE)/$(FBV_SOURCE)
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) -
2007-07-23 14:19:59 +02:00
toolchain/patch-kernel.sh $(FBV_DIR) package/fbv/ fbv-$(FBV_VERSION)\*.patch\*
touch $@
2007-07-23 10:59:10 +02:00
$(FBV_DIR)/.configured: $(FBV_DIR)/.unpacked
(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 \
--cc=$(TARGET_CC) \
--libs="-lz -lm" \
)
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)
fbv: uclibc libpng jpeg libungif $(TARGET_DIR)/$(FBV_TARGET_BINARY)
fbv-clean:
rm -f $(TARGET_DIR)/$(FBV_TARGET_BINARY)
-$(MAKE) -C $(FBV_DIR) clean
fbv-dirclean:
rm -rf $(FBV_DIR)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_FBV)),y)
TARGETS+=fbv
endif