1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
8 PKG_SOURCE_URL
:=@SF
/pupnp
9 PKG_HASH
:=188d3f786d92fe14191f17634d2d87847eee7d2b568a5257ea23262fec9973d6
10 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/libupnp
/Default
21 URL
:=http
://pupnp.sourceforge.net
/
24 define Package
/libupnp
25 $(call Package
/libupnp
/Default
)
27 TITLE
:=UPnP SDK library
31 define Package
/libupnp
/description
32 The portable SDK for UPnP Devices
(libupnp
) provides developers with an API and
33 open source code for building control points
, devices
, and bridges that are
34 compliant with Version
1.0 of the Universal Plug and Play Device Architecture
38 define Package
/libupnp-sample
39 $(call Package
/libupnp
/Default
)
41 TITLE
:=UPnP sample applications
44 define Package
/libupnp-sample
/description
45 TVcontrolpoint
& tvdevice sample applications run inside
/etc
/upnp-tvdevice
/
48 TARGET_CFLAGS
+= -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS
=64 -flto
49 TARGET_LDFLAGS
+= -flto
51 CONFIGURE_VARS
+= ac_cv_lib_compat_ftime
=no
53 define Build
/InstallDev
54 $(INSTALL_DIR
) $(1)/usr
/include
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/upnp
$(1)/usr
/include/
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,upnp
}.
{a
,so
*,la
} $(1)/usr
/lib
/
58 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libupnp.
pc $(1)/usr
/lib
/pkgconfig
/
62 define Package
/libupnp
/install
63 $(INSTALL_DIR
) $(1)/usr
/lib
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,upnp
}.so.
* $(1)/usr
/lib
/
67 define Package
/libupnp-sample
/install
68 $(INSTALL_DIR
) $(1)/usr
/bin
69 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/upnp
/sample
/.libs
/* $(1)/usr
/bin
70 $(INSTALL_DIR
) $(1)/etc
/upnp-tvdevice
/web
71 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/upnp
/sample
/web
/* $(1)/etc
/upnp-tvdevice
74 $(eval
$(call BuildPackage
,libupnp
))
75 $(eval
$(call BuildPackage
,libupnp-sample
))