.packer.yml 1.38 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
osx:
    type: osx
    brew_deps:
        - automake
        - libtool
        - gettext
        - yasm
        - autoconf
        - pkg-config
        - qt5
        - llvm --with-clang --with-asan
    commands:
        - echo "Deamon"
        - git clone https://gerrit-ring.savoirfairelinux.com/ring-daemon ring-daemon
        - cd ring-daemon
        - cd contrib
        - mkdir native
        - cd native
        - ../bootstrap
        - make -j3
        - cd ../../
        - ./autogen.sh && configure --without-alsa --without-pulse --without-dbus --prefix=%(prefix_path)s
        - make install -j
        - cd ..
        - echo "LRC"
        - export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.4.0
        - git clone git@git.kde.org:libringclient
        - cd libringclient
        - mkdir build
        - cd build
        - cmake .. -DCMAKE_INSTALL_PREFIX=%(prefix_path) -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++
        - make install
        - cd ..
        - echo "Client"
        - git clone https://gerrit-ring.savoirfairelinux.com/ring-client-macosx ring-client-macosx
        - cd ring-client-macosx
        - mkdir build && cd build
        - export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.4.0
        - cmake ../ -DCMAKE_INSTALL_PREFIX=%(prefix_path)s
        - make install -j
        - cpack -G DragNDrop Ring