~ubuntu-branches/ubuntu/dapper/pantomime/dapper

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2004-11-20 00:25:28 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041120002528-igjuwyao6gubpig1
Tags: 1.1.2-3
Build depend / depend on libgnustep-base-1.10-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#export DH_VERBOSE=1
7
7
 
8
8
# This is the debhelper compatability version to use.
9
 
export DH_COMPAT=3
 
9
export DH_COMPAT=4
10
10
 
11
11
# shared library versions, option 1
12
 
version=0.9.0
13
12
major=1
14
13
 
15
14
# get some information about the GNUstep environment
16
15
GS_ROOT = usr/lib/GNUstep/System
17
16
 
18
 
gsmacros        := $(shell . /$(GS_ROOT)/Makefiles/GNUstep.sh; \
19
 
                     echo $$LIBRARY_COMBO $$GNUSTEP_HOST_OS $$GNUSTEP_HOST_CPU)
20
 
GS_COMBO        = $(word 1, $(gsmacros))
21
 
GS_OS           = $(word 2, $(gsmacros))
22
 
GS_CPU          = $(word 3, $(gsmacros))
23
 
GS_LIBDIR       = $(GS_ROOT)/Libraries/$(GS_CPU)/$(GS_OS)/$(GS_COMBO)
 
17
GS_LIBDIR       = $(GS_ROOT)/Library/Libraries
24
18
 
25
19
# some macros for package and directory names
26
20
p_lib   = pantomime$(major)
32
26
configure: configure-stamp
33
27
configure-stamp:
34
28
        dh_testdir
35
 
        # Add here commands to configure the package.
36
 
 
37
29
        touch configure-stamp
38
30
 
39
31
build: build-stamp
40
32
build-stamp: configure-stamp
41
33
        dh_testdir
42
34
 
43
 
        # Add here commands to compile the package.
44
 
        . /$(GS_ROOT)/Makefiles/GNUstep.sh; \
45
 
                $(MAKE)
46
 
 
47
 
        . /$(GS_ROOT)/Makefiles/GNUstep.sh; \
48
 
                $(MAKE) shared=no
 
35
        . /$(GS_ROOT)/Makefiles/GNUstep.sh; \
 
36
                $(MAKE) messages=yes
 
37
 
 
38
        . /$(GS_ROOT)/Makefiles/GNUstep.sh; \
 
39
                $(MAKE) shared=no messages=yes SUBPROJECTS=Source
 
40
 
 
41
        . /$(GS_ROOT)/Makefiles/GNUstep.sh; \
 
42
                $(MAKE) -C Bundles/SSL messages=yes
49
43
 
50
44
        touch build-stamp
51
45
 
54
48
        dh_testroot
55
49
        rm -f build-stamp configure-stamp
56
50
 
57
 
        # Add here commands to clean up after the build process.
58
51
        -. /$(GS_ROOT)/Makefiles/GNUstep.sh; \
59
52
                $(MAKE) clean
60
53
 
61
54
        -. /$(GS_ROOT)/Makefiles/GNUstep.sh; \
62
55
                $(MAKE) clean shared=no
63
56
 
 
57
        -. /$(GS_ROOT)/Makefiles/GNUstep.sh; \
 
58
                $(MAKE) -C Bundles/SSL clean
 
59
 
 
60
        rm -rf Source/shared_obj Source/static_obj
 
61
        rm -rf Bundles/SSL/shared_obj Bundles/SSL/static_obj
 
62
 
64
63
        dh_clean
65
64
 
66
65
install: build
84
83
 
85
84
        . /$(GS_ROOT)/Makefiles/GNUstep.sh; \
86
85
            $(MAKE) install shared=no \
 
86
                SUBPROJECTS=Source \
 
87
                INSTALL_ROOT_DIR=$(CURDIR)/$(d_lib) \
 
88
                GNUSTEP_INSTALLATION_DIR=$(CURDIR)/$(d_lib)/$(GS_ROOT)
 
89
 
 
90
        . /$(GS_ROOT)/Makefiles/GNUstep.sh; \
 
91
            $(MAKE) -C Bundles/SSL install \
87
92
                INSTALL_ROOT_DIR=$(CURDIR)/$(d_lib) \
88
93
                GNUSTEP_INSTALLATION_DIR=$(CURDIR)/$(d_lib)/$(GS_ROOT)
89
94
 
91
96
#       dh_movefiles -v -p$(p_dev) --sourcedir=$(d_lib) \
92
97
#               $(GS_LIBDIR)/lib*.a \
93
98
#               $(GS_LIBDIR)/lib*.so \
94
 
#               $(GS_ROOT)/Headers
 
99
#               $(GS_ROOT)/Library/Headers
95
100
        mv $(d_lib)/$(GS_LIBDIR)/lib*.a $(d_lib)/$(GS_LIBDIR)/lib*.so \
96
101
                $(d_dev)/$(GS_LIBDIR)/
97
 
        mv $(d_lib)/$(GS_ROOT)/Headers $(d_dev)/$(GS_ROOT)/
 
102
        mv $(d_lib)/$(GS_ROOT)/Library/Headers $(d_dev)/$(GS_ROOT)/Library/
98
103
 
99
104
 
100
105
# Build architecture-independent files here.
108
113
 
109
114
#       dh_installdebconf
110
115
        dh_installdocs README TODO
111
 
#       dh_installexamples
112
 
#       dh_installmenu
113
 
#       dh_installlogrotate
114
 
#       dh_installemacsen
115
 
#       dh_installpam
116
 
#       dh_installmime
117
 
#       dh_installinit
118
 
#       dh_installcron
119
 
#       dh_installman
120
 
#       dh_installinfo
121
 
#       dh_undocumented
122
116
        dh_installchangelogs ChangeLog
123
 
#       dh_link
124
117
        dh_strip
125
118
        dh_compress
126
119
        dh_fixperms
127
 
        dh_makeshlibs
 
120
        dh_makeshlibs -V
128
121
        dh_installdeb
129
 
#       dh_perl
130
122
        dh_shlibdeps
131
123
        dh_gencontrol
132
124
        dh_md5sums