Skip to content

Commit

Permalink
fix libpisp configuration path (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored Sep 6, 2024
1 parent 91c1778 commit d7d3b8d
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 4 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
!/subprojects/freetype.wrap
!/subprojects/libcamera.wrap
!/subprojects/x264.wrap
!/subprojects/libpisp.wrap
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
!/subprojects/freetype.wrap
!/subprojects/libcamera.wrap
!/subprojects/x264.wrap
!/subprojects/libpisp.wrap
1 change: 1 addition & 0 deletions post_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if [ -f ${DESTDIR}/${MESON_INSTALL_PREFIX}/lib/libcamera.so.9.9 ]; then
cp -r ${DESTDIR}/${MESON_INSTALL_PREFIX}/lib/libcamera $OUT_DIR/ipa_module
cp ${DESTDIR}/${MESON_INSTALL_PREFIX}/lib/libcamera-base.so.9.9 $OUT_DIR/
cp ${DESTDIR}/${MESON_INSTALL_PREFIX}/lib/libcamera.so.9.9 $OUT_DIR/
cp -r ${DESTDIR}/${MESON_INSTALL_PREFIX}/share/libpisp $OUT_DIR/libpisp
fi

cp ${DESTDIR}/${MESON_INSTALL_PREFIX}/bin/mtxrpicam $OUT_DIR/
3 changes: 1 addition & 2 deletions subprojects/freetype.wrap
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[wrap-git]
url = https://github.com/freetype/freetype
# VER-2-11-1
revision = 3f83daeecb1a78d851b660eed025eeba362c0e4a
revision = VER-2-11-1
3 changes: 1 addition & 2 deletions subprojects/libcamera.wrap
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[wrap-git]
url = https://github.com/raspberrypi/libcamera
# v0.3.0+rpt20240617
revision = 6ddd79b5bdbedc1f61007aed35391f1559f9e29a
revision = v0.3.0+rpt20240617
diff_files = libcamera.patch
5 changes: 5 additions & 0 deletions subprojects/libpisp.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[wrap-git]
url = https://github.com/raspberrypi/libpisp.git
# this must be aligned with version inside libcamera
revision = v1.0.6
diff_files = libpisp.patch
13 changes: 13 additions & 0 deletions subprojects/packagefiles/libpisp.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/libpisp/backend/meson.build b/src/libpisp/backend/meson.build
index e29e1a3..10ce7ac 100644
--- a/src/libpisp/backend/meson.build
+++ b/src/libpisp/backend/meson.build
@@ -4,7 +4,7 @@
config_install_dir = get_option('prefix') / get_option('datadir') / 'libpisp'

conf_data = configuration_data()
-conf_data.set('PISP_BE_CONFIG_DIR', '"' + config_install_dir + '"')
+conf_data.set('PISP_BE_CONFIG_DIR', '"./libpisp"')
pisp_build_config = configure_file(output : 'pisp_build_config.h', configuration : conf_data)

backend_sources = files([

0 comments on commit d7d3b8d

Please sign in to comment.