3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=e72b3550bf064eedf080f16f09688891
10 PKG_SOURCE_URL
:=@SF
/upnp
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBUPNP
,libupnp
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
24 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
25 $(MAKE
) -C
$(PKG_BUILD_DIR
)/upnp \
26 $(TARGET_CONFIGURE_OPTS
) \
27 OPT_FLAGS
="$(TARGET_CFLAGS)" \
32 install -m0755
-d
$(IDIR_LIBUPNP
)/usr
/lib
33 $(CP
) $(PKG_BUILD_DIR
)/upnp
/bin
/libixml.so
$(IDIR_LIBUPNP
)/usr
/lib
/ ; \
34 $(CP
) $(PKG_BUILD_DIR
)/upnp
/bin
/libthreadutil.so
$(IDIR_LIBUPNP
)/usr
/lib
/ ; \
35 $(CP
) $(PKG_BUILD_DIR
)/upnp
/bin
/libupnp.so
$(IDIR_LIBUPNP
)/usr
/lib
/ ; \
36 $(RSTRIP
) $(IDIR_LIBUPNP
)
37 $(IPKG_BUILD
) $(IDIR_LIBUPNP
) $(PACKAGE_DIR
)
39 $(STAGING_DIR
)/usr
/lib
/libupnp.so
: $(PKG_BUILD_DIR
)/.built
40 mkdir
-p
$(STAGING_DIR
)/usr
/include/upnp
41 $(CP
) $(PKG_BUILD_DIR
)/upnp
/inc
/*.h
$(STAGING_DIR
)/usr
/include/upnp
/
42 mkdir
-p
$(STAGING_DIR
)/usr
/lib
43 $(CP
) $(PKG_BUILD_DIR
)/upnp
/bin
/libixml.so
$(STAGING_DIR
)/usr
/lib
/ ; \
44 $(CP
) $(PKG_BUILD_DIR
)/upnp
/bin
/libthreadutil.so
$(STAGING_DIR
)/usr
/lib
/ ; \
45 $(CP
) $(PKG_BUILD_DIR
)/upnp
/bin
/libupnp.so
$(STAGING_DIR
)/usr
/lib
/ ; \
48 install-dev
: $(STAGING_DIR
)/usr
/lib
/libupnp.so
52 $(STAGING_DIR
)/usr
/include/upnp \
53 $(STAGING_DIR
)/usr
/lib
/libixml.so \
54 $(STAGING_DIR
)/usr
/lib
/libthreadutil.so \
55 $(STAGING_DIR
)/usr
/lib
/libupnp.so \
57 compile-targets
: install-dev
58 clean-targets
: uninstall-dev