{"id":20704337,"url":"https://github.com/osch/luarocks-build-extended","last_synced_at":"2026-06-08T14:32:23.938Z","repository":{"id":66985045,"uuid":"227677014","full_name":"osch/luarocks-build-extended","owner":"osch","description":"A fork of Luarock's built-in build system. (see: https://github.com/osch/luarocks-build-extended#luarocks-build-extended)","archived":false,"fork":false,"pushed_at":"2020-01-07T19:24:49.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T04:45:27.268Z","etag":null,"topics":["lua","luarocks"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-12T19:03:30.000Z","updated_at":"2022-12-21T08:58:05.000Z","dependencies_parsed_at":"2023-05-16T14:15:38.624Z","dependency_job_id":null,"html_url":"https://github.com/osch/luarocks-build-extended","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/osch/luarocks-build-extended","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osch%2Fluarocks-build-extended","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osch%2Fluarocks-build-extended/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osch%2Fluarocks-build-extended/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osch%2Fluarocks-build-extended/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osch","download_url":"https://codeload.github.com/osch/luarocks-build-extended/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osch%2Fluarocks-build-extended/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34067348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","luarocks"],"created_at":"2024-11-17T01:11:58.583Z","updated_at":"2026-06-08T14:32:23.918Z","avatar_url":"https://github.com/osch.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# luarocks-build-extended\n\n[![Licence](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE)\n[![Build Status](https://travis-ci.com/osch/luarocks-build-extended.png?branch=master)](https://travis-ci.com/osch/luarocks-build-extended)\n[![Build status](https://ci.appveyor.com/api/projects/status/0ooqnhlu5rh0q8cd/branch/master?svg=true)](https://ci.appveyor.com/project/osch/luarocks-build-extended/branch/master)\n[![Install](https://img.shields.io/badge/Install-LuaRocks-brightgreen.svg)](https://luarocks.org/modules/osch/luarocks-build-extended)\n\n\nA fork of Luarocks built-in build system. \n\nSpecify `\"extended\"` as build type and `\"luarocks-build-extended\"` as dependency to use it (see example below). \n\n* Support for compiling C++ sources, similar to [luarocks-build-cpp].\n  C++ files are detected by file extensions (`.cpp`, `.cxx` or `.cc`)\n  For C++ compiling g++ is not used, gcc with stdc++ library is. \n* Support for module specific variables (see also https://github.com/luarocks/luarocks/pull/368 \n  or https://github.com/luarocks/luarocks/issues/367):\n   * CFLAG_EXTRAS list of additional C compiler arguments\n   * CXXFLAG_EXTRAS list of additional C++ compiler arguments\n   * LIBFLAG_EXTRAS list of additional linker arguments\n* New variable BUILD_DATE contains build date in ISO-8601 format.\n* Support for external_dependencies with the ability to disable\n  header search per platform, see also the \n  [example for installing LuaGL OpenGL binding](example/opengl-1.11-2.rockspec).\n\n[luarocks-build-cpp]: https://luarocks.org/modules/osch/luarocks-build-cpp\n\n## Example rockspec\n\n```lua\n\npackage = \"name\"\nversion = \"0.1-1\"\nsource = {\n    url = \"git://github.com/username/name.git\"\n}\ndescription = {\n    summary = \"...\",\n    detailed = \"...\",\n    homepage = \"http://github.com/username/name\",\n    license = \"MIT/X11\"\n}\ndependencies = {\n    \"lua \u003e= 5.1, \u003c 5.3\",\n    \"luarocks-build-extended\"\n}\nbuild = {\n    type = \"extended\",\n    platforms = {\n        macosx = {\n            modules = {\n                name = {\n                    variables = {\n                        LIBFLAG_EXTRAS = { \n                            \"-framework\", \"Cocoa\" \n                        }\n                    }\n                }\n            }\n        }\n    },\n    modules = {\n        name = {\n            sources = {\n                \"name.cpp\",\n                \"aux.cpp\"\n            },\n            defines = { \n              \"MY_BUILD_DATE=$(BUILD_DATE)\"\n            },\n        }\n    }\n}\n\n```\n\nSee also the [real world example](example/opengl-1.11-2.rockspec)\nfor installing Lua OpenGL binding.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosch%2Fluarocks-build-extended","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosch%2Fluarocks-build-extended","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosch%2Fluarocks-build-extended/lists"}