Merge pull request #1200 from Rmys/master

duktape First release
This commit is contained in:
Rmys
2021-04-21 23:14:50 +03:00
committed by GitHub
11 changed files with 396 additions and 27 deletions
+163 -25
View File
@@ -2781,7 +2781,7 @@
<Summary xml:lang="tr">High productivity build system</Summary>
<Description xml:lang="en">Yüksek verimli üretme sistemi</Description>
<Description xml:lang="tr">Yüksek verimli üretme sistemi</Description>
<Archive type="targz" sha1sum="eb87a41d4265aec1223c446c344455b674d4538c" name="meson-0.57.1.tar.gz">https://github.com/mesonbuild/meson/releases/download/0.57.1/meson-0.57.1.tar.gz</Archive>
<Archive type="targz" sha1sum="9daf7c822ac641ff0d20ac3c051914af9ec8cb9d" name="meson-0.57.2.tar.gz">https://github.com/mesonbuild/meson/releases/download/0.57.2/meson-0.57.2.tar.gz</Archive>
<BuildDependencies>
<Dependency>python3-devel</Dependency>
<Dependency>python3-setuptools</Dependency>
@@ -2805,6 +2805,13 @@
</Files>
</Package>
<History>
<Update release="17">
<Date>2021-04-11</Date>
<Version>0.57.2</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="16">
<Date>2021-03-01</Date>
<Version>0.57.1</Version>
@@ -4483,6 +4490,62 @@
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>duktape</Name>
<Homepage>https://duktape.org/</Homepage>
<Packager>
<Name>Pisi Linux Admins</Name>
<Email>admin@pisilinux.org</Email>
</Packager>
<License>MIT</License>
<IsA>library</IsA>
<PartOf>system.devel</PartOf>
<Summary xml:lang="en">Embeddable Javascript engine</Summary>
<Summary xml:lang="tr">Embeddable Javascript engine</Summary>
<Description xml:lang="en">Embeddable Javascript engine</Description>
<Description xml:lang="tr">Embeddable Javascript engine</Description>
<Archive type="tarxz" sha1sum="5936bf5e9943128b53a9e534e0a6842532b52bb5" name="duktape-2.6.0.tar.xz">https://duktape.org/duktape-2.6.0.tar.xz</Archive>
<AdditionalFiles>
<AdditionalFile target="Makefile">Makefile</AdditionalFile>
</AdditionalFiles>
<Patches>
<Patch level="1">duktape-build.patch</Patch>
</Patches>
<SourceURI>system/devel/duktape/pspec.xml</SourceURI>
</Source>
<Package>
<Name>duktape</Name>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
<AdditionalFiles>
<AdditionalFile target="/usr/share/pkgconfig/duktape.pc" permission="0644" owner="root">duktape.pc</AdditionalFile>
</AdditionalFiles>
</Package>
<Package>
<Name>duktape-devel</Name>
<Summary xml:lang="en">Development files for duktape</Summary>
<RuntimeDependencies>
<Dependency release="1">duktape</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2021-04-20</Date>
<Version>2.6.0</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admin@pisilinux.org</Email>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>perl-XML-Parser</Name>
@@ -9707,7 +9770,7 @@
<Summary xml:lang="tr">Python3, gelecek nesil üst seviye betik programlama dili.</Summary>
<Description xml:lang="en">Python is an accessible, high-level, dynamically typed, interpreted programming language, designed with an emphasis on code readability. It includes an extensive standard library, and has a vast ecosystem of third-party libraries.</Description>
<Description xml:lang="tr">Python3 kod okuma rahatlığı ile tasarlanmış, erişilebilir, yüksek seviyeli, dinamik, yorumlamalı programlama dilidir. Python3 kapsamlı standart kütüphanesi ile beraber gelmekte ve üçüncü parti kitaplıkların kolay bütünleştirilmesine olanak tanıyan yapısıylar en hızlı ve dinamik yaorumlamalı dillerden biri olmaktadır.</Description>
<Archive type="tarxz" sha1sum="d7dd8ef51ebe7ddd8ec41e39a607ac26d1834a8f" name="Python-3.8.8.tar.xz">https://www.python.org/ftp/python/3.8.8/Python-3.8.8.tar.xz</Archive>
<Archive type="tarxz" sha1sum="ea40651135adc4126a60a45093d100722610f4de" name="Python-3.8.9.tar.xz">https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tar.xz</Archive>
<BuildDependencies>
<Dependency>bzip2</Dependency>
<Dependency>xz-devel</Dependency>
@@ -9805,7 +9868,7 @@
<Summary xml:lang="tr">Python3 için geliştime dosyaları</Summary>
<Description xml:lang="tr">python3-devel, python3 için geliştime dosyaları içerir.</Description>
<RuntimeDependencies>
<Dependency release="13">python3</Dependency>
<Dependency release="14">python3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header" permanent="0">/usr/include/python3.8/*</Path>
@@ -9813,8 +9876,15 @@
</Files>
</Package>
<History>
<Update release="14">
<Date>2021-04-11</Date>
<Version>3.8.9</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="13">
<Date>2021-03-01</Date>
<Date>2021-04-11</Date>
<Version>3.8.8</Version>
<Comment>Version bump</Comment>
<Name>İdris Kalp</Name>
@@ -21669,7 +21739,7 @@
<Description xml:lang="en">OpenSSL is a cryptography toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) network protocols and related cryptography standards required by them.</Description>
<Description xml:lang="tr">OpenSSL, Güvenlik Soketleri Katmanı (SSL v2/v3) ve Aktarım Katmanı Güvenliği (TLSv1) ağ protokolleri ile bu protokollerin gerektirdiği şifreleme standartlarını uygulayan bir şifreleme aracıdır.</Description>
<Description xml:lang="de">OpenSSL ist ein Kryptographie Werkzeug, das die Netzwerkprotokolle Secure Sockets Layer (SSL v2/v3) und Transport Layer Security (TLS v1) sowie deren erforderliche zugehörige Kryptographie Standards implementiert.</Description>
<Archive type="targz" sha1sum="04c340b086828eecff9df06dceff196790bb9268" name="openssl-1.1.1j.tar.gz">https://www.openssl.org/source/openssl-1.1.1j.tar.gz</Archive>
<Archive type="targz" sha1sum="bad9dc4ae6dcc1855085463099b5dacb0ec6130b" name="openssl-1.1.1k.tar.gz">https://www.openssl.org/source/openssl-1.1.1k.tar.gz</Archive>
<BuildDependencies>
<Dependency>zlib-devel</Dependency>
<Dependency>xorg-util</Dependency>
@@ -21707,7 +21777,7 @@
<Summary xml:lang="tr">openssl için geliştirme dosyaları</Summary>
<PartOf>system.devel</PartOf>
<RuntimeDependencies>
<Dependency release="10">openssl</Dependency>
<Dependency release="11">openssl</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
@@ -21726,7 +21796,7 @@
<Dependency>zlib-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="10">openssl</Dependency>
<Dependency release="11">openssl</Dependency>
<Dependency>zlib-32bit</Dependency>
</RuntimeDependencies>
<Files>
@@ -21734,6 +21804,13 @@
</Files>
</Package>
<History>
<Update release="11">
<Date>2021-04-10</Date>
<Version>1.1.1k</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="10">
<Date>2021-03-01</Date>
<Version>1.1.1j</Version>
@@ -22284,7 +22361,7 @@
<Dependency>libffi-devel</Dependency>
<Dependency>sqlite-devel</Dependency>
<Dependency>ncurses-devel</Dependency>
<Dependency>openssl-devel</Dependency>
<Dependency versionFrom="1.1.1k">openssl-devel</Dependency>
<Dependency>readline-devel</Dependency>
<Dependency versionFrom="2.32">glibc-devel</Dependency>
</BuildDependencies>
@@ -22324,7 +22401,6 @@
<Dependency>ncurses</Dependency>
<Dependency>openssl</Dependency>
<Dependency>readline</Dependency>
<Dependency versionFrom="2.32">glibc</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
@@ -23359,7 +23435,7 @@
<Description xml:lang="tr">Eski ve yeni optimus teknolojisine sahip dizüstü bilgisyarlarda çalışabilmektedir.</Description>
<Archive type="targz" sha1sum="e282ee682d794e3962baa4dead01917c42571e78" name="v0.8.tar.gz">https://github.com/Bumblebee-Project/bbswitch/archive/v0.8.tar.gz</Archive>
<BuildDependencies>
<Dependency version="5.10.23">kernel-module-headers</Dependency>
<Dependency version="5.10.30">kernel-module-headers</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">0001-proc_ops-struct.patch</Patch>
@@ -23370,8 +23446,8 @@
<Package>
<Name>module-bbswitch</Name>
<RuntimeDependencies>
<Dependency version="5.10.23">kernel</Dependency>
<Dependency release="44">bbswitch-common</Dependency>
<Dependency version="5.10.30">kernel</Dependency>
<Dependency release="45">bbswitch-common</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/lib/modules</Path>
@@ -23394,7 +23470,7 @@
<Package>
<Name>bbswitch-dkms</Name>
<RuntimeDependencies>
<Dependency release="44">bbswitch-common</Dependency>
<Dependency release="45">bbswitch-common</Dependency>
<Dependency>dkms</Dependency>
</RuntimeDependencies>
<Files>
@@ -23405,6 +23481,13 @@
</Conflicts>
</Package>
<History>
<Update release="45">
<Date>2021-04-14</Date>
<Version>0.8</Version>
<Comment>Rebuild</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="44">
<Date>2021-03-12</Date>
<Version>0.8</Version>
@@ -23732,7 +23815,7 @@
<Description xml:lang="tr">Bu paket VirtualBox sunucu makinesi ile misafir sistemler arası fare entegrasyonu ve paylaşımlı dizin desteği için gerekli çekirdek modüllerini içerir.</Description>
<Archive type="tarxz" sha1sum="aca02d2a260463400eaa3cbbe20431d1d2f4e78f" name="module-virtualbox-guest-6.1.18.tar.xz">https://sourceforge.net/projects/pisilinux/files/source/module-virtualbox-guest-6.1.18.tar.xz</Archive>
<BuildDependencies>
<Dependency version="5.10.23">kernel-module-headers</Dependency>
<Dependency version="5.10.30">kernel-module-headers</Dependency>
</BuildDependencies>
<SourceURI>kernel/drivers/module-virtualbox-guest/pspec.xml</SourceURI>
</Source>
@@ -23742,7 +23825,7 @@
<Flag>noDelta</Flag>
</BuildFlags>
<RuntimeDependencies>
<Dependency version="5.10.23">kernel</Dependency>
<Dependency version="5.10.30">kernel</Dependency>
<Dependency>baselayout</Dependency>
<Dependency version="6.1.18">module-virtualbox-guest-userspace</Dependency>
</RuntimeDependencies>
@@ -23769,6 +23852,13 @@
</AdditionalFiles>
</Package>
<History>
<Update release="70">
<Date>2021-04-14</Date>
<Version>6.1.18</Version>
<Comment>Rebuild</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="69">
<Date>2021-03-12</Date>
<Version>6.1.18</Version>
@@ -24278,7 +24368,7 @@
<Description xml:lang="tr">Bu paket VirtualBox için çekirdek desteği sunar.</Description>
<Archive type="tarxz" sha1sum="f211fa6c3af9436bd02533e03dd303f552327d81" name="module-virtualbox-6.1.18.tar.xz">https://sourceforge.net/projects/pisilinux/files/source/module-virtualbox-6.1.18.tar.xz</Archive>
<BuildDependencies>
<Dependency version="5.10.23">kernel-module-headers</Dependency>
<Dependency version="5.10.30">kernel-module-headers</Dependency>
</BuildDependencies>
<SourceURI>kernel/drivers/module-virtualbox/pspec.xml</SourceURI>
</Source>
@@ -24288,7 +24378,7 @@
<Flag>noDelta</Flag>
</BuildFlags>
<RuntimeDependencies>
<Dependency version="5.10.23">kernel</Dependency>
<Dependency version="5.10.30">kernel</Dependency>
<Dependency version="6.1.18">module-virtualbox-userspace</Dependency>
</RuntimeDependencies>
<Files>
@@ -24310,6 +24400,13 @@
</AdditionalFiles>
</Package>
<History>
<Update release="70">
<Date>2021-04-14</Date>
<Version>6.1.18</Version>
<Comment>Rebuild</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="69">
<Date>2021-03-12</Date>
<Version>6.1.18</Version>
@@ -24820,7 +24917,7 @@
<Archive type="targz" sha1sum="8acbdbb4ab4ab4123d1773b616904798fbef9277" target="i686" name="hybrid-v35-nodebug-pcoem-6_30_223_271.tar.gz">https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35-nodebug-pcoem-6_30_223_271.tar.gz</Archive>
<Archive type="targz" sha1sum="1f568bb989d175813c5631c6629d9479eae6f3be" target="x86_64" name="hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz">https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz</Archive>
<BuildDependencies>
<Dependency version="5.10.23">kernel-module-headers</Dependency>
<Dependency version="5.10.30">kernel-module-headers</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">broadcom-wl-6.30.223.271-debian-fix-kernel-warnings.patch</Patch>
@@ -24849,8 +24946,8 @@
<Flag>noDelta</Flag>
</BuildFlags>
<RuntimeDependencies>
<Dependency version="5.10.23">kernel</Dependency>
<Dependency release="43">module-broadcom-wl-userspace</Dependency>
<Dependency version="5.10.30">kernel</Dependency>
<Dependency release="44">module-broadcom-wl-userspace</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library" permanent="true">/lib/modules</Path>
@@ -24874,6 +24971,13 @@
</AdditionalFiles>
</Package>
<History>
<Update release="44">
<Date>2021-04-14</Date>
<Version>6.30.223.271</Version>
<Comment>Rebuild</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="43">
<Date>2021-03-12</Date>
<Version>6.30.223.271</Version>
@@ -25212,7 +25316,7 @@
<Dependency>elfutils-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch compressionType="xz" level="1">patches/linux/patch-5.10.23.xz</Patch>
<Patch compressionType="xz" level="1">patches/linux/patch-5.10.30.xz</Patch>
<Patch level="1">patches/mageia/fs-aufs5.10.patch</Patch>
<Patch level="1">patches/mageia/fs-aufs5.10-symbol-exports.patch</Patch>
<Patch level="1">patches/mageia/fs-aufs5.10-tristate.patch</Patch>
@@ -25276,7 +25380,7 @@
<Description xml:lang="en">kernel-module-headers includes the C header files and the necessary Kbuild files for being able to build external kernel modules.</Description>
<Description xml:lang="tr">kernel-module-headers, harici çekirdek modüllerinin derlenebilmesi için gereken başlık dosyaları ve Kbuild sistemini içeren pakettir.</Description>
<RuntimeDependencies>
<Dependency release="51">kernel</Dependency>
<Dependency release="52">kernel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/src/linux-headers*</Path>
@@ -25307,6 +25411,17 @@
</Files>
</Package>
<History>
<Update release="52">
<Type package="kernel">security</Type>
<Date>2021-04-14</Date>
<Version>5.10.30</Version>
<Comment>Version bump</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
<Requires>
<Action package="kernel">systemRestart</Action>
</Requires>
</Update>
<Update release="51">
<Type package="kernel">security</Type>
<Date>2021-03-12</Date>
@@ -25983,7 +26098,7 @@
<Dependency>pciutils-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch compressionType="xz" level="1">patches/linux/patch-5.10.23.xz</Patch>
<Patch compressionType="xz" level="1">patches/linux/patch-5.10.30.xz</Patch>
<Patch level="1">patches/mageia/fs-aufs5.10.patch</Patch>
<Patch level="1">patches/mageia/fs-aufs5.10-symbol-exports.patch</Patch>
<Patch level="1">patches/mageia/fs-aufs5.10-tristate.patch</Patch>
@@ -26039,6 +26154,13 @@
</AdditionalFiles>
</Package>
<History>
<Update release="50">
<Date>2021-04-14</Date>
<Version>5.10.30</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="49">
<Date>2021-03-12</Date>
<Version>5.10.23</Version>
@@ -26630,9 +26752,10 @@
<Summary xml:lang="tr">Python kurulum araçları</Summary>
<Description xml:lang="en">python3-setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages.</Description>
<Description xml:lang="tr">python3-setuptools, Python distutils&apos;e yapılan, özellikle başka paketlere bağımlılığı olan Python paketlerini daha kolay oluşturmaya ve dağıtmaya yarayan iyileştirmeler koleksiyonudur.</Description>
<Archive type="targz" sha1sum="749e7a1d08e7afd0d3899eb56c2428e91a3bcf47" name="v50.3.2.tar.gz">https://github.com/pypa/setuptools/archive/v50.3.2.tar.gz</Archive>
<Archive type="targz" sha1sum="2855c2fa54b8b8c3309b6b004f7c6bd051a69c2b" name="v56.0.0.tar.gz">https://github.com/pypa/setuptools/archive/v56.0.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>python3-devel</Dependency>
<Dependency>python3-setuptools</Dependency>
</BuildDependencies>
<SourceURI>programming/language/python3/python3-setuptools/pspec.xml</SourceURI>
</Source>
@@ -26649,6 +26772,20 @@
</Files>
</Package>
<History>
<Update release="20">
<Date>2021-04-12</Date>
<Version>56.0.0</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="19">
<Date>2021-04-03</Date>
<Version>54.2.0</Version>
<Comment>Major version bump.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="18">
<Date>2020-10-22</Date>
<Version>50.3.2</Version>
@@ -28172,6 +28309,7 @@
<Dependency>docbook-xsl</Dependency>
<Dependency>docbook-xml</Dependency>
<Dependency>util-linux</Dependency>
<Dependency>libxslt</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
@@ -28182,7 +28320,7 @@
</Package>
<History>
<Update release="8">
<Date>2020-12-09</Date>
<Date>2021-04-19</Date>
<Version>0.0.28</Version>
<Comment>Rebuild</Comment>
<Name>Mustafa Cinasal</Name>
+1 -1
View File
@@ -1 +1 @@
987ef838dc6df1fa2bc0c8a75a94c61ff257c7fa
a212c842e22f2c577e8fc5304edeae7912d6547b
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
accc7055d4333d84eee12d557af4567eb45d409a
17b87d46b5ab85e7bd23f7edaca9dc161028f3a3
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
#def setup():
#shelltools.copy("Makefile.sharedlibrary", "Makefile")
#pisitools.dosed("Makefile", "INSTALL_PREFIX = /usr/local", "INSTALL_PREFIX = /usr")
#pisitools.dosed("Makefile.sharedlibrary", "INSTALL_PREFIX = /usr/local", "INSTALL_PREFIX = /usr")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("AUTHORS*", "LICENSE*", "README*")
+89
View File
@@ -0,0 +1,89 @@
#
# Example of how to build and install locally as a shared library
#
# Usage:
#
# $ make -f Makefile.sharedlibrary
# $ sudo make -f Makefile.sharedlibrary install
# $ make -f Makefile.sharedlibrary duk # --> example 'duk' linked to shared libduktape
#
# $ ls -l duk
# -rwxrwxr-x 1 duktape duktape 19407 Nov 30 15:48 duk
#
# $ ldd ./duk
# linux-vdso.so.1 => (0x00007ffd5ed3c000)
# libduktape.so.104 => /usr/local/lib/libduktape.so.104 (0x00007fb2f9753000)
# libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb2f944d000)
# libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb2f9088000)
# /lib64/ld-linux-x86-64.so.2 (0x00007fb2f9991000)
#
# Based on: http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
# Soname version must be bumped whenever a binary compatibility change occurs
# (and should not be bumped when the library is compatible). A simple Duktape
# convention is to set soname version to (100*MAJOR + MINOR), e.g. 104 for
# Duktape 1.4.x, so that it gets automatically bumped for major and minor
# releases (potentially binary incompatible), but not for patch releases.
DUK_VERSION = 20600
SONAME_VERSION = 206
REAL_VERSION = $(SONAME_VERSION).$(DUK_VERSION)
# Mac has an unusual .so naming convention
ifeq ($(OS),Windows_NT)
DETECTED_OS := Windows
else
DETECTED_OS := $(shell uname -s)
endif
ifeq ($(DETECTED_OS),Darwin)
LD_SONAME_ARG=-install_name
SO_SONAME_SUFFIX=$(SONAME_VERSION).so
SO_REALNAME_SUFFIX=$(REAL_VERSION).so
else
LD_SONAME_ARG=-soname
SO_SONAME_SUFFIX=so.$(SONAME_VERSION)
SO_REALNAME_SUFFIX=so.$(REAL_VERSION)
endif
# Change to actual path for actual distribution packaging.
INSTALL_PREFIX = /usr
# The 'noline' variant may be more appropriate for some distributions; it
# doesn't have #line directives in the combined source.
DUKTAPE_SRCDIR = ./src
#DUKTAPE_SRCDIR = ./src-noline
CC = gcc
LIBS = -lm
.PHONY: all
all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX)
# If the default duk_config.h is not suitable for the distribution, modify it
# before compiling the shared library and copy the same, edited duk_config.h
# to $INSTALL_PREFIX/include on installation.
libduktape.$(SO_REALNAME_SUFFIX):
$(CC) $(CFLAGS) -shared -fPIC -Wall -Wextra -Os $(LDFLAGS) -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \
-o $@ $(DUKTAPE_SRCDIR)/duktape.c $(LIBS)
libduktaped.$(SO_REALNAME_SUFFIX):
$(CC) $(CFLAGS) -shared -fPIC -Wall -Wextra -Os $(LDFLAGS) -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \
-o $@ $(DUKTAPE_SRCDIR)/duktape.c $(LIBS)
# Symlinks depend on platform conventions.
.PHONY: install
install: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX)
mkdir -p $(DESTDIR)$(INSTALL_PREFIX)/lib/
cp $+ $(DESTDIR)$(INSTALL_PREFIX)/lib/
rm -f $(DESTDIR)$(INSTALL_PREFIX)/lib/libduktape.so $(DESTDIR)$(INSTALL_PREFIX)/lib/libduktape.$(SO_SONAME_SUFFIX)
ln -s libduktape.$(SO_REALNAME_SUFFIX) $(DESTDIR)$(INSTALL_PREFIX)/lib/libduktape.so
ln -s libduktape.$(SO_REALNAME_SUFFIX) $(DESTDIR)$(INSTALL_PREFIX)/lib/libduktape.$(SO_SONAME_SUFFIX)
rm -f $(DESTDIR)$(INSTALL_PREFIX)/lib/libduktaped.so $(DESTDIR)$(INSTALL_PREFIX)/lib/libduktaped.$(SO_SONAME_SUFFIX)
ln -s libduktaped.$(SO_REALNAME_SUFFIX) $(DESTDIR)$(INSTALL_PREFIX)/lib/libduktaped.so
ln -s libduktaped.$(SO_REALNAME_SUFFIX) $(DESTDIR)$(INSTALL_PREFIX)/lib/libduktaped.$(SO_SONAME_SUFFIX)
mkdir -p $(DESTDIR)$(INSTALL_PREFIX)/include/
cp $(DUKTAPE_SRCDIR)/duktape.h $(DUKTAPE_SRCDIR)/duk_config.h $(DESTDIR)$(INSTALL_PREFIX)/include/
CCOPTS = -I./examples/cmdline
duk:
$(CC) $(CCOPTS) -I$(DESTDIR)$(INSTALL_PREFIX)/include -L$(DESTDIR)$(INSTALL_PREFIX)/lib -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
@@ -0,0 +1,29 @@
diff --git a/Makefile.sharedlibrary b/Makefile.sharedlibrary
index 2c98de9..452edca 100644
--- a/Makefile.sharedlibrary
+++ b/Makefile.sharedlibrary
@@ -53,6 +53,7 @@ DUKTAPE_SRCDIR = ./src
#DUKTAPE_SRCDIR = ./src-noline
CC = gcc
+LIBS = -lm
.PHONY: all
all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX)
@@ -62,12 +63,12 @@ all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX)
# to $INSTALL_PREFIX/include on installation.
libduktape.$(SO_REALNAME_SUFFIX):
- $(CC) -shared -fPIC -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \
- -o $@ $(DUKTAPE_SRCDIR)/duktape.c
+ $(CC) $(CFLAGS) -shared -fPIC -Wall -Wextra -Os $(LDFLAGS) -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \
+ -o $@ $(DUKTAPE_SRCDIR)/duktape.c $(LIBS)
libduktaped.$(SO_REALNAME_SUFFIX):
- $(CC) -shared -fPIC -g -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \
- -o $@ $(DUKTAPE_SRCDIR)/duktape.c
+ $(CC) $(CFLAGS) -shared -fPIC -Wall -Wextra -Os $(LDFLAGS) -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \
+ -o $@ $(DUKTAPE_SRCDIR)/duktape.c $(LIBS)
# Symlinks depend on platform conventions.
.PHONY: install
+10
View File
@@ -0,0 +1,10 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: duktape
Description: Embeddable Javascript engine
Version: 2.6.0
Libs: -L${libdir} -lduktape
Cflags: -I${includedir}
+10
View File
@@ -0,0 +1,10 @@
prefix=@prefix@
exec_prefix=${prefix}
libdir=${exec_prefix}/@libdir@
includedir=${prefix}/include
Name: duktape
Description: Embeddable Javascript engine
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lduktape
Cflags: -I${includedir}/
+62
View File
@@ -0,0 +1,62 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>duktape</Name>
<Homepage>https://duktape.org/</Homepage>
<Packager>
<Name>Pisi Linux Admins</Name>
<Email>admin@pisilinux.org</Email>
</Packager>
<License>MIT</License>
<IsA>library</IsA>
<Summary>Embeddable Javascript engine</Summary>
<Description>Embeddable Javascript engine</Description>
<Archive sha1sum="5936bf5e9943128b53a9e534e0a6842532b52bb5" type="tarxz">https://duktape.org/duktape-2.6.0.tar.xz</Archive>
<AdditionalFiles>
<AdditionalFile target="Makefile">Makefile</AdditionalFile>
<!-- <AdditionalFile target="duktape.pc.in">duktape.pc.in</AdditionalFile> -->
</AdditionalFiles>
<BuildDependencies>
</BuildDependencies>
<Patches>
<Patch level="1">duktape-build.patch</Patch>
</Patches>
</Source>
<Package>
<Name>duktape</Name>
<RuntimeDependencies>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/share/pkgconfig/duktape.pc">duktape.pc</AdditionalFile>
</AdditionalFiles>
</Package>
<Package>
<Name>duktape-devel</Name>
<Summary>Development files for duktape</Summary>
<RuntimeDependencies>
<Dependency release="current">duktape</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2021-04-20</Date>
<Version>2.6.0</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admin@pisilinux.org</Email>
</Update>
</History>
</PISI>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>duktape</Name>
<Summary xml:lang="tr">Embeddable Javascript engine</Summary>
<Description xml:lang="tr">Embeddable Javascript engine</Description>
</Source>
</PISI>