net-im/lurch: fix scm build

This commit is contained in:
Julian Ospald 2017-03-20 20:22:23 +01:00
parent 3a1e98da4f
commit 77fd1ac26a
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 10 additions and 1 deletions

View File

@ -3,17 +3,22 @@
SCM_REPOSITORY="https://github.com/gkdr/${PN}.git"
SCM_axc_REPOSITORY="https://github.com/gkdr/axc.git"
SCM_signal_REPOSITORY="https://github.com/WhisperSystems/libsignal-protocol-c.git"
SCM_omemo_REPOSITORY="https://github.com/gkdr/libomemo.git"
SCM_SECONDARY_REPOSITORIES="
axc
signal
omemo
"
SCM_EXTERNAL_REFS="
lib/axc:axc
lib/libomemo:omemo
"
SCM_axc_EXTERNAL_REFS="
lib/libsignal-protocol-c:signal
"
CMAKE_SOURCE=${WORK}/lib/axc/lib/libaxolotl-c
CMAKE_SOURCE=${WORK}/lib/axc/lib/libsignal-protocol-c
require cmake [ api=2 out_of_source=false ] # don't let cmake mess with $WORK
require scm-git
@ -42,6 +47,10 @@ DEPENDENCIES="
BUGS_TO="hasufell@posteo.de"
REMOTE_IDS="github:gkdr/${PN}"
CMAKE_SRC_CONFIGURE_PARAMS=(
-DCMAKE_C_FLAGS="${CFLAGS} -fPIC"
)
src_prepare() {
# cmake part of libaxolotl-c
edo mkdir "${CMAKE_SOURCE}"/build