eigen: specifiy *.pc file install dir

fixes #2288
This commit is contained in:
Tony Theodore 2019-03-02 13:47:19 +11:00
parent 881e632b70
commit 7e3678193a
1 changed files with 5 additions and 0 deletions

View File

@ -18,9 +18,14 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# remove previous install
rm -rf "$(PREFIX)/$(TARGET)/*/eigen3"
rm -rf "$(PREFIX)/$(TARGET)/*/pkgconfig/eigen3.pc"
# build and install the library
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \
-DEIGEN_BUILD_PKGCONFIG=ON \
-DPKGCONFIG_INSTALL_DIR='$(PREFIX)/$(TARGET)/lib/pkgconfig' \
-DBUILD_TESTING=OFF
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' VERBOSE=1
$(MAKE) -C '$(BUILD_DIR)' -j 1 install