c2d525e82d
Verified way how to get packages from github by version or sha1 (it's enough to use first 7 characters from SHA1): 1. by sha1 FOO_VERSION = 1234567 FOO_SITE = http://github.com/user/package/tarball/branch 2. by version FOO_VERSION = v1.0 FOO_SITE = http://github.com/user/package/tarball/$(FOO_VERSION) Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
26 lines
595 B
Makefile
26 lines
595 B
Makefile
JSMIN_VERSION = a9b4755
|
|
JSMIN_SITE = http://github.com/douglascrockford/JSMin/tarball/master
|
|
|
|
define JSMIN_BUILD_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) jsmin
|
|
endef
|
|
|
|
define JSMIN_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 0755 -D $(@D)/jsmin $(TARGET_DIR)/usr/bin/jsmin
|
|
endef
|
|
|
|
define JSMIN_UNINSTALL_TARGET_CMDS
|
|
rm -f $(TARGET_DIR)/usr/bin/jsmin
|
|
endef
|
|
|
|
define HOST_JSMIN_BUILD_CMDS
|
|
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) jsmin
|
|
endef
|
|
|
|
define HOST_JSMIN_INSTALL_CMDS
|
|
$(INSTALL) -m 0755 -D $(@D)/jsmin $(HOST_DIR)/usr/bin/jsmin
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(host-generic-package))
|