summaryrefslogtreecommitdiff
path: root/package/fbv/fbv.mk
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-23 08:59:10 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-23 08:59:10 +0000
commit96a8fc9f5964c2b20a4eb45192cbe33bc0fa4cbf (patch)
tree20e4ffc7a610c8220a8f6144f94731277abb196c /package/fbv/fbv.mk
parentaa25036b4d84a1ea767ca89a2f84b75d54527924 (diff)
Add fbv 'frame buffer viewer' package
Diffstat (limited to 'package/fbv/fbv.mk')
-rw-r--r--package/fbv/fbv.mk54
1 files changed, 54 insertions, 0 deletions
diff --git a/package/fbv/fbv.mk b/package/fbv/fbv.mk
new file mode 100644
index 000000000..fa4f966ba
--- /dev/null
+++ b/package/fbv/fbv.mk
@@ -0,0 +1,54 @@
+#############################################################
+#
+# fbv
+#
+#############################################################
+FBV_VER:=1.0b
+FBV_SOURCE:=fbv-$(FBV_VER).tar.gz
+FBV_SITE:=http://s-tech.elsat.net.pl/fbv
+FBV_DIR:=$(BUILD_DIR)/fbv-$(FBV_VER)
+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)
+
+$(FBV_DIR)/.unpacked: $(DL_DIR)/$(FBV_SOURCE)
+ $(FBV_CAT) $(DL_DIR)/$(FBV_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(FBV_DIR) package/fbv/ fbv-$(FBV_VER)\*.patch\*
+ @touch $@
+
+$(FBV_DIR)/.configured: $(FBV_DIR)/.unpacked
+ (cd $(FBV_DIR); \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ ./configure \
+ --prefix=/usr \
+ --cc=$(TARGET_CC) \
+ --libs="-lz -lm" \
+ );
+ @touch $@
+
+$(FBV_DIR)/$(FBV_BINARY): $(FBV_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) -C $(FBV_DIR)
+
+$(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