~ubuntu-branches/ubuntu/trusty/3depict/trusty-proposed

« back to all changes in this revision

Viewing changes to packaging/debian/rules

  • Committer: Package Import Robot
  • Author(s): D Haley
  • Date: 2013-05-17 00:52:39 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20130517005239-7bl4mnhkvrhc2ba6
Tags: 0.0.13-1
Upload to unstable 

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
CROSS= --build $(DEB_BUILD_GNU_TYPE)
21
21
endif
22
22
 
 
23
#Hardening
 
24
DPKG_EXPORT_BUILDFLAGS = 1
 
25
include /usr/share/dpkg/buildflags.mk
 
26
 
23
27
 
24
28
config.status: configure
25
29
        dh_testdir
26
 
        # Add here commands to configure the package.
27
 
        
28
 
        ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-openmp-parallel --disable-debug-checks --with-libpng-link="-lpng" --with-libpng-flags="-L/lib" LDFLAGS="-Wl,-z,defs"  --with-ftgl-prefix="/usr"
 
30
        #Compile package, disabling internal debug checking and enabling parallelism
 
31
        ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-openmp-parallel --disable-debug-checks --with-libpng-link="-lpng" --with-libpng-flags="-L/lib" --with-ftgl-prefix="/usr"
29
32
 
30
33
 
31
34
build: build-arch 
62
65
        $(MAKE) DESTDIR=$(CURDIR)/debian/3depict install
63
66
 
64
67
        #Install the textures
65
 
        cp -rp src/textures/ $(CURDIR)/debian/3depict/usr/share/3depict/
 
68
        mkdir -p $(CURDIR)/debian/3depict/usr/share/3depict/textures/
 
69
        cp -p data/textures/*png $(CURDIR)/debian/3depict/usr/share/3depict/textures/
66
70
 
67
71
        #rename 3Depict (real program name) to debian-friendly 3depict
68
72
        mv $(CURDIR)/debian/3depict/usr/bin/3Depict $(CURDIR)/debian/3depict/usr/bin/3depict
74
78
        #Install .desktop file (for XFCE)
75
79
        install -Dp -m 644 $(CURDIR)/packaging/3Depict.desktop $(CURDIR)/debian/3depict/usr/share/applications/3depict.desktop
76
80
        #install icon (both SVG and XPM) into pixmaps
77
 
        install -Dp -m 644 $(CURDIR)/src/3Depict.xpm $(CURDIR)/debian/3depict/usr/share/pixmaps/3depict.xpm
78
 
        install -Dp -m 644 $(CURDIR)/src/tex-source/3Depict-icon.svg $(CURDIR)/debian/3depict/usr/share/pixmaps/3depict.svg
 
81
        install -Dp -m 644 $(CURDIR)/data/3Depict.xpm $(CURDIR)/debian/3depict/usr/share/pixmaps/3depict.xpm
 
82
        install -Dp -m 644 $(CURDIR)/data/textures/tex-source/3Depict-icon.svg $(CURDIR)/debian/3depict/usr/share/pixmaps/3depict.svg
79
83
        
80
84
        #Install the pre-built locale files that are shipped with the tarball.
81
85
        #translation sources (.po) files are in the translations/ folder.