install bluez.pc pkg-config file (closes: #2238)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@8440 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2007-08-20 08:33:10 +00:00
parent 73171e6c5c
commit cfc2304dc7

View File

@ -47,12 +47,17 @@ define Build/InstallDev
$(CP) $(PKG_INSTALL_DIR)/usr/include/bluetooth/*.h $(STAGING_DIR)/usr/include/bluetooth
mkdir -p $(STAGING_DIR)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.{a,so*} $(STAGING_DIR)/usr/lib/
mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/bluez.pc $(STAGING_DIR)/usr/lib/pkgconfig/
$(SED) 's,-I$$$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/bluez.pc
$(SED) 's,-L$$$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/bluez.pc
endef
define Build/UninstallDev
rm -rf \
$(STAGING_DIR)/usr/include/bluetooth \
$(STAGING_DIR)/usr/lib/libbluetooth.{a,so*}
$(STAGING_DIR)/usr/lib/libbluetooth.{a,so*} \
$(STAGING_DIR)/usr/lib/pkgconfig/bluez.pc
endef
define Package/bluez-libs/install