Waldemar Brodkorb пре 9 година
родитељ
комит
c4c6356cd7
2 измењених фајлова са 13 додато и 1 уклоњено
  1. 3 1
      package/tinyxml/Makefile
  2. 10 0
      package/tinyxml/files/tinyxml.pc

+ 3 - 1
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

+ 10 - 0
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}