libv4l: mvoed to github
[packages.git] / libs / gupnp-av / Makefile
1 #
2 # Copyright (C) 2006-2012 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:=gupnp-av
11 PKG_VERSION:=0.12.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@GNOME/gupnp-av/0.12/
16 PKG_MD5SUM:=2d15a94d743720febb400b2cacde1cdc
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/nls.mk
20
21 TARGET_LDFLAGS+=\
22         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
23
24 define Package/libgupnp-av
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=Library for dealing with UPnP/AV profiles
28   URL:=http://www.gupnp.org/
29   DEPENDS:=+libgupnp
30 endef
31
32 define Package/libgupnp-av/description
33 GUPnP A/V is a small utility library that aims to ease the handling and
34 implementation of UPnP A/V profiles.
35 endef
36
37 define Build/Compile
38         $(MAKE) -C $(PKG_BUILD_DIR) \
39                 DESTDIR="$(PKG_INSTALL_DIR)" \
40                 all install
41 endef
42
43 define Build/InstallDev
44         $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/gupnp-av-1.0/libgupnp-av}
45
46         $(CP) \
47                 $(PKG_INSTALL_DIR)/usr/lib/libgupnp-av-1.0.{so*,la,a} \
48                 $(1)/usr/lib/
49
50         $(INSTALL_DATA) \
51                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
52                 $(1)/usr/lib/pkgconfig/
53
54         $(INSTALL_DATA) \
55                 $(PKG_INSTALL_DIR)/usr/include/gupnp-av-1.0/libgupnp-av/*.h \
56                 $(1)/usr/include/gupnp-av-1.0/libgupnp-av/
57 endef
58
59 define Package/libgupnp-av/install
60         $(INSTALL_DIR) $(1)/usr/lib
61         $(CP) \
62                 $(PKG_INSTALL_DIR)/usr/lib/libgupnp-av-1.0.so* \
63                 $(1)/usr/lib/
64 endef
65
66 $(eval $(call BuildPackage,libgupnp-av))