build-stamp: configure-stamp
dh_testdir
mkdir -p build
- cd build;cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr;$(MAKE)
- #
+ export PKG_CONFIG_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH)/pkgconfig;cd build;cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/opt/AGL -DCMAKE_INSTALL_LIBDIR:PATH=lib/$(DEB_HOST_MULTIARCH);$(MAKE)
touch build-stamp
clean:
dh_prep
dh_installdirs
# Add here commands to install the package into debian/tmp
- [ -d build ] && cd build;make install DESTDIR=/usr/src/packages/BUILD/debian/tmp
+ cd build;make install DESTDIR=/usr/src/packages/BUILD/debian/tmp
+ mkdir -p debian/tmp/etc/profile.d
+ echo '#---------- AGL app-framework-binder options Start ---------" ' > debian/tmp/etc/profile.d/AGL_app-framework-binder.sh
+ echo '# Object: AGL cmake option for binder/bindings' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh
+ echo 'export LD_LIBRARY_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH):$${LD_LIBRARY_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh
+ echo 'export LIBRARY_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH):$${LIBRARY_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh
+ echo 'export PKG_CONFIG_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH)/pkgconfig:$${PKG_CONFIG_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh
+ echo 'export PATH=/opt/AGL/bin:$${PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh
+ echo '#---------- AGL options End ---------' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh
# Move all files in their corresponding package
dh_install --list-missing -s --sourcedir=debian/tmp
# empty dependency_libs in .la files
dh_installexamples
dh_installman
dh_link
- #dh_strip
+ dh_strip
dh_compress
dh_fixperms
dh_makeshlibs -V
- #dh_installdeb
- dh_shlibdeps
+ dh_installdeb
+ #dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb