From: Jan Pedersen <jp@jp-embedded.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] now using generic-package
Date: Thu, 10 Jan 2013 11:13:28 +0100 [thread overview]
Message-ID: <1357812808-3317-2-git-send-email-jp@jp-embedded.com> (raw)
In-Reply-To: <1357812808-3317-1-git-send-email-jp@jp-embedded.com>
Signed-off-by: Jan Pedersen <jp@jp-embedded.com>
---
package/infozip/infozip.mk | 46 ++++++++++++--------------------------------
1 file changed, 12 insertions(+), 34 deletions(-)
diff --git a/package/infozip/infozip.mk b/package/infozip/infozip.mk
index 996a709..ce6e88f 100644
--- a/package/infozip/infozip.mk
+++ b/package/infozip/infozip.mk
@@ -3,41 +3,19 @@
# infozip
#
#############################################################
-INFOZIP_VERSION:=30
-INFOZIP_SOURCE:=zip$(INFOZIP_VERSION).tgz
-INFOZIP_SITE:=ftp://ftp.info-zip.org/pub/infozip/src/
-INFOZIP_DIR = $(BUILD_DIR)/zip$(INFOZIP_VERSION)
+INFOZIP_VERSION = 30
+INFOZIP_SOURCE = zip$(INFOZIP_VERSION).tgz
+INFOZIP_SITE = ftp://ftp.info-zip.org/pub/infozip/src
+INFOZIP_LICENSE = Info-ZIP
+INFOZIP_LICENSE_FILES = LICENCE
-$(DL_DIR)/$(INFOZIP_SOURCE):
- $(call DOWNLOAD,$(INFOZIP_SITE)/$(INFOZIP_SOURCE))
+define INFOZIP_BUILD_CMDS
+ $(MAKE) -C $(@D) -f unix/Makefile generic CC=$(TARGET_CC)
+endef
-$(INFOZIP_DIR)/.source: $(DL_DIR)/$(INFOZIP_SOURCE)
- $(ZCAT) $(DL_DIR)/$(INFOZIP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- touch $@
+define INFOZIP_INSTALL_TARGET_CMDS
+ $(MAKE) -C $(@D) -f unix/Makefile install prefix=$(TARGET_DIR)/usr CC=$(TARGET_CC)
+endef
-$(INFOZIP_DIR)/.build: $(INFOZIP_DIR)/.source
- make -C $(INFOZIP_DIR) -f unix/Makefile generic CC=$(TARGET_CC)
- touch $@
+$(eval $(generic-package))
-$(INFOZIP_DIR)/.install: $(INFOZIP_DIR)/.build
- make -C $(INFOZIP_DIR) -f unix/Makefile install prefix=$(TARGET_DIR)/usr CC=$(TARGET_CC)
- touch $@
-
-infozip: $(INFOZIP_DIR)/.install
-
-infozip-source: $(DL_DIR)/$(INFOZIP_SOURCE)
-
-infozip-clean:
- rm -rf $(INFOZIP_DIR)
-
-infozip-dirclean:
- rm -rf $(INFOZIP_DIR)
-
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(BR2_PACKAGE_INFOZIP),y)
-TARGETS += infozip
-endif
--
1.7.10.4
next prev parent reply other threads:[~2013-01-10 10:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-10 10:13 [Buildroot] [PATCH 1/2] added infozip package Jan Pedersen
2013-01-10 10:13 ` Jan Pedersen [this message]
2013-01-10 10:22 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1357812808-3317-2-git-send-email-jp@jp-embedded.com \
--to=jp@jp-embedded.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.