IF(LIB_INSTALL_DIR)
ELSE(LIB_INSTALL_DIR)
- SET(LIB_INSTALL_DIR "${PREFIX}/lib")
+ SET(LIB_INSTALL_DIR "${PREFIX}/${CMAKE_INSTALL_LIBDIR}")
ENDIF(LIB_INSTALL_DIR)
IF(GST_INSTALL_DIR)
ELSE(GST_INSTALL_DIR)
- SET(GST_INSTALL_DIR "${PREFIX}/lib/gstreamer-1.0")
+ SET(GST_INSTALL_DIR "${LIB_INSTALL_DIR}/gstreamer-1.0")
ENDIF(GST_INSTALL_DIR)
FIND_PACKAGE(PkgConfig REQUIRED)
Package: nnstreamer
Architecture: any
+Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: NNStreamer plugins for Gstreamer
Gstreamer plugins, "NNStreamer", provides access to nerual network frameworks for media streams
Package: nnstreamer-dev
Architecture: any
+Multi-Arch: same
Depends: nnstreamer
Description: NNStreamer development package
Gstreamer plugins, "NNStreamer", provides access to nerual network frameworks for media streams
/usr/include/nnstreamer/*.h
-/usr/lib/pkgconfig/*.pc
-/usr/lib/libnnstreamer.a
-/usr/lib/libtensor_filter*.a
+/usr/lib/*/pkgconfig/*.pc
+/usr/lib/*/libnnstreamer.a
+/usr/lib/*/libtensor_filter*.a
-/usr/lib/libtensor_filter_tflitecore.so
-/usr/lib/gstreamer-1.0/*.so
+/usr/lib/*/libtensor_filter_tflitecore.so
+/usr/lib/*/gstreamer-1.0/*.so
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
%:
dh $@ --buildsystem=cmake --builddirectory=build --parallel
+
+NNS_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH)
+
+override_dh_auto_configure:
+ dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR=$(NNS_INSTALL_LIBDIR)