forked from mxe/mxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libdvdnav.mk
27 lines (24 loc) · 1 KB
/
libdvdnav.mk
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
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := libdvdnav
$(PKG)_WEBSITE := https://www.videolan.org/developers/libdvdnav.html
$(PKG)_IGNORE :=
$(PKG)_VERSION := 6.0.0
$(PKG)_CHECKSUM := f0a2711b08a021759792f8eb14bb82ff8a3c929bf88c33b64ffcddaa27935618
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := https://download.videolan.org/pub/videolan/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := cc libdvdread
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://download.videolan.org/pub/videolan/libdvdnav/' | \
$(SED) -n 's,.*href="\([0-9][^<]*\)/".*,\1,p' | \
grep -v 'alpha\|beta\|rc' | \
$(SORT) -V | \
tail -1
endef
define $(PKG)_BUILD
# build and install the library
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' LDFLAGS=-no-undefined
$(MAKE) -C '$(BUILD_DIR)' -j 1 install LDFLAGS=-no-undefined
endef