LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File debian.rules of Package libqxt (Project home:mrs_kensington)

#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
#DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
#DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
#ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
#CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
#else
#CROSS= --build $(DEB_BUILD_GNU_TYPE)
#endif

# shared library versions, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
version=`ls lib/lib*.so.* | \
 awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
major=`ls lib/lib*.so.* | \
 awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`

config.status: configure
	dh_testdir
	./configure -prefix "/usr" \
		-bindir "/usr/bin" \
		-libdir "/usr/lib" \
		-docdir "/usr/share/qxt/doc" \
		-headerdir "/usr/include/qxt" \
		-featuredir "/usr/share/qt4/mkspecs/features"

build: build-stamp
build-stamp:  config.status 
	dh_testdir
	$(MAKE)
	$(MAKE) docs
	touch $@

clean: 
	dh_testdir
	dh_testroot
	rm -f build-stamp 
	[ ! -f Makefile ] || $(MAKE) distclean
	rm -f config.sub config.guess \
		.qmake.cache .qmake.cache.bak \
		config.log config.log.bak \
		qxtvars.prf qxtvars.prf.bak \
		doc/html/images/*.png doc/qch/*.qch \
		lib/libQxtDesignerPlugins.so
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep  
	dh_installdirs
	$(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/tmp/

# Build architecture-independent files here.
binary-indep: install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: install
	dh_testdir
	dh_testroot
	dh_installchangelogs CHANGES
	dh_installdocs
	dh_installexamples
	dh_install
#	dh_installmenu
#	dh_installdebconf
#	dh_installlogrotate
#	dh_installemacsen
#	dh_installpam
#	dh_installmime
#	dh_installinit
#	dh_installcron
#	dh_installinfo
	dh_installman
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
#	dh_perl
#	dh_python
	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

override_dh_makeshlibs:
        # Specific shlibs version (e.g.: 0.6.1)
        $(foreach pkg,$(pkgs_lib),dh_makeshlibs -p$(pkg) -V '$(pkg) (>= $(shlibs_version))';)
        # Generate shlibs local files
        for pkg in $(pkgs_lib); do \
                if test -e debian/$${pkg}/DEBIAN/shlibs ; then \
                        sed 's/>=[^)]*/= $(current_version)/' debian/$${pkg}/DEBIAN/shlibs >> debian/shlibs.local ;\
                fi \
        done

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install