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
>
11 PKG_CPE_ID
:=cpe
:/a
:portable_sdk_for_upnp_project
:portable_sdk_for_upnp
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/libupnp
/Default
22 URL
:=http
://pupnp.sourceforge.net
/
25 define Package
/libupnp
26 $(call Package
/libupnp
/Default
)
28 TITLE
:=UPnP SDK library
32 define Package
/libupnp
/description
33 The portable SDK for UPnP Devices
(libupnp
) provides developers with an API and
34 open source code for building control points
, devices
, and bridges that are
35 compliant with Version
1.0 of the Universal Plug and Play Device Architecture
39 define Package
/libupnp-sample
40 $(call Package
/libupnp
/Default
)
42 TITLE
:=UPnP sample applications
45 define Package
/libupnp-sample
/description
46 TVcontrolpoint
& tvdevice sample applications run inside
/etc
/upnp-tvdevice
/
49 TARGET_CFLAGS
+= -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS
=64 -flto
50 TARGET_LDFLAGS
+= -flto
52 CONFIGURE_VARS
+= ac_cv_lib_compat_ftime
=no
54 define Build
/InstallDev
55 $(INSTALL_DIR
) $(1)/usr
/include
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/upnp
$(1)/usr
/include/
57 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,upnp
}.
{a
,so
*,la
} $(1)/usr
/lib
/
59 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libupnp.
pc $(1)/usr
/lib
/pkgconfig
/
63 define Package
/libupnp
/install
64 $(INSTALL_DIR
) $(1)/usr
/lib
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ixml
,upnp
}.so.
* $(1)/usr
/lib
/
68 define Package
/libupnp-sample
/install
69 $(INSTALL_DIR
) $(1)/usr
/bin
70 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/upnp
/sample
/.libs
/* $(1)/usr
/bin
71 $(INSTALL_DIR
) $(1)/etc
/upnp-tvdevice
/web
72 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/upnp
/sample
/web
/* $(1)/etc
/upnp-tvdevice
75 $(eval
$(call BuildPackage
,libupnp
))
76 $(eval
$(call BuildPackage
,libupnp-sample
))