[SCM] rem/master: Manually build and install package

vasudev-guest at users.alioth.debian.org vasudev-guest at users.alioth.debian.org
Fri Jan 15 14:55:43 UTC 2016


The following commit has been merged in the master branch:
commit 4f09b45803d99f6b9607107d115dca2dde77ad6e
Author: Vasudev Kamath <kamathvasudev at gmail.com>
Date:   Fri Jan 15 20:24:15 2016 +0530

    Manually build and install package
    
    We can't use at the moment makefile.mk due to CFLAGS override happening
    due to way CDBS invokes make.

diff --git a/debian/rules b/debian/rules
index 635bad9..c8f6f97 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,7 +33,26 @@ DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(docs/images/.*\.png|debian/(changelog|compa
 
 
 # Build depends
-CDBS_BUILD_DEPENDS +=, d-shlibs, libre-dev, libssl-dev,
+CDBS_BUILD_DEPENDS +=, d-shlibs, libre-dev, libssl-dev, zlib1g-dev
+
+# LIBDIR for installation
+LIBDIR=/usr/lib/
+
+common-build-arch common-build-indep:: build_rem_package
+build_rem_package:
+	make info all RELEASE=1 \
+		USE_OPENSSL=1 \
+		USE_ZLIB=1 \
+		EXTRA_CFLAGS=$(EXTRA_CFLAGS) \
+		EXTRA_LFLAGS=$(EXTRA_LFLAGS) \
+		LIB_SUFFIX=.so.0
+
+common-install-arch common-install-indep:: install_rem_package
+install_rem_package:
+	make install DESTDIR=debian/tmp \
+		LIBDIR=$(LIBDIR) \
+		LIB_SUFFIX=.so.0
+	cd debian/tmp/$(LIBDIR) && ln -s -f librem.so.0 librem.so
 
 binary-post-install/$(pkg-lib) binary-post-install/$(pkg-dev):: \
  debian/stamp-local-shlibs-$(lib)

-- 
rem packaging



More information about the pkg-multimedia-commits mailing list