blob: 6fcdec662733fc6385dcdbbd09551124bc533395 (
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
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := libnice
$(PKG)_WEBSITE := https://nice.freedesktop.org/wiki/
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.1.13
$(PKG)_CHECKSUM := 61112d9f3be933a827c8365f20551563953af6718057928f51f487bfe88419e1
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
$(PKG)_URL := https://nice.freedesktop.org/releases/$($(PKG)_FILE)
$(PKG)_DEPS := gcc glib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://cgit.freedesktop.org/libnice/libnice/refs/tags' | \
grep '<a href=' | \
$(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*\.[^<]*\)<.*,\1,p' | \
$(SORT) -Vr | \
head -1
endef
define $(PKG)_BUILD
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
$(MXE_CONFIGURE_OPTS) \
PKG_CONFIG='$(TARGET)-pkg-config' \
GLIB_COMPILE_SCHEMAS='$(PREFIX)/$(TARGET)/bin/glib-compile-schemas' \
MAKE=$(MAKE)
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_PROGRAMS)
$(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_PROGRAMS)
$(TARGET)-gcc \
'$(SOURCE_DIR)/examples/simple-example.c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`$(TARGET)-pkg-config nice --cflags --libs`
endef
|