Ticket #13486: Makefile

File Makefile, 1.3 KB (added by slavb18@…, 5 years ago)

makefile (multimedia/rtmpdump/Makefile)

Line 
1VERSION=v2.4
2include $(TOPDIR)/rules.mk
3PKG_NAME:=rtmpdump
4PKG_VERSION:=2.4
5PKG_RELEASE:=1
6
7PKG_SOURCE_PROTO:=git
8PKG_SOURCE_URL:=git://git.ffmpeg.org/rtmpdump
9PKG_SOURCE_VERSION:=df6c51884243ef2bd12931e6c617b2be7520ca26
10PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12PKG_BUILD_DIR:=$(BUILD_DIR)/rtmpdump-2.4
13
14PKG_BUILD_DEPENDS:= +libopenssl
15PKG_BUILD_PARALLEL:=0
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/rtmpdump
20  SECTION:=multimedia
21  CATEGORY:=Multimedia
22  TITLE:=A toolkit for RTMP streams
23  URL:=http://rtmpdump.mplayerhq.hu/
24  DEPENDS:=+libopenssl +libpthread
25endef
26
27define Package/rtmpdump/description
28rtmpdump is a toolkit for RTMP streams. All forms of RTMP
29are supported, including rtmp://, rtmpt://, rtmpe://,
30rtmpte://, and rtmps://.
31endef
32
33TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib
34TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
35
36define Package/rtmpdump/install
37        $(INSTALL_DIR) $(1)/usr/bin
38        $(INSTALL_BIN) $(PKG_BUILD_DIR)/rtmpdump $(1)/usr/bin/
39        $(INSTALL_BIN) $(PKG_BUILD_DIR)/rtmpgw $(1)/usr/bin/
40        $(INSTALL_BIN) $(PKG_BUILD_DIR)/rtmpsrv $(1)/usr/bin/
41        $(INSTALL_BIN) $(PKG_BUILD_DIR)/rtmpsuck $(1)/usr/bin/
42       
43        $(INSTALL_DIR) $(1)/usr/lib
44        $(CP) $(PKG_BUILD_DIR)/librtmp/librtmp.so* $(1)/usr/lib/
45endef
46
47$(eval $(call BuildPackage,rtmpdump))