Skip to content

Instantly share code, notes, and snippets.

@thatdutchguy
Created August 16, 2017 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thatdutchguy/1efa4ea8016008941f95563214df55a0 to your computer and use it in GitHub Desktop.
Save thatdutchguy/1efa4ea8016008941f95563214df55a0 to your computer and use it in GitHub Desktop.
adplug/adplay-unix build setup

Initial Environment setup

Create a directory for your adplug/adplay dev setup, ex:

mkdir ~/src/adplug-dev

Copy setup.sh and build.sh to this directory, then:

cd ~/src/adplug-dev
sh ./setup.sh

This will clone the adplug and aplay-unix repos and create a ./build output directory.

During development

The first time you build/configure, or after pulling in some changes, run:

sh ./build.sh configure

Note the configure option, which will run configure with all the necessary options to create Makefiles that output to and read from the build directory.

Once that has been run once, the script can be triggered without the configure option to speed things along:

sh ./build.sh

It's a bit cruddy but it's what I've been using.

#!/bin/bash
BUILD_DIR=`pwd`/build
export PKG_CONFIG_PATH="$BUILD_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"
pushd adplug
if [ "$1" == "configure" ]; then
./configure --prefix=$BUILD_DIR --enable-maintainer-mode
fi
make && make install
popd
pushd adplay-unix
if [ "$1" == "configure" ]; then
./configure --prefix=$BUILD_DIR
fi
make && make install
popd
#!/bin/bash
BUILD_DIR=`pwd`/build
adplug_remote="https://github.com/adplug/adplug"
adplay_remote="https://github.com/adplug/adplay-unix.git"
git clone $adplug_remote adplug
git clone $adplay_remote adplay-unix
mkdir -p $BUILD_DIR
pushd adplug
autoreconf -fvi
popd
pushd adplay-unix
autoreconf -fvi
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment