blob: 605eac15851da58eec10f7a909118dda1d95daf1 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# @licence app begin@
# SPDX-License-Identifier: MPL-2.0
#
# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen
#
# \file bustle.mk
#
# \brief This file is part of the Build System.
#
# \author Philippe Colliot <philippe.colliot@mpsa.com>
#
# \version 1.0
#
# This Source Code Form is subject to the terms of the
# Mozilla Public License (MPL), v. 2.0.
# If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# For further information see http://www.genivi.org/.
#
# List of changes:
#
# <date>, <name>, <description of change>
#
# @licence end@
bustle_URL="https://github.com/wjt/bustle.git"
bustle_VERSION=0a426c396ee890bbde67791dbf8d2c21b9cc6a3c
bustle_SRC=$(SRC_DIR)/bustle
bustle_BIN=$(BIN_DIR)/bustle
bustle_DEPS+= gtk2.0-dev haskell-platform libghc-gtk-dev libpcap-dev language-pack-de language-pack-fr gtk2hs-buildtools libdbus-1-dev
DEPS+=$(bustle_DEPS)
ALL+=bustle
SRC_CLEAN+=clean-bustle_SRC
help::
@echo "bustle: Build bustle with patches"
clean-bustle_SRC::
rm -rf $(SRC_DIR)/bustle_*
$(bustle_SRC)/Makefile:
git clone $(bustle_URL) $(bustle_SRC)
cd $(bustle_SRC) && git checkout $(bustle_VERSION)
$(bustle_SRC)/.patched: $(bustle_SRC)/Makefile
patch -d $(bustle_SRC) -p1 -s <$(PATCH_DIR)/bustle_filter.patch
touch $(bustle_SRC)/.patched
$(HOME)/.cabal/packages/hackage.haskell.org/00-index.tar:
cabal update
$(bustle_BIN)/bustle: $(bustle_SRC)/.patched $(HOME)/.cabal/packages/hackage.haskell.org/00-index.tar
cd $(bustle_SRC) && cabal install --builddir=$(bustle_BIN) && cabal build --builddir=$(bustle_BIN)
bustle: $(bustle_BIN)/bustle
|