2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2013-10-28 00:11:38 +00:00
|
|
|
|
|
|
|
PKG := libdvdcss
|
2017-03-04 10:33:47 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.videolan.org/developers/libdvdcss.html
|
2013-10-28 00:11:38 +00:00
|
|
|
$(PKG)_IGNORE :=
|
2018-12-04 22:55:14 +00:00
|
|
|
$(PKG)_VERSION := 1.4.2
|
|
|
|
$(PKG)_CHECKSUM := 78c2ed77ec9c0d8fbed7bf7d3abc82068b8864be494cfad165821377ff3f2575
|
2013-10-28 00:11:38 +00:00
|
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2
|
2017-03-04 10:33:47 +00:00
|
|
|
$(PKG)_URL := https://download.videolan.org/pub/libdvdcss/$($(PKG)_VERSION)/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc
|
2013-10-28 00:11:38 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-04 10:33:47 +00:00
|
|
|
$(WGET) -q -O- 'https://download.videolan.org/pub/libdvdcss/' | \
|
2014-08-23 03:39:14 +01:00
|
|
|
$(SED) -n 's,.*<a href="\([0-9][^<]*\)/".*,\1,p' | \
|
|
|
|
$(SORT) -Vr | \
|
2013-10-28 00:11:38 +00:00
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2018-03-13 10:08:36 +00:00
|
|
|
# build and install the library
|
|
|
|
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
|
2014-03-23 23:34:17 +00:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2013-10-28 00:11:38 +00:00
|
|
|
--disable-doc
|
2018-03-13 10:08:36 +00:00
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_CRUFT)
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_CRUFT)
|
2013-10-28 00:11:38 +00:00
|
|
|
endef
|