Skip to content

Commit 4d2e207

Browse files
committed
chore: add avahi to vcpkg
1 parent 16c0d53 commit 4d2e207

6 files changed

Lines changed: 59 additions & 0 deletions

File tree

Dockerfile.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ ENV PATH="$VCPKG_ROOT:$PATH"
2626
ARG TRIPLET
2727
COPY vcpkg.json vcpkg-configuration.json ./
2828
COPY vcpkg-triplets ./vcpkg-triplets
29+
COPY vcpkg-ports ./vcpkg-ports
2930
RUN --mount=type=cache,target=/build/vcpkg/downloads \
3031
--mount=type=cache,target=/build/vcpkg/buildtrees \
3132
vcpkg install --triplet "$TRIPLET"

vcpkg-configuration.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"overlay-triplets": [
33
"./vcpkg-triplets"
44
],
5+
"overlay-ports": [
6+
"./vcpkg-ports"
7+
],
58
"default-registry": {
69
"kind": "git",
710
"baseline": "c59b04f668d20c7dd83f478835e8266a3cc51270",

vcpkg-ports/avahi/portfile.cmake

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO avahi/avahi
4+
REF "v${VERSION}"
5+
SHA512 27bba9a551152dfc7e721f326042e7bfce55d227044a6cbaee04d6fb0e3f59c36e159c2b7a4dd42d1c955cdf37cc1c303e91991c08928bbded91d796e9a22abe
6+
HEAD_REF master
7+
)
8+
9+
vcpkg_configure_make(
10+
SOURCE_PATH "${SOURCE_PATH}"
11+
AUTOCONFIG
12+
COPY_SOURCE
13+
OPTIONS
14+
--disable-python
15+
--disable-manpages
16+
--disable-libevent
17+
--disable-gtk
18+
--disable-gtk3
19+
--disable-mono
20+
--disable-monodoc
21+
--disable-qt4
22+
--disable-qt5
23+
--disable-glib
24+
--disable-gobject
25+
--disable-libdaemon
26+
--disable-gdbm
27+
)
28+
29+
vcpkg_install_make()
30+
vcpkg_fixup_pkgconfig()
31+
32+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

vcpkg-ports/avahi/vcpkg.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "avahi",
3+
"version": "0.8",
4+
"description": "Service Discovery for Linux using mDNS/DNS-SD",
5+
"homepage": "www.avahi.org",
6+
"license": "LGPL-2.1-or-later",
7+
"supports": "linux",
8+
"dependencies": [
9+
{
10+
"name": "dbus",
11+
"default-features": false
12+
}
13+
]
14+
}

vcpkg-triplets/base-linux.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ set(VCPKG_LIBRARY_LINKAGE dynamic)
33

44
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
55
set(VCPKG_BUILD_TYPE release)
6+
7+
if(PORT STREQUAL "dbus")
8+
set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DDBUS_SESSION_SOCKET_DIR=/tmp)
9+
endif()

vcpkg.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"dependencies": [
33
"alsa",
4+
"avahi",
5+
{
6+
"name": "dbus",
7+
"default-features": false
8+
},
49
"libvorbis"
510
]
611
}

0 commit comments

Comments
 (0)