1 ################################################################################
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
27 RTMPDUMP_CFLAGS
= $(TARGET_CFLAGS
)
29 ifneq ($(BR2_STATIC_LIBS
),y
)
30 RTMPDUMP_CFLAGS
+= -fPIC
32 RTMPDUMP_SHARED
= "SHARED="
35 RTMPDUMP_MAKE_FLAGS
= \
36 CRYPTO
=$(RTMPDUMP_CRYPTO
) \
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)" \
48 define RTMPDUMP_INSTALL_STAGING_CMDS
49 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)/librtmp
install DESTDIR
=$(STAGING_DIR
) $(RTMPDUMP_MAKE_FLAGS
)
52 define RTMPDUMP_INSTALL_TARGET_CMDS
53 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)/librtmp
install DESTDIR
=$(TARGET_DIR
) $(RTMPDUMP_MAKE_FLAGS
)
56 $(eval
$(generic-package
))