recipe 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Build recipe for dbus.
  2. #
  3. # Copyright (C) 2018, MMPG <mmpg@vp.pl>
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. program=dbus
  17. version=1.13.2
  18. release=1
  19. tarname=${program}-${version}.tar.gz
  20. # Remote source(s)
  21. fetch=https://dbus.freedesktop.org/releases/dbus/$tarname
  22. description"
  23. D-Bus supplies both a system daemon (for events such as "new hardware
  24. device added" or "printer queue changed") and a per user login
  25. session daemon (for general IPC needs among user applications).
  26. Also, the message bus is built on top of a general one-to-one message
  27. passing framework, which can be used by any two apps to communicate
  28. directly (without going through the message bus daemon).
  29. "
  30. homepage=https://www.freedesktop.org/wiki/Software/dbus/
  31. license="AFLv2.1 or GPLv2"
  32. # Source documentation
  33. docs="AUTHORS COPYING ChangeLog ChangeLog.pre-1-0 ChangeLog.pre-1-2 HACKING INSTALL NEWS NEWS.pre-1-0 NEWS.pre-1-2 README"
  34. docsdir="${docdir}/${program}-${version}"
  35. build()
  36. {
  37. set -e
  38. unpack "${tardir}/$tarname"
  39. cd "$srcdir"
  40. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  41. $configure_args \
  42. --mandir=/usr/man \
  43. --infodir=/us/info \
  44. --disable-doxygen-docs \
  45. --disable-xml-docs \
  46. --disable-static \
  47. --with-console-auth-dir=/var/run/console \
  48. --with-system-pid-file=/var/run/dbus/pid \
  49. --with-system-socket=/var/run/dbus/system_bus_socket \
  50. --build="$(cc -dumpmachine)"
  51. make -j${jobs}
  52. make -j${jobs} DESTDIR="$destdir" install
  53. # Copy documentation
  54. mkdir -p "${destdir}${docsdir}"
  55. for file in $docs
  56. do
  57. cp -p $file "${destdir}${docsdir}"
  58. done
  59. }