~n-muench/+junk/podofo

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Nate Muench
  • Date: 2011-05-11 00:19:16 UTC
  • Revision ID: nowiwilldestroyabydos@gmail.com-20110511001916-5tldhjluw0yyfjki
Merge with Debian unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#major=`ls src/.libs/lib*.so.* | \
11
11
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
12
12
 
13
 
builddir/Makefile:
14
 
        dh_testdir
15
 
        # Add here commands to configure the package.
16
 
        mkdir -p builddir
17
 
        cd builddir && cmake .. -G "Unix Makefiles" -DWANT_FONTCONFIG:BOOL=TRUE -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_LD_FLAGS="-Wl,-z,defs" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" -DCMAKE_SKIP_RPATH=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DPODOFO_BUILD_SHARED:BOOL=TRUE -DPODOFO_BUILD_STATIC:BOOL=FALSE -DCMAKE_BUILD_TYPE=RELEASE
18
 
#       -DWANT_BOOST:BOOL=1
19
 
 
20
 
build: build-stamp
21
 
build-stamp:  builddir/Makefile
22
 
        dh_testdir
23
 
 
24
 
        # Add here commands to compile the package.
25
 
        $(MAKE) -C builddir
26
 
 
27
 
        touch $@
28
 
 
29
 
clean: 
30
 
        dh_testdir
31
 
        dh_testroot
32
 
        rm -f build-stamp 
33
 
 
34
 
        # Add here commands to clean up after the build process.
35
 
        rm -rf builddir
36
 
 
37
 
 
38
 
        dh_clean 
39
 
 
40
 
install: build
41
 
        dh_testdir
42
 
        dh_testroot
43
 
        dh_prep  
 
13
CMAKE=/usr/bin/cmake
 
14
CXXFLAGS="-Wl,-z,defs"
 
15
BUILD_DIR = $(shell pwd)/debian/build
 
16
INSTALL_DIR = $(shell pwd)/debian/tmp
 
17
 
 
18
 
 
19
configure-stamp:
 
20
        dh_testdir
 
21
        mkdir -p $(BUILD_DIR)
 
22
        cd $(BUILD_DIR) && $(CMAKE) \
 
23
            -DWANT_FONTCONFIG:BOOL=TRUE \
 
24
            -DCMAKE_INSTALL_PREFIX:PATH=/usr \
 
25
            -DCMAKE_C_FLAGS="$(CFLAGS)" \
 
26
            -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
 
27
            -DCMAKE_SKIP_RPATH=ON \
 
28
            -DCMAKE_VERBOSE_MAKEFILE=ON \
 
29
            -DPODOFO_BUILD_SHARED:BOOL=TRUE \
 
30
            -DPODOFO_BUILD_STATIC:BOOL=FALSE \
 
31
            -DCMAKE_BUILD_TYPE=RELEASE \
 
32
            -DWANT_BOOST:BOOL=0  ../../
 
33
 
 
34
 
 
35
build: configure-stamp build-stamp
 
36
build-stamp:
 
37
        dh_testdir
 
38
        $(MAKE) -C $(BUILD_DIR) VERBOSE=1
 
39
 
 
40
clean:
 
41
        dh_testdir
 
42
        dh_testroot
 
43
        -rm -f configure-stamp build-stamp install-stamp
 
44
        -rm -rf $(BUILD_DIR) $(INSTALL_DIR)
 
45
        dh_clean
 
46
 
 
47
 
 
48
install: install-stamp
 
49
install-stamp: build-stamp
 
50
        dh_testdir
 
51
        dh_testroot
44
52
        dh_installdirs
45
 
 
46
 
        # Add here commands to install the package into debian/tmp
47
 
        $(MAKE) -C builddir DESTDIR=$(CURDIR)/debian/tmp install
 
53
        mkdir -p $(INSTALL_DIR)
 
54
        $(MAKE) $(MAKE_FLAG) -C $(BUILD_DIR) DESTDIR=$(INSTALL_DIR) install
 
55
#       dh_install
48
56
 
49
57
 
50
58
# Build architecture-independent files here.
59
67
        dh_installdocs
60
68
        dh_installexamples
61
69
        dh_install
62
 
        dh_installman
63
 
        dh_link
64
 
        dh_strip
65
 
        dh_compress
66
 
        dh_fixperms
 
70
        dh_installman -A
 
71
        dh_link -a
 
72
        dh_strip -a
 
73
        dh_compress -a
 
74
        dh_fixperms -a
67
75
        dh_makeshlibs
68
 
        dh_installdeb
69
 
        dh_shlibdeps
70
 
        dh_gencontrol
71
 
        dh_md5sums
72
 
        dh_builddeb
 
76
        dh_installdeb -a
 
77
        dh_shlibdeps -a
 
78
        dh_gencontrol -a
 
79
        dh_md5sums -a
 
80
        dh_builddeb -a
73
81
 
74
82
binary: binary-indep binary-arch
75
 
.PHONY: build clean binary-indep binary-arch binary install
 
83
.PHONY: build clean binary-indep binary-arch binary install patch unpatch