b5a5d27129ced99a7b9ea8889b992a2a6a0071e2
[openwrt/svn-archive/archive.git] / libs / libdmapsharing / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # This Makefile is a skeleton
8 #
9
10 include $(TOPDIR)/rules.mk
11
12 PKG_NAME:=libdmapsharing
13 PKG_VERSION:=2.1.6
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=libdmapsharing-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://www.flyn.org/projects/libdmapsharing/
18 PKG_MD5SUM:=ad54ac6b97d5b9d629e84a35ef75ad34
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/libdmapsharing-$(PKG_VERSION)
21
22 PKG_FIXUP:=libtool
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 TARGET_CFLAGS+= \
28 -I$(STAGING_DIR)/usr/lib/libintl/include
29
30 TARGET_LDFLAGS+= \
31 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
32 -L$(STAGING_DIR)/usr/lib/libintl/lib
33
34 define Package/libdmapsharing
35 SECTION:=libs
36 CATAGORY:=Libraries
37 DEPENDS:=+libsoup +mdnsresponder +gstreamer
38 TITLE:=libdmapsharing
39 URL:=http://www.flyn.org/projects/libdmapsharing/
40 MAINTAINER:=W. Michael Petullo <mike@flyn.org>
41 endef
42
43 define Package/libdmapsharing/decription
44 Libdmapsharing is a DMAP library implementation in C
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include/
49 $(CP) \
50 $(PKG_INSTALL_DIR)/usr/include/libdmapsharing-2.2/ \
51 $(1)/usr/include/
52 $(INSTALL_DIR) $(1)/usr/lib/
53 $(CP) \
54 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
55 $(1)/usr/lib/
56 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
57 $(INSTALL_DATA) \
58 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
59 $(1)/usr/lib/pkgconfig/
60 endef
61
62 define Package/libdmapsharing/install
63 $(INSTALL_DIR) $(1)/usr/lib/
64 $(CP) \
65 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
66 $(1)/usr/lib/
67 endef
68
69 $(eval $(call BuildPackage,libdmapsharing))