1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/buildflags.mk
ifeq ("$(DEB_HOST_ARCH_CPU)","ppc64el")
CFLAGS=-mno-altivec -mno-vsx
CXXFLAGS=-mno-altivec -mno-vsx
endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
-DSYSTEM_STK=on \
-DSC_PATH=/usr/include/SuperCollider \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
# Remove unwanted license file installed by default. Easier to do it
# here than to rewrite the 'install every file in all sc/ directories'
# rule in source/CMakeLists.txt.
DESTDIR = debian/tmp
override_dh_auto_install:
dh_auto_install
$(RM) $(DESTDIR)/usr/share/SuperCollider/Extensions/SC3plugins/ATK/LICENSE
# Upstream commit ID for the version we want to import.
COMMIT=cd37e2f09d84085c0c72a5016310574d7e8d6d53
get-orig-source:
TMPDIR=`mktemp -d` && \
NAME="supercollider-sc3-plugins" && \
REPO="$$TMPDIR/$$NAME" && \
git clone https://github.com/supercollider/sc3-plugins $$REPO && \
UPSTREAM_TAG=`git --git-dir="$$REPO/.git" describe --tags --abbrev=0 $(COMMIT)` && \
UPSTREAM_VER=`echo $$UPSTREAM_TAG | sed -e 's/^Version-//' -e 's/-/~/'` && \
CTAG=`git --git-dir="$$REPO/.git" rev-list -1 $$UPSTREAM_TAG` && \
SOURCE_VER=$$UPSTREAM_VER && \
if [ "$$CTAG" != "$(COMMIT)" ]; then \
CDATE=`git --git-dir="$$REPO/.git" show --format=format:%ci -s $(COMMIT) | awk '{ gsub(/-/,""); print $$1 }'` ; \
CSHORT=`git --git-dir="$$REPO/.git" show --format=format:%h -s $(COMMIT)` ; \
SOURCE_VER=$$SOURCE_VER+git$$CDATE.$$CSHORT ; \
fi && \
SOURCE_VER=$$SOURCE_VER~repack && \
TXZ=$$NAME\_$$SOURCE_VER.orig.tar.xz; \
( \
cd $$REPO && \
git checkout $(COMMIT) && \
git submodule init && \
git submodule update external_libraries/nova-simd && \
rm -rf submodule external_libraries/stk && \
cd .. && \
tar --exclude=".*" -cJf $$REPO.tar.xz $$NAME \
) && \
echo "=============================" && \
mv $$REPO.tar.xz ../$$TXZ && \
rm -rf $$TMPDIR && \
echo; echo 'The next step is to import the source into git.'; echo; \
printf " gbp import-orig --pristine-tar \\\\\\n --upstream-version="$$SOURCE_VER" \\\\\\n ../$$TXZ\n"
|