2 # Copyright (C) 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
://ushare.geexbox.org
/releases
/
17 PKG_MD5SUM
:=5bbcdbf1ff85a9710fa3d4e82ccaa251
19 include $(INCLUDE_DIR
)/package.mk
24 TITLE
:= UPnP A
/V
& DLNA Media Server
25 URL
:=http
://ushare.geexbox.org
/
26 DEPENDS
:=+libdlna
+libupnp
29 define Package
/ushare
/description
30 uShare is a UPnP
(TM
) A
/V
& DLNA Media Server. It implements the server
31 component that provides UPnP media devices with information on available
35 define Build
/Configure
36 # this is *NOT* GNU configure
37 ( cd
$(PKG_BUILD_DIR
); \
38 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
39 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -lfaad -lpthread -lavcodec -lavformat -lavutil -lz" \
40 PKG_CONFIG_PATH
="$(STAGING_DIR)/usr/lib/pkgconfig" \
41 PKG_CONFIG_LIBDIR
="$(STAGING_DIR)/usr/lib/pkgconfig" \
44 --cross-prefix
="$(TARGET_CROSS)" \
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
57 DESTDIR
="$(PKG_INSTALL_DIR)" \
61 define Package
/ushare
/conffiles
65 define Package
/ushare
/install
66 $(INSTALL_DIR
) $(1)/etc
67 $(CP
) $(PKG_INSTALL_DIR
)/etc
/ushare.conf
$(1)/etc
/
68 $(INSTALL_DIR
) $(1)/usr
/bin
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/ushare
$(1)/usr
/bin
/
72 $(eval
$(call BuildPackage
,ushare
))