diff options
-rw-r--r-- | core/core.mk | 27 | ||||
-rw-r--r-- | core/deps.mk | 56 | ||||
-rw-r--r-- | packages.v1.tsv | 11 | ||||
-rw-r--r-- | packages.v1.txt | 11 | ||||
-rw-r--r-- | packages.v2.tsv | 11 | ||||
-rw-r--r-- | plugins/c_src.mk | 3 | ||||
-rw-r--r-- | test/Makefile | 2 |
7 files changed, 109 insertions, 12 deletions
diff --git a/core/core.mk b/core/core.mk index 473013f..a2afe0d 100644 --- a/core/core.mk +++ b/core/core.mk @@ -32,6 +32,33 @@ gen_verbose = $(gen_verbose_$(V)) ERL = erl +A0 -noinput -boot start_clean +# Platform detection. +# @todo Add Windows/Cygwin detection eventually. + +ifeq ($(PLATFORM),) +UNAME_S := $(shell uname -s) + +ifeq ($(UNAME_S),Linux) +PLATFORM = linux +else ifeq ($(UNAME_S),Darwin) +PLATFORM = darwin +else ifeq ($(UNAME_S),SunOS) +PLATFORM = solaris +else ifeq ($(UNAME_S),GNU) +PLATFORM = gnu +else ifeq ($(UNAME_S),FreeBSD) +PLATFORM = freebsd +else ifeq ($(UNAME_S),NetBSD) +PLATFORM = netbsd +else ifeq ($(UNAME_S),OpenBSD) +PLATFORM = openbsd +else +$(error Unable to detect platform. Please open a ticket with the output of uname -a.) +endif + +export PLATFORM +endif + # Core targets. ifneq ($(words $(MAKECMDGOALS)),1) diff --git a/core/deps.mk b/core/deps.mk index bae195b..4a9c9ac 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -66,7 +66,11 @@ define dep_autopatch $(call dep_autopatch_erlang_mk,$(1)); \ fi \ else \ - $(call dep_autopatch2,$(1)); \ + if [ ! -d $(DEPS_DIR)/$(1)/src/ ]; then \ + $(call dep_autopatch_noop,$(1)); \ + else \ + $(call dep_autopatch2,$(1)); \ + fi \ fi endef @@ -78,6 +82,10 @@ define dep_autopatch2 fi endef +define dep_autopatch_noop + printf "noop:\n" > $(DEPS_DIR)/$(1)/Makefile +endef + # Overwrite erlang.mk with the current file by default. ifeq ($(NO_AUTOPATCH_ERLANG_MK),) define dep_autopatch_erlang_mk @@ -99,7 +107,9 @@ define dep_autopatch_gen endef define dep_autopatch_rebar - rm -f $(DEPS_DIR)/$(1)/Makefile; \ + if [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \ + mv $(DEPS_DIR)/$(1)/Makefile $(DEPS_DIR)/$(1)/Makefile.orig.mk; \ + fi; \ $(call erlang,$(call dep_autopatch_rebar.erl,$(1))); \ $(call erlang,$(call dep_autopatch_appsrc.erl,$(1))) endef @@ -109,6 +119,9 @@ define dep_autopatch_rebar.erl Write = fun (Text) -> file:write_file("$(DEPS_DIR)/$(1)/Makefile", Text, [append]) end, + Escape = fun (Text) -> + re:replace(Text, "\\\\$$$$", "\$$$$$$$$", [global, {return, list}]) + end, Write("ERLC_OPTS = +debug_info\n\n"), fun() -> File = case lists:keyfind(deps, 1, Conf) of @@ -136,8 +149,7 @@ define dep_autopatch_rebar.erl fun() -> case lists:keyfind(port_env, 1, Conf) of {_, Vars} -> - [Write(K ++ " = $$$$\(shell echo " ++ re:replace(V, "\\\\$$$$", "\$$$$$$$$", [global, {return, list}]) ++ "\)\n") - || {K, V} <- Vars], + [Write(K ++ " = $$$$\(shell echo " ++ Escape(V) ++ "\)\n") || {K, V} <- Vars], Write("CFLAGS += $$$$\(DRV_CFLAGS\)\n"), Write("CXXFLAGS += $$$$\(DRV_CFLAGS\)\n"), Write("LDFLAGS += $$$$\(DRV_LDFLAGS\)\n"); @@ -145,23 +157,43 @@ define dep_autopatch_rebar.erl end end(), fun() -> + case filelib:is_dir("$(DEPS_DIR)/$(1)/c_src") of + false -> ok; + true -> + Sources = [[" ./c_src/", S] || S <- filelib:wildcard("*.{c,C,cc,cpp}", "$(DEPS_DIR)/$(1)/c_src")], + Write(io_lib:format("SOURCES := ~s\n", [Sources])) + end + end(), + Write("\n\nrebar_dep: pre-deps deps pre-app app\n"), + Write("\npre-deps::\n"), + Write("\npre-app::\n"), + fun() -> case lists:keyfind(pre_hooks, 1, Conf) of false -> ok; {_, Hooks} -> [case H of {'get-deps', Command} -> - Write("\npre::\n\t" ++ Command ++ "\n"); + Write("\npre-deps::\n\t" ++ Escape(Command) ++ "\n"); {compile, Command} -> - Write("\npre::\n\t" ++ Command ++ "\n"); + Write("\npre-app::\n\t" ++ Escape(Command) ++ "\n"); + {Regex, compile, Command0} -> + case re:run("$(PLATFORM)", Regex, [{capture, none}]) of + match -> + Command = case Command0 of + "make -C" ++ _ -> Escape(Command0); + "gmake -C" ++ _ -> Escape(Command0); + "make " ++ Command1 -> "make -f Makefile.orig.mk " ++ Escape(Command1); + "gmake " ++ Command1 -> "gmake -f Makefile.orig.mk " ++ Escape(Command1); + _ -> Command0 + end, + Write("\npre-app::\n\t" ++ Command ++ "\n"); + nomatch -> + ok + end; _ -> ok - end || H <- Hooks], - Write("\npre:: deps app\n\n") + end || H <- Hooks] end end(), - case $(1) of - proper -> Write("\n# Proper hack.\napp::\n\t./write_compile_flags include/compile_flags.hrl\n"); - _ -> ok - end, Write("\ninclude ../../erlang.mk"), halt() endef diff --git a/packages.v1.tsv b/packages.v1.tsv index 20bf3c1..092134c 100644 --- a/packages.v1.tsv +++ b/packages.v1.tsv @@ -1,6 +1,7 @@ apns https://github.com/inaka/apns4erl http://inaka.github.com/apns4erl Apple Push Notification Server for Erlang azdht https://github.com/arcusfelis/azdht https://github.com/arcusfelis/azdht Azureus Distributed Hash Table (DHT) in Erlang binpp https://github.com/jtendo/binpp https://github.com/jtendo/binpp Erlang Binary Pretty Printer +bitcask https://github.com/basho/bitcask https://github.com/basho/bitcask because you need another a key/value storage engine bullet https://github.com/extend/bullet http://ninenines.eu Simple, reliable, efficient streaming for Cowboy. cake https://github.com/darach/cake-erl https://github.com/darach/cake-erl Really simple terminal colorization classifier https://github.com/inaka/classifier https://github.com/inaka/classifier An Erlang Bayesian Filter and Text Classifier @@ -12,10 +13,12 @@ debbie https://github.com/crownedgrouse/debbie https://github.com/crownedgrouse/ dispcount https://github.com/ferd/dispcount https://github.com/ferd/dispcount Erlang task dispatcher based on ETS counters. e2 https://github.com/gar1t/e2 http://e2project.org Library to simply writing correct OTP applications. edgar https://github.com/crownedgrouse/edgar https://github.com/crownedgrouse/edgar Erlang Does GNU AR +edis https://github.com/inaka/edis http://inaka.github.com/edis/ An Erlang implementation of Redis KV Store eep https://github.com/virtan/eep https://github.com/virtan/eep Erlang Easy Profiling (eep) application provides a way to analyze application performance and call hierarchy efene https://github.com/efene/efene https://github.com/efene/efene Alternative syntax for the Erlang Programming Language focusing on simplicity, ease of use and programmer UX eganglia https://github.com/inaka/eganglia https://github.com/inaka/eganglia Erlang library to interact with Ganglia ehsa https://bitbucket.org/a12n/ehsa https://bitbucket.org/a12n/ehsa Erlang HTTP server basic and digest authentication modules +eleveldb https://github.com/basho/eleveldb https://github.com/basho/eleveldb Erlang LevelDB API elli https://github.com/knutin/elli https://github.com/knutin/elli Simple, robust and performant Erlang web server elvis https://github.com/inaka/elvis https://github.com/inaka/elvis Erlang Style Reviewer emysql https://github.com/Eonblast/Emysql https://github.com/Eonblast/Emysql Stable, pure Erlang MySQL driver. @@ -25,12 +28,14 @@ epgsql https://github.com/epgsql/epgsql https://github.com/epgsql/epgsql Erlang epocxy https://github.com/duomark/epocxy https://github.com/duomark/epocxy Erlang Patterns of Concurrency eredis https://github.com/wooga/eredis https://github.com/wooga/eredis Erlang Redis client erlang_js https://github.com/basho/erlang_js https://github.com/basho/erlang_js A linked-in driver for Erlang to Mozilla's Spidermonkey Javascript runtime. +erlasticsearch https://github.com/dieswaytoofast/erlasticsearch https://github.com/dieswaytoofast/erlasticsearch Erlang thrift interface to elastic_search erlcloud https://github.com/gleber/erlcloud https://github.com/gleber/erlcloud Cloud Computing library for erlang (Amazon EC2, S3, SQS, SimpleDB, Mechanical Turk, ELB) erlcron https://github.com/erlware/erlcron https://github.com/erlware/erlcron Erlang cronish system erldb https://github.com/erldb/erldb http://erldb.org ORM (Object-relational mapping) application implemented in Erlang erlog https://github.com/rvirding/erlog https://github.com/rvirding/erlog Prolog interpreter in and for Erlang erlport https://github.com/hdima/erlport https://github.com/hdima/erlport ErlPort - connect Erlang to other languages erlsom https://github.com/willemdj/erlsom https://github.com/willemdj/erlsom XML parser for Erlang +erlubi https://github.com/krestenkrab/erlubi https://github.com/krestenkrab/erlubi Ubigraph Erlang Client (and Process Visualizer) erlware_commons https://github.com/erlware/erlware_commons https://github.com/erlware/erlware_commons Erlware Commons is an Erlware project focused on all aspects of reusable Erlang components. erlydtl https://github.com/erlydtl/erlydtl https://github.com/erlydtl/erlydtl Django Template Language for Erlang. erwa https://github.com/bwegh/erwa https://github.com/bwegh/erwa A WAMP router and client written in Erlang. @@ -53,11 +58,14 @@ gun https://github.com/ninenines/gun http//ninenines.eu Asynchronous SPDY, HTTP hackney https://github.com/benoitc/hackney https://github.com/benoitc/hackney simple HTTP client in Erlang hanoidb https://github.com/krestenkrab/hanoidb https://github.com/krestenkrab/hanoidb Erlang LSM BTree Storage ibrowse https://github.com/cmullaparthi/ibrowse https://github.com/cmullaparthi/ibrowse Erlang HTTP client +ierlang https://github.com/robbielynch/ierlang https://github.com/robbielynch/ierlang An Erlang language kernel for IPython. itweet https://github.com/inaka/itweet http://inaka.github.com/itweet/ Twitter Stream API on ibrowse jesse https://github.com/klarna/jesse https://github.com/klarna/jesse jesse (JSon Schema Erlang) is an implementation of a json schema validator for Erlang. jiffy https://github.com/davisp/jiffy https://github.com/davisp/jiffy JSON NIFs for Erlang. jiffy_v https://github.com/shizzard/jiffy-v https://github.com/shizzard/jiffy-v JSON validation utility jobs https://github.com/esl/jobs https://github.com/esl/jobs a Job scheduler for load regulation +joxa https://github.com/joxa/joxa https://github.com/joxa/joxa A Modern Lisp for the Erlang VM +json https://github.com/talentdeficit/json https://github.com/talentdeficit/json a high level json library for erlang (17.0+) jsx https://github.com/talentdeficit/jsx https://github.com/talentdeficit/jsx An Erlang application for consuming, producing and manipulating JSON. katja https://github.com/nifoc/katja https://github.com/nifoc/katja A simple Riemann client written in Erlang. kjell https://github.com/karlll/kjell https://github.com/karlll/kjell Erlang Shell @@ -90,6 +98,7 @@ openpoker https://github.com/hpyhacking/openpoker https://github.com/hpyhacking/ pegjs https://github.com/dmitriid/pegjs https://github.com/dmitriid/pegjs An implementation of PEG.js grammar for Erlang. pobox https://github.com/ferd/pobox https://github.com/ferd/pobox External buffer processes to protect against mailbox overflow in Erlang poolboy https://github.com/devinus/poolboy https://github.com/devinus/poolboy A hunky Erlang worker pool factory +procket https://github.com/msantos/procket http://blog.listincomprehension.com/search/label/procket Erlang interface to low level socket operations proper https://github.com/manopapad/proper http://proper.softlab.ntua.gr PropEr: a QuickCheck-inspired property-based testing tool for Erlang. protobuffs https://github.com/basho/erlang_protobuffs https://github.com/basho/erlang_protobuffs An implementation of Google's Protocol Buffers for Erlang, based on ngerakines/erlang_protobuffs. ptrackerl https://github.com/inaka/ptrackerl https://github.com/inaka/ptrackerl Pivotal Tracker API Client written in Erlang @@ -97,12 +106,14 @@ push_service https://github.com/hairyhum/push_service https://github.com/hairyhu qdate https://github.com/choptastic/qdate https://github.com/choptastic/qdate Date, time, and timezone parsing, formatting, and conversion for Erlang. rack https://github.com/erlyvideo/rack https://github.com/erlyvideo/rack Rack handler for erlang ranch https://github.com/ninenines/ranch http://ninenines.eu Socket acceptor pool for TCP protocols. +rec2json https://github.com/lordnull/rec2json https://github.com/lordnull/rec2json Compile erlang record definitions into modules to convert them to/from json easily. recon https://github.com/ferd/recon https://github.com/ferd/recon Collection of functions and scripts to debug Erlang in production. record_info https://github.com/bipthelin/erlang-record_info https://github.com/bipthelin/erlang-record_info Convert between record and proplist relx https://github.com/erlware/relx https://github.com/erlware/relx Sane, simple release creation for Erlang resource_discovery https://github.com/erlware/resource_discovery http://erlware.org/ An application used to dynamically discover resources present in an Erlang node cluster. riak_dt https://github.com/basho/riak_dt https://github.com/basho/riak_dt Convergent replicated datatypes in Erlang rlimit https://github.com/jlouis/rlimit https://github.com/jlouis/rlimit Magnus Klaar's rate limiter code from etorrent +safetyvalve https://github.com/jlouis/safetyvalve https://github.com/jlouis/safetyvalve A safety valve for your erlang node sfmt https://github.com/jj1bdx/sfmt-erlang https://github.com/jj1bdx/sfmt-erlang SFMT pseudo random number generator for Erlang. sheriff https://github.com/extend/sheriff http://ninenines.eu Parse transform for type based validation. shotgun https://github.com/inaka/shotgun https://github.com/inaka/shotgun better than just a gun diff --git a/packages.v1.txt b/packages.v1.txt index 20bf3c1..092134c 100644 --- a/packages.v1.txt +++ b/packages.v1.txt @@ -1,6 +1,7 @@ apns https://github.com/inaka/apns4erl http://inaka.github.com/apns4erl Apple Push Notification Server for Erlang azdht https://github.com/arcusfelis/azdht https://github.com/arcusfelis/azdht Azureus Distributed Hash Table (DHT) in Erlang binpp https://github.com/jtendo/binpp https://github.com/jtendo/binpp Erlang Binary Pretty Printer +bitcask https://github.com/basho/bitcask https://github.com/basho/bitcask because you need another a key/value storage engine bullet https://github.com/extend/bullet http://ninenines.eu Simple, reliable, efficient streaming for Cowboy. cake https://github.com/darach/cake-erl https://github.com/darach/cake-erl Really simple terminal colorization classifier https://github.com/inaka/classifier https://github.com/inaka/classifier An Erlang Bayesian Filter and Text Classifier @@ -12,10 +13,12 @@ debbie https://github.com/crownedgrouse/debbie https://github.com/crownedgrouse/ dispcount https://github.com/ferd/dispcount https://github.com/ferd/dispcount Erlang task dispatcher based on ETS counters. e2 https://github.com/gar1t/e2 http://e2project.org Library to simply writing correct OTP applications. edgar https://github.com/crownedgrouse/edgar https://github.com/crownedgrouse/edgar Erlang Does GNU AR +edis https://github.com/inaka/edis http://inaka.github.com/edis/ An Erlang implementation of Redis KV Store eep https://github.com/virtan/eep https://github.com/virtan/eep Erlang Easy Profiling (eep) application provides a way to analyze application performance and call hierarchy efene https://github.com/efene/efene https://github.com/efene/efene Alternative syntax for the Erlang Programming Language focusing on simplicity, ease of use and programmer UX eganglia https://github.com/inaka/eganglia https://github.com/inaka/eganglia Erlang library to interact with Ganglia ehsa https://bitbucket.org/a12n/ehsa https://bitbucket.org/a12n/ehsa Erlang HTTP server basic and digest authentication modules +eleveldb https://github.com/basho/eleveldb https://github.com/basho/eleveldb Erlang LevelDB API elli https://github.com/knutin/elli https://github.com/knutin/elli Simple, robust and performant Erlang web server elvis https://github.com/inaka/elvis https://github.com/inaka/elvis Erlang Style Reviewer emysql https://github.com/Eonblast/Emysql https://github.com/Eonblast/Emysql Stable, pure Erlang MySQL driver. @@ -25,12 +28,14 @@ epgsql https://github.com/epgsql/epgsql https://github.com/epgsql/epgsql Erlang epocxy https://github.com/duomark/epocxy https://github.com/duomark/epocxy Erlang Patterns of Concurrency eredis https://github.com/wooga/eredis https://github.com/wooga/eredis Erlang Redis client erlang_js https://github.com/basho/erlang_js https://github.com/basho/erlang_js A linked-in driver for Erlang to Mozilla's Spidermonkey Javascript runtime. +erlasticsearch https://github.com/dieswaytoofast/erlasticsearch https://github.com/dieswaytoofast/erlasticsearch Erlang thrift interface to elastic_search erlcloud https://github.com/gleber/erlcloud https://github.com/gleber/erlcloud Cloud Computing library for erlang (Amazon EC2, S3, SQS, SimpleDB, Mechanical Turk, ELB) erlcron https://github.com/erlware/erlcron https://github.com/erlware/erlcron Erlang cronish system erldb https://github.com/erldb/erldb http://erldb.org ORM (Object-relational mapping) application implemented in Erlang erlog https://github.com/rvirding/erlog https://github.com/rvirding/erlog Prolog interpreter in and for Erlang erlport https://github.com/hdima/erlport https://github.com/hdima/erlport ErlPort - connect Erlang to other languages erlsom https://github.com/willemdj/erlsom https://github.com/willemdj/erlsom XML parser for Erlang +erlubi https://github.com/krestenkrab/erlubi https://github.com/krestenkrab/erlubi Ubigraph Erlang Client (and Process Visualizer) erlware_commons https://github.com/erlware/erlware_commons https://github.com/erlware/erlware_commons Erlware Commons is an Erlware project focused on all aspects of reusable Erlang components. erlydtl https://github.com/erlydtl/erlydtl https://github.com/erlydtl/erlydtl Django Template Language for Erlang. erwa https://github.com/bwegh/erwa https://github.com/bwegh/erwa A WAMP router and client written in Erlang. @@ -53,11 +58,14 @@ gun https://github.com/ninenines/gun http//ninenines.eu Asynchronous SPDY, HTTP hackney https://github.com/benoitc/hackney https://github.com/benoitc/hackney simple HTTP client in Erlang hanoidb https://github.com/krestenkrab/hanoidb https://github.com/krestenkrab/hanoidb Erlang LSM BTree Storage ibrowse https://github.com/cmullaparthi/ibrowse https://github.com/cmullaparthi/ibrowse Erlang HTTP client +ierlang https://github.com/robbielynch/ierlang https://github.com/robbielynch/ierlang An Erlang language kernel for IPython. itweet https://github.com/inaka/itweet http://inaka.github.com/itweet/ Twitter Stream API on ibrowse jesse https://github.com/klarna/jesse https://github.com/klarna/jesse jesse (JSon Schema Erlang) is an implementation of a json schema validator for Erlang. jiffy https://github.com/davisp/jiffy https://github.com/davisp/jiffy JSON NIFs for Erlang. jiffy_v https://github.com/shizzard/jiffy-v https://github.com/shizzard/jiffy-v JSON validation utility jobs https://github.com/esl/jobs https://github.com/esl/jobs a Job scheduler for load regulation +joxa https://github.com/joxa/joxa https://github.com/joxa/joxa A Modern Lisp for the Erlang VM +json https://github.com/talentdeficit/json https://github.com/talentdeficit/json a high level json library for erlang (17.0+) jsx https://github.com/talentdeficit/jsx https://github.com/talentdeficit/jsx An Erlang application for consuming, producing and manipulating JSON. katja https://github.com/nifoc/katja https://github.com/nifoc/katja A simple Riemann client written in Erlang. kjell https://github.com/karlll/kjell https://github.com/karlll/kjell Erlang Shell @@ -90,6 +98,7 @@ openpoker https://github.com/hpyhacking/openpoker https://github.com/hpyhacking/ pegjs https://github.com/dmitriid/pegjs https://github.com/dmitriid/pegjs An implementation of PEG.js grammar for Erlang. pobox https://github.com/ferd/pobox https://github.com/ferd/pobox External buffer processes to protect against mailbox overflow in Erlang poolboy https://github.com/devinus/poolboy https://github.com/devinus/poolboy A hunky Erlang worker pool factory +procket https://github.com/msantos/procket http://blog.listincomprehension.com/search/label/procket Erlang interface to low level socket operations proper https://github.com/manopapad/proper http://proper.softlab.ntua.gr PropEr: a QuickCheck-inspired property-based testing tool for Erlang. protobuffs https://github.com/basho/erlang_protobuffs https://github.com/basho/erlang_protobuffs An implementation of Google's Protocol Buffers for Erlang, based on ngerakines/erlang_protobuffs. ptrackerl https://github.com/inaka/ptrackerl https://github.com/inaka/ptrackerl Pivotal Tracker API Client written in Erlang @@ -97,12 +106,14 @@ push_service https://github.com/hairyhum/push_service https://github.com/hairyhu qdate https://github.com/choptastic/qdate https://github.com/choptastic/qdate Date, time, and timezone parsing, formatting, and conversion for Erlang. rack https://github.com/erlyvideo/rack https://github.com/erlyvideo/rack Rack handler for erlang ranch https://github.com/ninenines/ranch http://ninenines.eu Socket acceptor pool for TCP protocols. +rec2json https://github.com/lordnull/rec2json https://github.com/lordnull/rec2json Compile erlang record definitions into modules to convert them to/from json easily. recon https://github.com/ferd/recon https://github.com/ferd/recon Collection of functions and scripts to debug Erlang in production. record_info https://github.com/bipthelin/erlang-record_info https://github.com/bipthelin/erlang-record_info Convert between record and proplist relx https://github.com/erlware/relx https://github.com/erlware/relx Sane, simple release creation for Erlang resource_discovery https://github.com/erlware/resource_discovery http://erlware.org/ An application used to dynamically discover resources present in an Erlang node cluster. riak_dt https://github.com/basho/riak_dt https://github.com/basho/riak_dt Convergent replicated datatypes in Erlang rlimit https://github.com/jlouis/rlimit https://github.com/jlouis/rlimit Magnus Klaar's rate limiter code from etorrent +safetyvalve https://github.com/jlouis/safetyvalve https://github.com/jlouis/safetyvalve A safety valve for your erlang node sfmt https://github.com/jj1bdx/sfmt-erlang https://github.com/jj1bdx/sfmt-erlang SFMT pseudo random number generator for Erlang. sheriff https://github.com/extend/sheriff http://ninenines.eu Parse transform for type based validation. shotgun https://github.com/inaka/shotgun https://github.com/inaka/shotgun better than just a gun diff --git a/packages.v2.tsv b/packages.v2.tsv index 8a8f74f..359a476 100644 --- a/packages.v2.tsv +++ b/packages.v2.tsv @@ -1,6 +1,7 @@ apns git https://github.com/inaka/apns4erl 1.0.4 http://inaka.github.com/apns4erl Apple Push Notification Server for Erlang azdht git https://github.com/arcusfelis/azdht master https://github.com/arcusfelis/azdht Azureus Distributed Hash Table (DHT) in Erlang binpp git https://github.com/jtendo/binpp master https://github.com/jtendo/binpp Erlang Binary Pretty Printer +bitcask git https://github.com/basho/bitcask master https://github.com/basho/bitcask because you need another a key/value storage engine bullet git https://github.com/extend/bullet master http://ninenines.eu Simple, reliable, efficient streaming for Cowboy. cake git https://github.com/darach/cake-erl v0.1.2 https://github.com/darach/cake-erl Really simple terminal colorization classifier git https://github.com/inaka/classifier master https://github.com/inaka/classifier An Erlang Bayesian Filter and Text Classifier @@ -12,10 +13,12 @@ debbie git https://github.com/crownedgrouse/debbie master https://github.com/cro dispcount git https://github.com/ferd/dispcount master https://github.com/ferd/dispcount Erlang task dispatcher based on ETS counters. e2 git https://github.com/gar1t/e2 master http://e2project.org Library to simply writing correct OTP applications. edgar git https://github.com/crownedgrouse/edgar master https://github.com/crownedgrouse/edgar Erlang Does GNU AR +edis git https://github.com/inaka/edis master http://inaka.github.com/edis/ An Erlang implementation of Redis KV Store eep git https://github.com/virtan/eep master https://github.com/virtan/eep Erlang Easy Profiling (eep) application provides a way to analyze application performance and call hierarchy efene git https://github.com/efene/efene master https://github.com/efene/efene Alternative syntax for the Erlang Programming Language focusing on simplicity, ease of use and programmer UX eganglia git https://github.com/inaka/eganglia v0.9.1 https://github.com/inaka/eganglia Erlang library to interact with Ganglia ehsa hg https://bitbucket.org/a12n/ehsa 2.0.4 https://bitbucket.org/a12n/ehsa Erlang HTTP server basic and digest authentication modules +eleveldb git https://github.com/basho/eleveldb master https://github.com/basho/eleveldb Erlang LevelDB API elli git https://github.com/knutin/elli master https://github.com/knutin/elli Simple, robust and performant Erlang web server elvis git https://github.com/inaka/elvis 0.2.4 https://github.com/inaka/elvis Erlang Style Reviewer emysql git https://github.com/Eonblast/Emysql master https://github.com/Eonblast/Emysql Stable, pure Erlang MySQL driver. @@ -25,12 +28,14 @@ epgsql git https://github.com/epgsql/epgsql master https://github.com/epgsql/epg epocxy git https://github.com/duomark/epocxy master https://github.com/duomark/epocxy Erlang Patterns of Concurrency eredis git https://github.com/wooga/eredis master https://github.com/wooga/eredis Erlang Redis client erlang_js git https://github.com/basho/erlang_js master https://github.com/basho/erlang_js A linked-in driver for Erlang to Mozilla's Spidermonkey Javascript runtime. +erlasticsearch git https://github.com/dieswaytoofast/erlasticsearch master https://github.com/dieswaytoofast/erlasticsearch Erlang thrift interface to elastic_search erlcloud git https://github.com/gleber/erlcloud master https://github.com/gleber/erlcloud Cloud Computing library for erlang (Amazon EC2, S3, SQS, SimpleDB, Mechanical Turk, ELB) erlcron git https://github.com/erlware/erlcron master https://github.com/erlware/erlcron Erlang cronish system erldb git https://github.com/erldb/erldb master http://erldb.org ORM (Object-relational mapping) application implemented in Erlang erlog git https://github.com/rvirding/erlog master https://github.com/rvirding/erlog Prolog interpreter in and for Erlang erlport git https://github.com/hdima/erlport master https://github.com/hdima/erlport ErlPort - connect Erlang to other languages erlsom git https://github.com/willemdj/erlsom master https://github.com/willemdj/erlsom XML parser for Erlang +erlubi git https://github.com/krestenkrab/erlubi master https://github.com/krestenkrab/erlubi Ubigraph Erlang Client (and Process Visualizer) erlware_commons git https://github.com/erlware/erlware_commons master https://github.com/erlware/erlware_commons Erlware Commons is an Erlware project focused on all aspects of reusable Erlang components. erlydtl git https://github.com/erlydtl/erlydtl master https://github.com/erlydtl/erlydtl Django Template Language for Erlang. erwa git https://github.com/bwegh/erwa 0.1.1 https://github.com/bwegh/erwa A WAMP router and client written in Erlang. @@ -53,11 +58,14 @@ gun git https://github.com/ninenines/gun master http//ninenines.eu Asynchronous hackney git https://github.com/benoitc/hackney master https://github.com/benoitc/hackney simple HTTP client in Erlang hanoidb git https://github.com/krestenkrab/hanoidb master https://github.com/krestenkrab/hanoidb Erlang LSM BTree Storage ibrowse git https://github.com/cmullaparthi/ibrowse v4.1.1 https://github.com/cmullaparthi/ibrowse Erlang HTTP client +ierlang git https://github.com/robbielynch/ierlang master https://github.com/robbielynch/ierlang An Erlang language kernel for IPython. itweet git https://github.com/inaka/itweet v2.0 http://inaka.github.com/itweet/ Twitter Stream API on ibrowse jesse git https://github.com/klarna/jesse master https://github.com/klarna/jesse jesse (JSon Schema Erlang) is an implementation of a json schema validator for Erlang. jiffy git https://github.com/davisp/jiffy master https://github.com/davisp/jiffy JSON NIFs for Erlang. jiffy_v git https://github.com/shizzard/jiffy-v 0.3.3 https://github.com/shizzard/jiffy-v JSON validation utility jobs git https://github.com/esl/jobs 0.3 https://github.com/esl/jobs a Job scheduler for load regulation +joxa git https://github.com/joxa/joxa master https://github.com/joxa/joxa A Modern Lisp for the Erlang VM +json git https://github.com/talentdeficit/json master https://github.com/talentdeficit/json a high level json library for erlang (17.0+) jsx git https://github.com/talentdeficit/jsx master https://github.com/talentdeficit/jsx An Erlang application for consuming, producing and manipulating JSON. katja git https://github.com/nifoc/katja master https://github.com/nifoc/katja A simple Riemann client written in Erlang. kjell git https://github.com/karlll/kjell master https://github.com/karlll/kjell Erlang Shell @@ -90,6 +98,7 @@ openpoker git https://github.com/hpyhacking/openpoker master https://github.com/ pegjs git https://github.com/dmitriid/pegjs 0.3 https://github.com/dmitriid/pegjs An implementation of PEG.js grammar for Erlang. pobox git https://github.com/ferd/pobox master https://github.com/ferd/pobox External buffer processes to protect against mailbox overflow in Erlang poolboy git https://github.com/devinus/poolboy master https://github.com/devinus/poolboy A hunky Erlang worker pool factory +procket git https://github.com/msantos/procket master http://blog.listincomprehension.com/search/label/procket Erlang interface to low level socket operations proper git https://github.com/manopapad/proper master http://proper.softlab.ntua.gr PropEr: a QuickCheck-inspired property-based testing tool for Erlang. protobuffs git https://github.com/basho/erlang_protobuffs master https://github.com/basho/erlang_protobuffs An implementation of Google's Protocol Buffers for Erlang, based on ngerakines/erlang_protobuffs. ptrackerl git https://github.com/inaka/ptrackerl master https://github.com/inaka/ptrackerl Pivotal Tracker API Client written in Erlang @@ -97,12 +106,14 @@ push_service git https://github.com/hairyhum/push_service master https://github. qdate git https://github.com/choptastic/qdate 0.4.0 https://github.com/choptastic/qdate Date, time, and timezone parsing, formatting, and conversion for Erlang. rack git https://github.com/erlyvideo/rack master https://github.com/erlyvideo/rack Rack handler for erlang ranch git https://github.com/ninenines/ranch 1.1.0 http://ninenines.eu Socket acceptor pool for TCP protocols. +rec2json git https://github.com/lordnull/rec2json master https://github.com/lordnull/rec2json Compile erlang record definitions into modules to convert them to/from json easily. recon git https://github.com/ferd/recon 2.2.1 https://github.com/ferd/recon Collection of functions and scripts to debug Erlang in production. record_info git https://github.com/bipthelin/erlang-record_info master https://github.com/bipthelin/erlang-record_info Convert between record and proplist relx git https://github.com/erlware/relx master https://github.com/erlware/relx Sane, simple release creation for Erlang resource_discovery git https://github.com/erlware/resource_discovery master http://erlware.org/ An application used to dynamically discover resources present in an Erlang node cluster. riak_dt git https://github.com/basho/riak_dt master https://github.com/basho/riak_dt Convergent replicated datatypes in Erlang rlimit git https://github.com/jlouis/rlimit master https://github.com/jlouis/rlimit Magnus Klaar's rate limiter code from etorrent +safetyvalve git https://github.com/jlouis/safetyvalve master https://github.com/jlouis/safetyvalve A safety valve for your erlang node sfmt git https://github.com/jj1bdx/sfmt-erlang master https://github.com/jj1bdx/sfmt-erlang SFMT pseudo random number generator for Erlang. sheriff git https://github.com/extend/sheriff master http://ninenines.eu Parse transform for type based validation. shotgun git https://github.com/inaka/shotgun 0.1.0 https://github.com/inaka/shotgun better than just a gun diff --git a/plugins/c_src.mk b/plugins/c_src.mk index 3ce8e42..bdec23b 100644 --- a/plugins/c_src.mk +++ b/plugins/c_src.mk @@ -63,7 +63,10 @@ clean:: $(MAKE) -C $(C_SRC_DIR) clean else + +ifeq ($(SOURCES),) SOURCES := $(shell find $(C_SRC_DIR) -type f \( -name "*.c" -o -name "*.C" -o -name "*.cc" -o -name "*.cpp" \)) +endif OBJECTS = $(addsuffix .o, $(basename $(SOURCES))) COMPILE_C = $(c_verbose) $(CC) $(CFLAGS) $(CPPFLAGS) -c diff --git a/test/Makefile b/test/Makefile index 9b7d4a1..bed5b4b 100644 --- a/test/Makefile +++ b/test/Makefile @@ -217,6 +217,7 @@ pkg-$(1)-clean: pkg-$(1)-app1: $(call app1_setup) +# Running 'make' twice to make sure it recompiles fine. pkg-$(1): pkg-$(1)-clean pkg-$(1)-app1 $i $i " pkgs: Checking that '$(1)' builds correctly" @@ -228,6 +229,7 @@ pkg-$(1): pkg-$(1)-clean pkg-$(1)-app1 > app1/Makefile cp ../packages.v2.tsv app1/.erlang.mk.packages.v2 $t make -C app1 + $t make -C app1 endef $(foreach pkg,$(shell awk '{print $$1}' ../packages.v2.tsv),$(eval $(call pkg_test_target,$(pkg)))) |