2 # Copyright (C) 2006-2009 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
:=2c974f95b711e5fd07f78fc4ebfcca66
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/libdlna
25 TITLE
:= Reference DLNA implementation
26 URL
:=http
://libdlna.geexbox.org
/
27 DEPENDS
:=+libffmpeg
+@FFMPEG_LIBDLNA_SUPPORT
30 define Package
/libdlna
/description
31 libdlna aims at being the reference open-source implementation of DLNA
32 (Digital Living Network Alliance
) standards. Its primary goal is to
33 provide DLNA support to uShare
, an embedded DLNA
& UPnP A
/V Media Server
,
34 but it will be used to build both DLNA servers and players in the long
38 define Build
/Configure
39 # this is *NOT* GNU configure
40 ( cd
$(PKG_BUILD_DIR
); \
41 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
42 LDFLAGS
="$(TARGET_LDFLAGS) -lpthread -lz" \
46 --cross-prefix
=$(TARGET_CROSS
) \
56 TARGET_CFLAGS
+= $(FPIC
)
58 define Build
/InstallDev
59 $(INSTALL_DIR
) $(1)/usr
/include
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/dlna.h
$(1)/usr
/include/
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdlna.
{a
,so
*} $(1)/usr
/lib
/
63 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libdlna.
pc $(1)/usr
/lib
/pkgconfig
/
67 define Package
/libdlna
/install
68 $(INSTALL_DIR
) $(1)/usr
/lib
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdlna.so.
* $(1)/usr
/lib
/
72 $(eval
$(call BuildPackage
,libdlna
))