Permalink
Browse files

* debian/rules was updated:

  - now uscan is used instead of direct using of wget and mv commands
  - used hardening flags in compiler options
  • Loading branch information...
1 parent 88dbf73 commit 7d71e50a997908d6dff78026cdce7cc34c0e5b1f @tehnick committed Jun 3, 2012
Showing with 13 additions and 7 deletions.
  1. +13 −7 debian/rules
View
@@ -8,20 +8,27 @@ ifeq (,$(NUMJOBS))
NUMJOBS = 1
endif
+CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
+CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
+LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
+
PACKAGE = q4wine
BUILDDIR = builddir
DEB_DH_INSTALL_SOURCEDIR = $(CURDIR)/debian/$(PACKAGE)
-CUR_VER = $(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
-
CMAKEOPTS = -DCMAKE_BUILD_TYPE=Release \
- -USE_GZIP=ON \
- -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_C_FLAGS="$(CFLAGS)" \
+ -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
+ -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)" \
+ -DCMAKE_MODULE_LINKER_FLAGS="$(LDFLAGS)" \
+ -DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)" \
-DLIBS_ENTRY_PATH=/usr/lib/q4wine/ \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -USE_GZIP=ON \
..
-
%:
dh $@ --parallel
@@ -48,7 +55,6 @@ override_dh_strip:
dh_strip
get-orig-source:
- wget -4 -c "http://sourceforge.net/projects/q4wine/files/q4wine/q4wine%20$(CUR_VER)/q4wine-$(CUR_VER).tar.bz2"
- mv -f "$(PACKAGE)-$(CUR_VER).tar.bz2" ../"$(PACKAGE)_$(CUR_VER).orig.tar.bz2"
+ uscan --noconf --verbose --force-download --rename --download-current-version --destdir=..
.PHONY: override_dh_makeshlibs

0 comments on commit 7d71e50

Please sign in to comment.