mxe/src/libdvdread.mk

33 lines
1.2 KiB
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := libdvdread
2018-03-13 10:08:36 +00:00
$(PKG)_WEBSITE := https://www.videolan.org/developers/libdvdnav.html
$(PKG)_IGNORE :=
2018-03-13 10:08:36 +00:00
$(PKG)_VERSION := 6.0.0
$(PKG)_CHECKSUM := b33b1953b4860545b75f6efc06e01d9849e2ea4f797652263b0b4af6dd10f935
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
2014-09-05 01:09:03 +01:00
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
2017-03-04 10:33:47 +00:00
$(PKG)_URL := https://download.videolan.org/pub/videolan/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
# libdvdread supports libdvdcss either by dynamic loading (dlfcn-win32) or
# directly linking to libdvdcss. We directly links to the library here.
$(PKG)_DEPS := cc libdvdcss
define $(PKG)_UPDATE
2017-03-04 10:33:47 +00:00
$(WGET) -q -O- 'https://download.videolan.org/pub/videolan/libdvdread/' | \
2014-09-05 01:09:03 +01:00
$(SED) -n 's,.*href="\([0-9][^<]*\)/".*,\1,p' | \
grep -v 'alpha\|beta\|rc' | \
$(SORT) -V | \
tail -1
endef
define $(PKG)_BUILD
2018-03-13 10:08:36 +00:00
# build and install the library
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
$(MXE_CONFIGURE_OPTS)
--with-libdvdcss \
--disable-apidoc
2018-03-13 10:08:36 +00:00
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' LDFLAGS=-no-undefined
$(MAKE) -C '$(BUILD_DIR)' -j 1 install LDFLAGS=-no-undefined
endef