summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-27 01:30:53 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-27 01:30:53 +0300
commitb823c0636d902c71e71515fcc160443741d92bcc (patch)
treeb16e352f41e3ff917e506297d3c3c23624ad488a /packages
parentbcc8cdc27946b0c4833ab70312d58a76f042c73d (diff)
downloadspm-b823c0636d902c71e71515fcc160443741d92bcc.tar.gz
spm-b823c0636d902c71e71515fcc160443741d92bcc.tar.bz2
spm-b823c0636d902c71e71515fcc160443741d92bcc.tar.xz
spm-b823c0636d902c71e71515fcc160443741d92bcc.zip
Add package varible SRCTYPE. It set src storage type. For now git or hg.
By default it set to git.
Diffstat (limited to 'packages')
-rwxr-xr-xpackages/SDL.sh6
-rwxr-xr-xpackages/SDL_gfx.sh4
-rwxr-xr-xpackages/SDL_image.sh6
-rwxr-xr-xpackages/SDL_mixer.sh6
-rwxr-xr-xpackages/SDL_net.sh6
-rwxr-xr-xpackages/SDL_ttf.sh6
-rwxr-xr-xpackages/cmake.sh4
-rwxr-xr-xpackages/cppcheck.sh4
-rwxr-xr-xpackages/curl.sh4
-rwxr-xr-xpackages/libpng.sh4
-rwxr-xr-xpackages/libxml2.sh4
-rwxr-xr-xpackages/manaplus.sh4
-rwxr-xr-xpackages/physfs.sh6
-rwxr-xr-xpackages/qemu.sh10
-rwxr-xr-xpackages/virglrenderer.sh4
-rwxr-xr-xpackages/zlib.sh4
16 files changed, 47 insertions, 35 deletions
diff --git a/packages/SDL.sh b/packages/SDL.sh
index 5adf85a..236abf6 100755
--- a/packages/SDL.sh
+++ b/packages/SDL.sh
@@ -1,7 +1,9 @@
#!/bin/bash
+SRCTYPE=hg
+
function package_build {
- run_hg_switch_branch SDL-1.2
+ run_switch_branch SDL-1.2
run_src_script ./autogen.sh
run_configure --disable-rpath --enable-sdl-dlopen --disable-loadso \
--disable-video-ggi \
@@ -15,7 +17,7 @@ function package_build {
}
function package_get_source {
- run_hg_clone http://hg.libsdl.org/SDL/
+ run_clone http://hg.libsdl.org/SDL/
}
function package_use {
diff --git a/packages/SDL_gfx.sh b/packages/SDL_gfx.sh
index d76ca47..bcd3b70 100755
--- a/packages/SDL_gfx.sh
+++ b/packages/SDL_gfx.sh
@@ -1,7 +1,7 @@
#!/bin/bash
function package_build {
- run_git_switch_branch master
+ run_switch_branch master
run_src_script ./autogen.sh
run_configure
@@ -10,7 +10,7 @@ function package_build {
}
function package_get_source {
- run_git_clone https://github.com/ferzkopp/SDL_gfx.git
+ run_clone https://github.com/ferzkopp/SDL_gfx.git
}
function package_use {
diff --git a/packages/SDL_image.sh b/packages/SDL_image.sh
index 88874b4..002fee4 100755
--- a/packages/SDL_image.sh
+++ b/packages/SDL_image.sh
@@ -1,7 +1,9 @@
#!/bin/bash
+SRCTYPE=hg
+
function package_build {
- run_hg_switch_branch SDL-1.2
+ run_switch_branch SDL-1.2
run_src_script ./autogen.sh
run_configure --disable-jpg-shared --disable-tif-shared --disable-png-shared --disable-webp-shared
@@ -10,7 +12,7 @@ function package_build {
}
function package_get_source {
- run_hg_clone http://hg.libsdl.org/SDL_image/
+ run_clone http://hg.libsdl.org/SDL_image/
}
function package_use {
diff --git a/packages/SDL_mixer.sh b/packages/SDL_mixer.sh
index 02b13ff..478ec36 100755
--- a/packages/SDL_mixer.sh
+++ b/packages/SDL_mixer.sh
@@ -1,7 +1,9 @@
#!/bin/bash
+SRCTYPE=hg
+
function package_build {
- run_hg_switch_branch SDL-1.2
+ run_switch_branch SDL-1.2
run_src_script ./autogen.sh
run_configure --disable-music-mp3 \
--disable-music-mod-shared --disable-music-ogg-shared --disable-music-mp3-shared --disable-music-flac-shared --disable-music-fluidsynth-shared
@@ -11,7 +13,7 @@ function package_build {
}
function package_get_source {
- run_hg_clone http://hg.libsdl.org/SDL_mixer/
+ run_clone http://hg.libsdl.org/SDL_mixer/
}
function package_use {
diff --git a/packages/SDL_net.sh b/packages/SDL_net.sh
index 0e17474..2de4e98 100755
--- a/packages/SDL_net.sh
+++ b/packages/SDL_net.sh
@@ -1,7 +1,9 @@
#!/bin/bash
+SRCTYPE=hg
+
function package_build {
- run_hg_switch_branch SDL-1.2
+ run_switch_branch SDL-1.2
run_src_script ./autogen.sh
run_configure --disable-gui
@@ -10,7 +12,7 @@ function package_build {
}
function package_get_source {
- run_hg_clone http://hg.libsdl.org/SDL_net/
+ run_clone http://hg.libsdl.org/SDL_net/
}
function package_use {
diff --git a/packages/SDL_ttf.sh b/packages/SDL_ttf.sh
index 9131f0a..059b5b1 100755
--- a/packages/SDL_ttf.sh
+++ b/packages/SDL_ttf.sh
@@ -1,7 +1,9 @@
#!/bin/bash
+SRCTYPE=hg
+
function package_build {
- run_hg_switch_branch SDL-1.2
+ run_switch_branch SDL-1.2
run_src_script ./autogen.sh
run_configure --disable-gui
@@ -10,7 +12,7 @@ function package_build {
}
function package_get_source {
- run_hg_clone http://hg.libsdl.org/SDL_ttf/
+ run_clone http://hg.libsdl.org/SDL_ttf/
}
function package_use {
diff --git a/packages/cmake.sh b/packages/cmake.sh
index e54720d..89e8666 100755
--- a/packages/cmake.sh
+++ b/packages/cmake.sh
@@ -1,7 +1,7 @@
#!/bin/bash
function package_build {
- run_git_switch_branch master
+ run_switch_branch master
run_cmake
run_make
@@ -9,7 +9,7 @@ function package_build {
}
function package_get_source {
- run_git_clone git://cmake.org/cmake.git
+ run_clone git://cmake.org/cmake.git
}
function package_use {
diff --git a/packages/cppcheck.sh b/packages/cppcheck.sh
index 6e400dd..91ce7df 100755
--- a/packages/cppcheck.sh
+++ b/packages/cppcheck.sh
@@ -1,7 +1,7 @@
#!/bin/bash
function package_build {
- run_git_switch_branch master
+ run_switch_branch master
run_cmake -DHAVE_RULES=ON
@@ -10,7 +10,7 @@ function package_build {
}
function package_get_source {
- run_git_clone https://github.com/danmar/cppcheck.git
+ run_clone https://github.com/danmar/cppcheck.git
}
function package_use {
diff --git a/packages/curl.sh b/packages/curl.sh
index 327c575..463ca3c 100755
--- a/packages/curl.sh
+++ b/packages/curl.sh
@@ -1,7 +1,7 @@
#!/bin/bash
function package_build {
- run_git_switch_branch master
+ run_switch_branch master
# this need because out of source tree compilation is broken
run_enable_same_dir_build
@@ -14,7 +14,7 @@ function package_build {
}
function package_get_source {
- run_git_clone https://github.com/curl/curl.git
+ run_clone https://github.com/curl/curl.git
}
function package_use {
diff --git a/packages/libpng.sh b/packages/libpng.sh
index f13ae15..1c5cf6d 100755
--- a/packages/libpng.sh
+++ b/packages/libpng.sh
@@ -1,7 +1,7 @@
#!/bin/bash
function package_build {
- run_git_switch_branch master
+ run_switch_branch master
run_autoreconf -i
run_configure
@@ -11,7 +11,7 @@ function package_build {
}
function package_get_source {
- run_git_clone git://git.code.sf.net/p/libpng/code
+ run_clone git://git.code.sf.net/p/libpng/code
}
function package_use {
diff --git a/packages/libxml2.sh b/packages/libxml2.sh
index a37ac60..c46f446 100755
--- a/packages/libxml2.sh
+++ b/packages/libxml2.sh
@@ -1,7 +1,7 @@
#!/bin/bash
function package_build {
- run_git_switch_branch master
+ run_switch_branch master
run_autoreconf -i
run_configure --with-python-install-dir="${bindir}/lib/python"
@@ -11,7 +11,7 @@ function package_build {
}
function package_get_source {
- run_git_clone git://git.gnome.org/libxml2
+ run_clone git://git.gnome.org/libxml2
}
function package_use {
diff --git a/packages/manaplus.sh b/packages/manaplus.sh
index 6136a99..dd7daab 100755
--- a/packages/manaplus.sh
+++ b/packages/manaplus.sh
@@ -1,7 +1,7 @@
#!/bin/bash
function package_build {
- run_git_switch_branch master
+ run_switch_branch master
run_autoreconf -i
run_configure
@@ -11,7 +11,7 @@ function package_build {
}
function package_get_source {
- run_git_clone https://gitlab.com/manaplus/manaplus.git
+ run_clone https://gitlab.com/manaplus/manaplus.git
}
function package_use {
diff --git a/packages/physfs.sh b/packages/physfs.sh
index d32d303..9d73b20 100755
--- a/packages/physfs.sh
+++ b/packages/physfs.sh
@@ -1,7 +1,9 @@
#!/bin/bash
+SRCTYPE=hg
+
function package_build {
- run_hg_switch_branch stable-2.0
+ run_switch_branch stable-2.0
run_cmake
run_make
@@ -9,7 +11,7 @@ function package_build {
}
function package_get_source {
- run_hg_clone https://hg.icculus.org/icculus/physfs/
+ run_clone https://hg.icculus.org/icculus/physfs/
}
function package_use {
diff --git a/packages/qemu.sh b/packages/qemu.sh
index 8e86740..a7e7966 100755
--- a/packages/qemu.sh
+++ b/packages/qemu.sh
@@ -1,7 +1,7 @@
#!/bin/bash
function package_build {
- run_git_switch_branch master
+ run_switch_branch master
run_configure \
--target-list=x86_64-linux-user,x86_64-softmmu \
--disable-nettle \
@@ -17,12 +17,12 @@ function package_build {
}
function package_get_source {
- run_git_clone git://git.qemu-project.org/qemu.git
+ run_clone git://git.qemu-project.org/qemu.git
}
-function package_deps {
- run_add_dep virglrenderer
-}
+#function package_deps {
+# run_add_dep virglrenderer
+#}
function package_use {
env_bin "bin"
diff --git a/packages/virglrenderer.sh b/packages/virglrenderer.sh
index 5ce3ba8..7722957 100755
--- a/packages/virglrenderer.sh
+++ b/packages/virglrenderer.sh
@@ -1,7 +1,7 @@
#!/bin/bash
function package_build {
- run_git_switch_branch master
+ run_switch_branch master
run_autoreconf -v --install
run_configure
run_make
@@ -9,7 +9,7 @@ function package_build {
}
function package_get_source {
- run_git_clone git://people.freedesktop.org/~airlied/virglrenderer
+ run_clone git://people.freedesktop.org/~airlied/virglrenderer
}
function package_use {
diff --git a/packages/zlib.sh b/packages/zlib.sh
index b95f940..f574f6c 100755
--- a/packages/zlib.sh
+++ b/packages/zlib.sh
@@ -1,7 +1,7 @@
#!/bin/bash
function package_build {
- run_git_switch_branch v1.2.11
+ run_switch_branch v1.2.11
run_configure
run_make
@@ -9,7 +9,7 @@ function package_build {
}
function package_get_source {
- run_git_clone https://github.com/madler/zlib.git
+ run_clone https://github.com/madler/zlib.git
}
function package_use {