Created
May 9, 2017 19:58
-
-
Save ekala/103263a6b2b5b62008b5054bfff21ede to your computer and use it in GitHub Desktop.
Elixir Makefile for OpenWrt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (C) 2007 OpenWrt.org | |
# | |
# This is free software, licensed under the GNU General Public License v2. | |
# See /LICENSE for more information. | |
# | |
include $(TOPDIR)/rules.mk | |
PKG_NAME:=elixir | |
PKG_VERSION:=v1.4.2 | |
PKG_RELEASE:=3 | |
PKG_SOURCE_PROTO:=git | |
PKG_SOURCE_URL:=https://github.com/elixir-lang/elixir | |
PKG_SOURCE_VERSION:=$(PKG_VERSION) | |
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |
PKG_BUILD_PARALLEL:=1 | |
include $(INCLUDE_DIR)/package.mk | |
define Package/elixir | |
SECTION:=lang | |
CATEGORY:=Languages | |
TITLE:=Elixir | |
URL:=http://elixir-lang.org | |
DEPENDS:=+erlang +erlang-compiler +erlang-runtime-tools +erlang-hipe | |
endef | |
define Package/elixir/description | |
Elixir is a dynamic, functional language designed for building scalable and maintainable applications | |
endef | |
define Build/Compile | |
$(MAKE) -C $(PKG_BUILD_DIR) \ | |
PREFIX="$(PKG_INSTALL_DIR)/usr" \ | |
install | |
endef | |
define Package/elixir/install | |
$(INSTALL_DIR) $(1)/usr/lib/elixir/bin | |
$(INSTALL_DIR) $(1)/usr/lib/elixir/lib | |
$(INSTALL_DIR) $(1)/usr/bin | |
$(CP) $(PKG_INSTALL_DIR)/usr/lib/elixir/lib/* $(1)/usr/lib/elixir/lib/ | |
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ | |
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/elixir/bin/* $(1)/usr/lib/elixir/bin/ | |
endef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment