diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index 0d8e27f7..fa699795 100755 --- a/debian/rules +++ b/debian/rules @@ -7,6 +7,7 @@ export DEB_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) else export DEB_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH) endif +export VERSION:=1.12.0 export DEB_CMAKE_EXTRA_FLAGS += -DFLATBUFFERS_INSTALL=ON \ -DFLATBUFFERS_BUILD_SHAREDLIB=ON \ @@ -22,5 +23,9 @@ export DEB_CMAKE_EXTRA_FLAGS += -DFLATBUFFERS_INSTALL=ON \ override_dh_auto_configure: dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS) - - +override_dh_auto_install: + dh_auto_install -- + install -D -m 644 packaging/flatbuffers.pc.in debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/flatbuffers.pc + sed -i 's#@version@#$(VERSION)#g' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/flatbuffers.pc + sed -i 's#@libdir@#/usr/lib/$(DEB_HOST_MULTIARCH)#g' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/flatbuffers.pc + sed -i 's#@includedir@#/usr/include#g' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/flatbuffers.pc |