summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/tinyxml/Makefile4
-rw-r--r--package/tinyxml/files/tinyxml.pc10
2 files changed, 13 insertions, 1 deletions
diff --git a/package/tinyxml/Makefile b/package/tinyxml/Makefile
index 1e124faba..692f51343 100644
--- a/package/tinyxml/Makefile
+++ b/package/tinyxml/Makefile
@@ -25,10 +25,12 @@ CONFIG_STYLE:= manual
INSTALL_STYLE:= manual
tinyxml-install:
- $(INSTALL_DIR) $(IDIR_TINYXML)/usr/lib
+ $(INSTALL_DIR) $(IDIR_TINYXML)/usr/lib/
$(CP) $(WRKBUILD)/libtinyxml*.so* \
$(IDIR_TINYXML)/usr/lib
$(INSTALL_DATA) $(WRKBUILD)/tiny{str,xml}.h \
$(STAGING_TARGET_DIR)/usr/include
+ $(INSTALL_DATA) ./files/tinyxml.pc \
+ $(STAGING_TARGET_DIR)/usr/lib/pkgconfig
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/tinyxml/files/tinyxml.pc b/package/tinyxml/files/tinyxml.pc
new file mode 100644
index 000000000..684b090cd
--- /dev/null
+++ b/package/tinyxml/files/tinyxml.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: TinyXml
+Description: simple, small, C++ XML parser
+Version: 2.6.2
+Libs: -L${libdir} -ltinyxml
+Cflags: -I${includedir}