Add ability for packages to provide a description.

It's nice to be able to get some idea of what a package does.
This commit is contained in:
Simon Howard 2016-02-25 20:13:52 -05:00
parent 158133572f
commit 128a9d35fd
14 changed files with 18 additions and 15 deletions

View file

@ -50,6 +50,10 @@ basic_setup
. chocpkg_modules.sh . chocpkg_modules.sh
. "$CHOCPKG_ROOT/buildenv.sh" . "$CHOCPKG_ROOT/buildenv.sh"
description() {
PACKAGE_DESCRIPTION="$*"
}
dependencies() { dependencies() {
DEPENDENCIES+=" $*" DEPENDENCIES+=" $*"
} }
@ -66,6 +70,7 @@ configure_for_package() {
PACKAGE_NAME=$package PACKAGE_NAME=$package
PACKAGE_DIR_NAME=$package PACKAGE_DIR_NAME=$package
PACKAGE_TYPE=target PACKAGE_TYPE=target
PACKAGE_DESCRIPTION="Package $PACKAGE_NAME"
DEPENDENCIES="" DEPENDENCIES=""
. "$pkg_file" . "$pkg_file"

View file

@ -1,4 +1,4 @@
description "Simple DirectMedia Layer"
check_pkgconfig sdl2 check_pkgconfig sdl2
fetch_download http://www.libsdl.org/release/SDL2-2.0.4.tar.gz fetch_download http://www.libsdl.org/release/SDL2-2.0.4.tar.gz
@ -17,4 +17,3 @@ if [ $(uname) = "Cygwin" ] || [[ "$BUILD_HOST" = *mingw* ]]; then
fi fi
build_autotools $config_options build_autotools $config_options

View file

@ -1,3 +1,4 @@
description "SDL audio mixing and music library"
dependencies SDL2 dependencies SDL2
check_pkgconfig SDL2_mixer check_pkgconfig SDL2_mixer
fetch_download http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz fetch_download http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz
@ -17,4 +18,3 @@ if ! chocpkg installed libogg; then
fi fi
build_autotools $config_options build_autotools $config_options

View file

@ -1,5 +1,5 @@
description "SDL networking library"
dependencies SDL2 dependencies SDL2
check_pkgconfig SDL2_net check_pkgconfig SDL2_net
fetch_download http://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.0.1.tar.gz fetch_download http://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.0.1.tar.gz
build_autotools build_autotools

View file

@ -1,4 +1,4 @@
description "Conservative, historically-accurate Doom source port"
dependencies SDL2 SDL2_mixer SDL2_net dependencies SDL2 SDL2_mixer SDL2_net
fetch_git https://github.com/fragglet/chocolate-doom.git sdl2-branch fetch_git https://github.com/fragglet/chocolate-doom.git sdl2-branch
build_autotools build_autotools

View file

@ -1,4 +1,4 @@
description "Extra header files for compiling DirectX applications"
fetch_download https://www.libsdl.org/extras/win32/common/directx-devel.tar.gz fetch_download https://www.libsdl.org/extras/win32/common/directx-devel.tar.gz
IS_TAR_BOMB=true IS_TAR_BOMB=true
@ -9,4 +9,3 @@ do_build() {
do_install() { do_install() {
cp -R include lib "$PACKAGE_INSTALL_DIR" cp -R include lib "$PACKAGE_INSTALL_DIR"
} }

View file

@ -1,3 +1,2 @@
# Optional libraries which can be used by Chocolate Doom. description "Optional libraries which can be used by Chocolate Doom"
package_group flac libpng libsamplerate libvorbis package_group flac libpng libsamplerate libvorbis

View file

@ -1,6 +1,6 @@
description "Library for encoding/decoding .flac lossless audio files"
check_pkgconfig flac check_pkgconfig flac
fetch_download http://www.chocolate-doom.org/depends/flac-1.3.1.tar.gz fetch_download http://www.chocolate-doom.org/depends/flac-1.3.1.tar.gz
# Compile problems :( # Compile problems :(
build_autotools --disable-asm-optimizations build_autotools --disable-asm-optimizations

View file

@ -1,4 +1,4 @@
description "Library for reading .ogg container files"
check_pkgconfig ogg check_pkgconfig ogg
fetch_download http://www.chocolate-doom.org/depends/libogg-1.3.1.tar.gz fetch_download http://www.chocolate-doom.org/depends/libogg-1.3.1.tar.gz
build_autotools build_autotools

View file

@ -1,5 +1,5 @@
description "Library for reading/writing .png image files"
dependencies zlib dependencies zlib
check_pkgconfig libpng check_pkgconfig libpng
fetch_download http://www.chocolate-doom.org/depends/libpng-1.6.10.tar.gz fetch_download http://www.chocolate-doom.org/depends/libpng-1.6.10.tar.gz
build_autotools build_autotools

View file

@ -1,4 +1,4 @@
description "Library for high quality audio resampling"
check_pkgconfig samplerate check_pkgconfig samplerate
fetch_download http://www.chocolate-doom.org/depends/libsamplerate-0.1.8.tar.gz fetch_download http://www.chocolate-doom.org/depends/libsamplerate-0.1.8.tar.gz
build_autotools build_autotools

View file

@ -1,5 +1,5 @@
description "Library for decoding Ogg Vorbis codec files"
dependencies libogg dependencies libogg
check_pkgconfig vorbis check_pkgconfig vorbis
fetch_download http://www.chocolate-doom.org/depends/libvorbis-1.3.4.tar.gz fetch_download http://www.chocolate-doom.org/depends/libvorbis-1.3.4.tar.gz
build_autotools build_autotools

View file

@ -1,5 +1,5 @@
PACKAGE_TYPE=native PACKAGE_TYPE=native
description "Development tool for locating installed packages and libraries"
check_tool pkg-config check_tool pkg-config
fetch_download https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz fetch_download https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
build_autotools --with-internal-glib build_autotools --with-internal-glib

View file

@ -1,3 +1,4 @@
description "Library for compressing/decompressing GZIP files"
check_pkgconfig zlib check_pkgconfig zlib
fetch_download http://zlib.net/zlib-1.2.8.tar.gz fetch_download http://zlib.net/zlib-1.2.8.tar.gz
build_autotools build_autotools