2 # Copyright (C) 2006-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://libdlna.geexbox.org
/releases
/
16 PKG_MD5SUM
:=64d7de57aff5a729f2434fc5e69b4ffc
18 PKG_LICENSE
:=LGPLv2.1
+
19 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/libdlna
29 TITLE
:= Reference DLNA implementation
30 URL
:=http
://libdlna.geexbox.org
/
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
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" \
50 --cross-prefix
=$(TARGET_CROSS
) \
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
+= \
65 TARGET_CFLAGS
+= $(FPIC
)
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
/
76 define Package
/libdlna
/install
77 $(INSTALL_DIR
) $(1)/usr
/lib
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdlna.so.
* $(1)/usr
/lib
/
81 $(eval
$(call BuildPackage
,libdlna
))