summaryrefslogtreecommitdiff
path: root/packages/SDL_image.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-27 02:38:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-27 02:38:42 +0300
commita1807d94008cc932533dd7fff0f78bc8a27fdc66 (patch)
treef13fed8d79d984010cabce5d4f323d99ec3da0e4 /packages/SDL_image.sh
parentecbc19b90ea893e3934cad6d6542ebc7e5e1a777 (diff)
downloadspm-a1807d94008cc932533dd7fff0f78bc8a27fdc66.tar.gz
spm-a1807d94008cc932533dd7fff0f78bc8a27fdc66.tar.bz2
spm-a1807d94008cc932533dd7fff0f78bc8a27fdc66.tar.xz
spm-a1807d94008cc932533dd7fff0f78bc8a27fdc66.zip
Replace in packages package_use function to ENV_* variables.
Impliment default package_use function for use ENV_* variables.
Diffstat (limited to 'packages/SDL_image.sh')
-rwxr-xr-xpackages/SDL_image.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/SDL_image.sh b/packages/SDL_image.sh
index f44089d..1fd81d0 100755
--- a/packages/SDL_image.sh
+++ b/packages/SDL_image.sh
@@ -3,6 +3,9 @@
SRCTYPE=hg
SRCURL=http://hg.libsdl.org/SDL_image/
+ENV_LD_LIBRARY_PATH="lib"
+ENV_PKG_CONFIG_PATH="lib/pkgconfig"
+
function package_build {
run_switch_branch SDL-1.2
run_src_script ./autogen.sh
@@ -11,8 +14,3 @@ function package_build {
run_make
run_make_install
}
-
-function package_use {
- env_lib_library_path "lib"
- env_pkg_config_path "lib/pkgconfig"
-}