Enable additional configuration options
This commit is contained in:
@@ -2,10 +2,33 @@
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
# The prepare function is executed in the root of the temp directory
|
||||
# This function is used for putting downloaded files to the correct location or applying patches
|
||||
prepare() {
|
||||
cd "$BPM_SOURCE"
|
||||
# Remove vendored ell to avoid conflicts
|
||||
rm -r ell
|
||||
}
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-library --disable-systemd
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--with-dbusconfdir=/usr/share \
|
||||
--with-udevdir=/usr/lib/udev \
|
||||
--enable-btpclient \
|
||||
--enable-midi \
|
||||
--enable-sixaxis \
|
||||
--enable-mesh \
|
||||
--enable-hid2hci \
|
||||
--enable-experimental \
|
||||
--enable-datafiles \
|
||||
--enable-external-ell \
|
||||
--enable-library \
|
||||
--enable-deprecated \
|
||||
--disable-systemd
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
@@ -18,6 +41,11 @@ check() {
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
|
||||
# Add missing tools
|
||||
for _file in $(find tools/ -type f -perm -755 -exec basename {} \;); do
|
||||
install -Dm755 "$BPM_SOURCE"/tools/$_file "$BPM_OUTPUT"/usr/bin/$_file
|
||||
done
|
||||
|
||||
# Symlink bluetooth daemon
|
||||
install -dm755 "$BPM_OUTPUT"/usr/sbin/
|
||||
|
||||
Reference in New Issue
Block a user