forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3fe668495e |
+1
-1
@@ -32,7 +32,7 @@ def _depcommon(s: str):
|
||||
if ")" in s:
|
||||
return s.replace(")", f", +python{PY3_VERSION})")
|
||||
else:
|
||||
return s.replace(".py", f".py (+python{PY3_VERSION})")
|
||||
return s.replace(".py", f" (+python{PY3_VERSION})")
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import python
|
||||
|
||||
|
||||
python.version("1.4.1")
|
||||
description("A super-fast templating language that borrows the best ideas from the existing templating languages.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://files.pythonhosted.org/packages/2a/12/b5fa2353e2754cd67fb9f83793fa48ff42c213a5da7e719869d2301f6ab8/mako-1.4.1.tar.gz")
|
||||
|
||||
python.builddep("$shortcut")
|
||||
python.builddep("MarkupSafe.py")
|
||||
|
||||
|
||||
def build():
|
||||
python.build()
|
||||
python.install()
|
||||
os.chdir("lib")
|
||||
while len(os.listdir(".")) == 1:
|
||||
os.chdir(os.listdir(".")[0])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("Mako.py")
|
||||
python.dep("python")
|
||||
python.dep("MarkupSafe.py")
|
||||
python.use_auto_pack()
|
||||
@@ -0,0 +1,56 @@
|
||||
from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.6.58")
|
||||
description("the official PNG reference library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/pnggroup/libpng/archive/refs/tags/v1.6.58.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep(f"libz-ng-dev @{arch.get_target()}")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
f"--libdir={get_prefix('libpng')}/lib",
|
||||
f"--includedir={get_prefix('libpng')}/include",
|
||||
"--enable-hardware-optimizations=on",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_tools(composer):
|
||||
composer.makedir("bin")
|
||||
composer.addfile("bin/png-fix-itxt", "bin/png-fix-itxt")
|
||||
composer.addfile("bin/pngfix", "bin/pngfix")
|
||||
|
||||
def pack_dev(composer):
|
||||
composer.makedir("lib")
|
||||
composer.addfile("lib/libpng.a", "lib/libpng.a")
|
||||
composer.addfile("lib/libpng.la", "lib/libpng.la")
|
||||
composer.addfile("lib/libpng16.a", "lib/libpng16.a")
|
||||
composer.addfile("lib/libpng16.la", "lib/libpng16.la")
|
||||
composer.add_dir("lib/pkgconfig", "lib/pkgconfig")
|
||||
composer.makedir("bin")
|
||||
composer.addfile("bin/libpng-config", "bin/libpng-config")
|
||||
composer.addfile("bin/libpng16-config", "bin/libpng16-config")
|
||||
composer.add_dir("include", "include")
|
||||
|
||||
|
||||
package("libpng")
|
||||
dep("libz @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libpng-tools")
|
||||
dep("libpng (same)")
|
||||
on_pack(pack_tools)
|
||||
|
||||
package("libpng-dev")
|
||||
dep("libpng (same)")
|
||||
dep("libz-dev @same-arch")
|
||||
on_pack(pack_dev)
|
||||
Reference in New Issue
Block a user