git: fix build with with no threads
[buildroot-gz.git] / package / rtmpdump / rtmpdump.mk
blob2e3428f15e1640eafb2ff847d77ea665baa470c4
1 ################################################################################
3 # rtmpdump
5 ################################################################################
7 RTMPDUMP_VERSION = a107cef9b392616dff54fabfd37f985ee2190a6f
8 RTMPDUMP_SITE = git://git.ffmpeg.org/rtmpdump
9 RTMPDUMP_INSTALL_STAGING = YES
10 # Note that rtmpdump is GPLv2 but librtmp has its own license and since we only
11 # care about librtmp, it's LGPLv2.1+
12 RTMPDUMP_LICENSE = LGPLv2.1+
13 RTMPDUMP_LICENSE_FILES = librtmp/COPYING
14 RTMPDUMP_DEPENDENCIES = zlib
16 ifeq ($(BR2_PACKAGE_GNUTLS),y)
17 RTMPDUMP_DEPENDENCIES += gnutls
18 RTMPDUMP_CRYPTO = GNUTLS
19 else ifeq ($(BR2_PACKAGE_OPENSSL),y)
20 RTMPDUMP_DEPENDENCIES += openssl
21 RTMPDUMP_CRYPTO = OPENSSL
22 else
23 # no crypto
24 RTMPDUMP_CRYPTO =
25 endif
27 RTMPDUMP_CFLAGS = $(TARGET_CFLAGS)
29 ifneq ($(BR2_STATIC_LIBS),y)
30 RTMPDUMP_CFLAGS += -fPIC
31 else
32 RTMPDUMP_SHARED = "SHARED="
33 endif
35 RTMPDUMP_MAKE_FLAGS = \
36 CRYPTO=$(RTMPDUMP_CRYPTO) \
37 prefix=/usr \
38 $(RTMPDUMP_SHARED)
40 define RTMPDUMP_BUILD_CMDS
41 $(TARGET_MAKE_ENV) $(MAKE) $(RTMPDUMP_MAKE_FLAGS) \
42 XCFLAGS="$(RTMPDUMP_CFLAGS)" \
43 XLDFLAGS="$(TARGET_LDFLAGS)" \
44 CROSS_COMPILE="$(TARGET_CROSS)" \
45 -C $(@D)/librtmp
46 endef
48 define RTMPDUMP_INSTALL_STAGING_CMDS
49 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/librtmp install DESTDIR=$(STAGING_DIR) $(RTMPDUMP_MAKE_FLAGS)
50 endef
52 define RTMPDUMP_INSTALL_TARGET_CMDS
53 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/librtmp install DESTDIR=$(TARGET_DIR) $(RTMPDUMP_MAKE_FLAGS)
54 endef
56 $(eval $(generic-package))