blob: a3816f74d3d1d64677a83719190f83a848e864da (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := libdvdetect
$(PKG)_WEBSITE := https://www.dvdetect.de/
$(PKG)_DESCR := Fast database lookup for DVDs
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.71.0
$(PKG)_CHECKSUM := b098e04660532df78836f50bc0a8044b66c6659b07a6bff6609724ad30a87192
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://github.com/nschlia/libdvdetect/releases/download/RELEASE_0_71/$(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS := gcc openssl tinyxml
define $(PKG)_UPDATE
$(call MXE_GET_GITHUB_TAGS, libdvdetect/libdvdetect, release-)
endef
define $(PKG)_BUILD
cd '$(BUILD_DIR)' && \
'$(SOURCE_DIR)'/configure \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)/include' -j '$(JOBS)' install
$(MAKE) -C '$(BUILD_DIR)/lib' -j '$(JOBS)' install
# create pkg-config file
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
(echo 'prefix=$(PREFIX)/$(TARGET)'; \
echo 'exec_prefix=$${prefix}'; \
echo 'libdir=$${exec_prefix}/lib'; \
echo 'includedir=$${prefix}/include'; \
echo ''; \
echo 'Name: $(PKG)'; \
echo 'Version: $($(PKG)_VERSION)'; \
echo 'Description: fast database lookup for DVDs'; \
echo 'Requires.private: openssl'; \
echo 'Libs: -L$${libdir} -ldvdetect -lws2_32'; \
echo 'Libs.private: -L$${libdir} -ltinyxml -lstdc++'; \
echo 'Cflags: -I$${includedir}'; \
) \
> '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc'
# create test binary
$(TARGET)-gcc \
-W -Wall -Werror \
'$(SOURCE_DIR)/examples/c/dvdinfo.c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`$(TARGET)-pkg-config libdvdetect --cflags --libs`
endef
|