summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcmchao <cmchao@gmail.com>2010-06-16 11:47:05 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-06-24 11:51:06 (GMT)
commit9486dcc93a15e3e44e6a584589562c24da23fc50 (patch)
treef81fa6e7023f9aa98697402e5d54b9f7cd345735
parentc4c8b254671c8df3c120fcb4ebd0d96601ccc688 (diff)
downloadbuildroot-9486dcc93a15e3e44e6a584589562c24da23fc50.tar.gz
buildroot-9486dcc93a15e3e44e6a584589562c24da23fc50.tar.bz2
fbv : convert to autotools infrastructure
Changes by Thomas Petazzoni <thomas.petazzoni@free-electrons.com> * Target installation is the default behaviour * No installation to staging is the default behaviour * Remove FBV_BINARY/FBV_TARGET_BINARY variables Signed-off-by: cmchao <cmchao@gmail.com>
-rw-r--r--package/fbv/fbv.mk50
1 files changed, 15 insertions, 35 deletions
diff --git a/package/fbv/fbv.mk b/package/fbv/fbv.mk
index 44ce5c6..7305c6e 100644
--- a/package/fbv/fbv.mk
+++ b/package/fbv/fbv.mk
@@ -6,23 +6,11 @@
FBV_VERSION:=1.0b
FBV_SOURCE:=fbv-$(FBV_VERSION).tar.gz
FBV_SITE:=http://s-tech.elsat.net.pl/fbv
-FBV_DIR:=$(BUILD_DIR)/fbv-$(FBV_VERSION)
-FBV_CAT:=$(ZCAT)
-FBV_BINARY:=fbv
-FBV_TARGET_BINARY:=usr/bin/$(FBV_BINARY)
-$(DL_DIR)/$(FBV_SOURCE):
- $(call DOWNLOAD,$(FBV_SITE),$(FBV_SOURCE))
+FBV_DEPENDENCIES = libpng jpeg libungif
-fbv-source: $(DL_DIR)/$(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_VERSION)\*.patch fbv-$(FBV_VERSION)\*.patch.$(ARCH)
- touch $@
-
-$(FBV_DIR)/.configured: $(FBV_DIR)/.unpacked
+#fbv donesn't support cross-compilation
+define FBV_CONFIGURE_CMDS
(cd $(FBV_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
@@ -30,27 +18,19 @@ $(FBV_DIR)/.configured: $(FBV_DIR)/.unpacked
--prefix=/usr \
--libs="-lz -lm" \
)
- touch $@
+endef
-$(FBV_DIR)/$(FBV_BINARY): $(FBV_DIR)/.configured
- $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(FBV_DIR)
+define FBV_BUILD_CMDS
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+endef
-$(TARGET_DIR)/$(FBV_TARGET_BINARY): $(FBV_DIR)/$(FBV_BINARY)
- install -D $(FBV_DIR)/$(FBV_BINARY) $(TARGET_DIR)/$(FBV_TARGET_BINARY)
+define FBV_INSTALL_TARGET_CMDS
+ install -D $(@D)/fbv $(TARGET_DIR)/usr/bin/fbv
+endef
-fbv: libpng jpeg libungif $(TARGET_DIR)/$(FBV_TARGET_BINARY)
+define FBV_CLEAN_CMDS
+ rm -f $(TARGET_DIR)/usr/bin/fbv
+ -$(MAKE) -C $(@D) clean
+endef
-fbv-clean:
- rm -f $(TARGET_DIR)/$(FBV_TARGET_BINARY)
- -$(MAKE) -C $(FBV_DIR) clean
-
-fbv-dirclean:
- rm -rf $(FBV_DIR)
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(BR2_PACKAGE_FBV),y)
-TARGETS+=fbv
-endif
+$(eval $(call AUTOTARGETS,package,fbv))