mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-11-27 06:22:07 +00:00
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:
parent
158133572f
commit
128a9d35fd
14 changed files with 18 additions and 15 deletions
|
@ -50,6 +50,10 @@ basic_setup
|
|||
. chocpkg_modules.sh
|
||||
. "$CHOCPKG_ROOT/buildenv.sh"
|
||||
|
||||
description() {
|
||||
PACKAGE_DESCRIPTION="$*"
|
||||
}
|
||||
|
||||
dependencies() {
|
||||
DEPENDENCIES+=" $*"
|
||||
}
|
||||
|
@ -66,6 +70,7 @@ configure_for_package() {
|
|||
PACKAGE_NAME=$package
|
||||
PACKAGE_DIR_NAME=$package
|
||||
PACKAGE_TYPE=target
|
||||
PACKAGE_DESCRIPTION="Package $PACKAGE_NAME"
|
||||
DEPENDENCIES=""
|
||||
. "$pkg_file"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
description "Simple DirectMedia Layer"
|
||||
check_pkgconfig sdl2
|
||||
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
|
||||
|
||||
build_autotools $config_options
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
description "SDL audio mixing and music library"
|
||||
dependencies SDL2
|
||||
check_pkgconfig SDL2_mixer
|
||||
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
|
||||
|
||||
build_autotools $config_options
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
description "SDL networking library"
|
||||
dependencies SDL2
|
||||
check_pkgconfig SDL2_net
|
||||
fetch_download http://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.0.1.tar.gz
|
||||
build_autotools
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
description "Conservative, historically-accurate Doom source port"
|
||||
dependencies SDL2 SDL2_mixer SDL2_net
|
||||
fetch_git https://github.com/fragglet/chocolate-doom.git sdl2-branch
|
||||
build_autotools
|
||||
|
||||
|
|
|
@ -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
|
||||
IS_TAR_BOMB=true
|
||||
|
||||
|
@ -9,4 +9,3 @@ do_build() {
|
|||
do_install() {
|
||||
cp -R include lib "$PACKAGE_INSTALL_DIR"
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
description "Library for encoding/decoding .flac lossless audio files"
|
||||
check_pkgconfig flac
|
||||
fetch_download http://www.chocolate-doom.org/depends/flac-1.3.1.tar.gz
|
||||
|
||||
# Compile problems :(
|
||||
build_autotools --disable-asm-optimizations
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
description "Library for reading .ogg container files"
|
||||
check_pkgconfig ogg
|
||||
fetch_download http://www.chocolate-doom.org/depends/libogg-1.3.1.tar.gz
|
||||
build_autotools
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
description "Library for reading/writing .png image files"
|
||||
dependencies zlib
|
||||
check_pkgconfig libpng
|
||||
fetch_download http://www.chocolate-doom.org/depends/libpng-1.6.10.tar.gz
|
||||
build_autotools
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
description "Library for high quality audio resampling"
|
||||
check_pkgconfig samplerate
|
||||
fetch_download http://www.chocolate-doom.org/depends/libsamplerate-0.1.8.tar.gz
|
||||
build_autotools
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
description "Library for decoding Ogg Vorbis codec files"
|
||||
dependencies libogg
|
||||
check_pkgconfig vorbis
|
||||
fetch_download http://www.chocolate-doom.org/depends/libvorbis-1.3.4.tar.gz
|
||||
build_autotools
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
PACKAGE_TYPE=native
|
||||
|
||||
description "Development tool for locating installed packages and libraries"
|
||||
check_tool pkg-config
|
||||
fetch_download https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
|
||||
build_autotools --with-internal-glib
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
description "Library for compressing/decompressing GZIP files"
|
||||
check_pkgconfig zlib
|
||||
fetch_download http://zlib.net/zlib-1.2.8.tar.gz
|
||||
build_autotools
|
||||
|
|
Loading…
Reference in a new issue