Revert "replace dependency of libffmpeg with libffmpeg-mini"
[packages.git] / libs / libdlna / Makefile
1 #
2 # Copyright (C) 2006-2013 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:=libdlna
11 PKG_VERSION:=0.2.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://libdlna.geexbox.org/releases/
16 PKG_MD5SUM:=64d7de57aff5a729f2434fc5e69b4ffc
17
18 PKG_LICENSE:=LGPLv2.1+
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_BUILD_PARALLEL:=1
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libdlna
27  SECTION:=libs
28  CATEGORY:=Libraries
29  TITLE:= Reference DLNA implementation
30  URL:=http://libdlna.geexbox.org/
31  DEPENDS:=+libffmpeg
32 endef
33
34 define Package/libdlna/description
35  libdlna aims at being the reference open-source implementation of DLNA
36  (Digital Living Network Alliance) standards. Its primary goal is to
37  provide DLNA support to uShare, an embedded DLNA & UPnP A/V Media Server,
38  but it will be used to build both DLNA servers and players in the long
39  term.
40 endef
41
42 define Build/Configure
43         # this is *NOT* GNU configure
44         ( cd $(PKG_BUILD_DIR); \
45                 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
46                 LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -lpthread" \
47                 HOST_CC="$(HOSTCC)" \
48                 ./configure \
49                 --cross-compile \
50                 --cross-prefix=$(TARGET_CROSS) \
51                 --prefix=/usr \
52                 --enable-shared \
53                 --enable-static \
54                 --disable-debug \
55                 --disable-optimize \
56                 --disable-strip \
57         )
58 endef
59
60 # XXX: fix build on systems where install is not at its usual location
61 # INSTALL defaults to /usr/bin/install
62 MAKE_INSTALL_FLAGS += \
63         INSTALL="install" \
64
65 TARGET_CFLAGS += $(FPIC)
66
67 define Build/InstallDev
68         $(INSTALL_DIR) $(1)/usr/include
69         $(CP) $(PKG_INSTALL_DIR)/usr/include/dlna.h $(1)/usr/include/
70         $(INSTALL_DIR) $(1)/usr/lib
71         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdlna.{a,so*} $(1)/usr/lib/
72         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
73         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libdlna.pc $(1)/usr/lib/pkgconfig/
74 endef
75
76 define Package/libdlna/install
77         $(INSTALL_DIR) $(1)/usr/lib
78         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdlna.so.* $(1)/usr/lib/
79 endef
80
81 $(eval $(call BuildPackage,libdlna))