[packages] add hasciicam, a tool to stream live ascii video feeds
[openwrt/svn-archive/archive.git] / multimedia / gstreamer / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gstreamer
11 PKG_VERSION:=0.10.21
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/
16 PKG_MD5SUM:=7bad90af3fd81a1535363cf85359125c
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 export PATH:=$(PKG_BUILD_DIR)/bin:$(TARGET_PATH)
22
23 PKG_INSTALL=1
24
25 EXTRA_CFLAGS+= \
26 -I$(STAGING_DIR)/usr/lib/libintl/include \
27 -I$(STAGING_DIR)/usr/lib/libiconv/include
28
29 EXTRA_LDFLAGS+= \
30 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
31 -L$(STAGING_DIR)/usr/lib/libintl/lib \
32 -L$(STAGING_DIR)/usr/lib/libiconv/lib
33
34 define Package/gstreamer
35 SECTION:=multimedia
36 CATEGORY:=Multimedia
37 TITLE:=gstreamer
38 URL:=http://gstreamer.freedesktop.org/
39 DEPENDS:=+libxml2 +glib2
40 endef
41
42 define Package/gstreamer/description
43 A framework for streaming media.
44 endef
45
46 define Build/Configure
47 $(call Build/Configure/Default,\
48 --disable-tests \
49 --disable-examples \
50 )
51 mkdir -p $(PKG_BUILD_DIR)/bin
52 touch $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
53 chmod +x $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
54 endef
55
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include/
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/include/* \
60 $(1)/usr/include/
61
62 $(INSTALL_DIR) $(1)/usr/lib/
63 $(CP) \
64 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
65 $(1)/usr/lib/
66
67 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10/
68 $(CP) \
69 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.{so*,a,la} \
70 $(1)/usr/lib/gstreamer-0.10
71
72 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
73 $(INSTALL_DATA) \
74 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
75 $(1)/usr/lib/pkgconfig/
76
77 $(INSTALL_DIR) $(2)/share/aclocal/
78 $(INSTALL_DATA) \
79 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
80 $(2)/share/aclocal/
81 endef
82
83 define Package/gstreamer/install
84 $(INSTALL_DIR) $(1)/usr/bin
85 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
86
87 $(INSTALL_DIR) $(1)/usr/lib/
88 $(CP) \
89 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
90 $(1)/usr/lib/
91
92 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10/
93 $(CP) \
94 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/*.so* \
95 $(1)/usr/lib/gstreamer-0.10
96 endef
97
98 $(eval $(call BuildPackage,gstreamer))