2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://libdlna.geexbox.org
/releases
/
17 PKG_MD5SUM
:=2c974f95b711e5fd07f78fc4ebfcca66
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/libdlna
24 TITLE
:= Reference DLNA implementation
25 URL
:=http
://libdlna.geexbox.org
/
29 define Package
/libdlna
/description
30 libdlna aims at being the reference open-source implementation of DLNA
31 (Digital Living Network Alliance
) standards. Its primary goal is to
32 provide DLNA support to uShare
, an embedded DLNA
& UPnP A
/V Media Server
,
33 but it will be used to build both DLNA servers and players in the long
37 define Build
/Configure
38 # this is *NOT* GNU configure
39 ( cd
$(PKG_BUILD_DIR
); \
40 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
41 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -lfaad -lpthread -lz" \
45 --cross-prefix
=$(TARGET_CROSS
) \
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
57 DESTDIR
="$(PKG_INSTALL_DIR)" \
61 define Build
/InstallDev
62 $(INSTALL_DIR
) $(1)/usr
/include
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/dlna.h
$(1)/usr
/include/
64 $(INSTALL_DIR
) $(1)/usr
/lib
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdlna.
{a
,so
*} $(1)/usr
/lib
/
66 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libdlna.
pc $(1)/usr
/lib
/pkgconfig
/
70 define Package
/libdlna
/install
71 $(INSTALL_DIR
) $(1)/usr
/lib
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdlna.so.
* $(1)/usr
/lib
/
75 $(eval
$(call BuildPackage
,libdlna
))