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
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libdlna
26 TITLE
:= Reference DLNA implementation
27 URL
:=http
://libdlna.geexbox.org
/
31 define Package
/libdlna
/description
32 libdlna aims at being the reference open-source implementation of DLNA
33 (Digital Living Network Alliance
) standards. Its primary goal is to
34 provide DLNA support to uShare
, an embedded DLNA
& UPnP A
/V Media Server
,
35 but it will be used to build both DLNA servers and players in the long
39 define Build
/Configure
40 # this is *NOT* GNU configure
41 ( cd
$(PKG_BUILD_DIR
); \
42 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
43 LDFLAGS
="$(TARGET_LDFLAGS) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -lpthread" \
47 --cross-prefix
=$(TARGET_CROSS
) \
57 # XXX: fix build on systems where install is not at its usual location
58 # INSTALL defaults to /usr/bin/install
59 MAKE_INSTALL_FLAGS
+= \
62 TARGET_CFLAGS
+= $(FPIC
)
64 define Build
/InstallDev
65 $(INSTALL_DIR
) $(1)/usr
/include
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/dlna.h
$(1)/usr
/include/
67 $(INSTALL_DIR
) $(1)/usr
/lib
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdlna.
{a
,so
*} $(1)/usr
/lib
/
69 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libdlna.
pc $(1)/usr
/lib
/pkgconfig
/
73 define Package
/libdlna
/install
74 $(INSTALL_DIR
) $(1)/usr
/lib
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdlna.so.
* $(1)/usr
/lib
/
78 $(eval
$(call BuildPackage
,libdlna
))