Skip to content

Instantly share code, notes, and snippets.

@infovore
Created September 14, 2015 14:30

Revisions

  1. infovore renamed this gist Sep 14, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. infovore created this gist Sep 14, 2015.
    50 changes: 50 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    ---
    - hosts: YOUR_HOST_HERE
    tasks:
    - name: Install audiowaveform dependencies
    apt: pkg={{item}} state=installed
    with_items:
    - git-core
    - make
    - cmake
    - gcc
    - g++
    - libmad0-dev
    - libsndfile1-dev
    - libgd2-xpm-dev
    - libboost-filesystem-dev
    - libboost-program-options-dev
    - libboost-regex-dev
    - unzip
    register: aw_deps_installed

    - name: Clone audiowaveform repository
    git: repo=https://github.com/bbcrd/audiowaveform.git
    dest=/tmp/audiowaveform
    when: aw_deps_installed|success
    register: aw_cloned

    - name: Download GMock
    get_url: url=https://googlemock.googlecode.com/files/gmock-1.7.0.zip
    dest=/tmp/audiowaveform/
    when: aw_cloned|success
    register: gmock_downloaded

    - name: Unzip GMock
    unarchive: src=/tmp/audiowaveform/gmock-1.7.0.zip dest=/tmp/audiowaveform/ copy=no
    when: gmock_downloaded|success
    register: gmock_unzipped

    - name: Symlink GMock
    file: src=/tmp/audiowaveform/gmock-1.7.0 dest=/tmp/audiowaveform/gmock state=link
    when: gmock_unzipped|success
    register: gmock_symlinked

    - name: Compile audiowaveform
    shell: 'cd /tmp/audiowaveform;{{ item }}'
    with_items:
    - mkdir build
    - cd build; cmake ..
    - cd build; make
    - cd build; make install