mxe/src/libnice.mk

33 lines
1.2 KiB
Makefile
Raw Normal View History

2016-10-28 07:18:21 +01:00
# This file is part of MXE. See LICENSE.md for licensing information.
2016-10-27 20:13:27 +01:00
PKG := libnice
2020-06-06 05:26:03 +01:00
$(PKG)_WEBSITE := https://libnice.freedesktop.org
2016-10-27 20:13:27 +01:00
$(PKG)_IGNORE :=
2020-06-06 05:26:03 +01:00
$(PKG)_VERSION := 0.1.16
$(PKG)_CHECKSUM := 06b678066f94dde595a4291588ed27acd085ee73775b8c4e8399e28c01eeefdf
2016-10-27 20:13:27 +01:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
2020-06-06 05:26:03 +01:00
$(PKG)_URL := https://libnice.freedesktop.org/releases/$($(PKG)_FILE)
$(PKG)_DEPS := cc glib gnutls
2016-10-27 20:13:27 +01:00
define $(PKG)_UPDATE
2017-03-05 03:41:39 +00:00
$(WGET) -q -O- 'https://cgit.freedesktop.org/libnice/libnice/refs/tags' | \
2016-10-28 07:18:21 +01:00
grep '<a href=' | \
$(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*\.[^<]*\)<.*,\1,p' | \
$(SORT) -Vr | \
head -1
2016-10-27 20:13:27 +01:00
endef
define $(PKG)_BUILD
2016-10-28 07:18:21 +01:00
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
2016-10-27 20:13:27 +01:00
$(MXE_CONFIGURE_OPTS) \
2016-10-28 07:18:21 +01:00
PKG_CONFIG='$(TARGET)-pkg-config' \
2016-10-27 20:13:27 +01:00
GLIB_COMPILE_SCHEMAS='$(PREFIX)/$(TARGET)/bin/glib-compile-schemas' \
MAKE=$(MAKE)
2016-10-28 07:18:21 +01:00
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_PROGRAMS)
2016-10-31 14:28:29 +00:00
$(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_PROGRAMS)
$(TARGET)-gcc \
2016-10-28 07:18:21 +01:00
'$(SOURCE_DIR)/examples/simple-example.c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
2016-10-27 20:24:32 +01:00
`$(TARGET)-pkg-config nice --cflags --libs`
2016-10-27 20:13:27 +01:00
endef