| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DEB_CFLAGS_MAINT_APPENDscip-makefile . . . DEB_CFLAGS_MAINT_APPEND. += -I../nss/dist/private/nss |
| 4 | export DEB_LDFLAGS_MAINT_APPENDscip-makefile . . . DEB_LDFLAGS_MAINT_APPEND. += -L../nss/dist/lib/ |
| 5 | |
| 6 | ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
| 7 | NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
| 8 | MAKEFLAGS += -j$(NUMJOBS) |
| 9 | endif |
| 10 | |
| 11 | %scip-makefile . . . `%`/: |
| 12 | dh $@scip-makefile . . . `@`. --builddirectory=build/ |
| 13 | |
| 14 | override_dh_auto_configurescip-makefile . . . override_dh_auto_configure/: |
| 15 | dh_auto_configure --sourcedirectory=src -- \ |
| 16 | -DCMAKE_INSTALL_PREFIX=/usr \ |
| 17 | -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ |
| 18 | -DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)/nss |
| 19 | |
| 20 | override_dh_auto_buildscip-makefile . . . override_dh_auto_build/: |
| 21 | (cd nss; QUILT_PATCHES=debian/patches quilt push -a; MAKEFLAGS="$(MAKEFLAGSscip-makefile . . . MAKEFLAGS.)" debian/rules build) |
| 22 | dh_auto_build |
| 23 | |
| 24 | override_dh_cleanscip-makefile . . . override_dh_clean/: |
| 25 | (cd nss; debian/rules clean) |
| 26 | dh_clean |
| 27 | |
| 28 | gentarballscip-makefile . . . gentarball/: SOURCE=nss-pem |
| 29 | gentarballscip-makefile . . . gentarball/: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//') |
| 30 | gentarballscip-makefile . . . gentarball/: |
| 31 | tar --transform 's,^,$(SOURCE)-$(UV)/,' \ |
| 32 | --exclude './debian' --exclude-vcs \ |
| 33 | -cJf ../$(SOURCE)_$(UV).orig.tar.xz . |