forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules
executable file
·111 lines (93 loc) · 2.68 KB
/
rules
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/usr/bin/make -f
# -*- makefile -*-
#
# debian package by Alessandro Amici 2002-2003.
# Based on: GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatibility version to use.
export DH_COMPAT=4
# extract the non-prefix part of INST_PYMOD
inst_pymod=$(shell awk -F '/usr' '/INST_PYMOD/ {print $$2}' GDALmake.opt)
config.status:
dh_testdir
./configure --prefix=/usr \
--mandir=\$$\{prefix\}/share/man \
--with-threads \
--with-grass=no \
--with-geotiff=internal \
--with-jasper \
--with-netcdf \
--with-xerces \
--with-geos
# Patch the generated libtool to avoid passing -rpath when linking,
# and to explicitly link libraries against the libraries they
# depend on.
sed < libtool > libtool-2 \
-e 's/^hardcode_libdir_flag_spec.*$$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' \
-e '/^archive_cmds="/s/"$$/ \\$$deplibs"/' \
-e 's/^hardcode_into_libs.*$$/hardcode_into_libs=no/'
mv libtool-2 libtool
chmod 755 libtool
patch: patch-stamp
patch-stamp:
dh_testdir
#patch -p1 < debian/patches/01_gcc4.patch
touch patch-stamp
build: patch build-stamp
build-stamp: config.status
dh_testdir
$(MAKE)
$(MAKE) docs
touch build-stamp
unpatch: patch unpatch-stamp
unpatch-stamp:
dh_testdir
# This is here for reference. It should be inside the following
# conditional.
# patch -p1 -R < debian/patches/01_gcc4.patch ;
if [ -e patch-stamp ]; then \
rm patch-stamp ; \
fi
clean: unpatch
# reminiscence to old procedure of building man pages, will now created
# by doxygen. This rm will be deleted in further releases of gdal
sh -c "if (test -d man/man1) then rm -r man/man1; fi"
dh_testdir
dh_testroot
-$(MAKE) distclean
dh_clean build-stamp configure-stamp
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr \
"INST_PYMOD=\$$(prefix)$(inst_pymod)"
$(MAKE) install-docs prefix=$(CURDIR)/debian/tmp/usr \
"INST_DOCS=\$$(prefix)/share/doc/libgdal-doc"\
"INST_MAN=\$$(prefix)/share/man"
# To reach compatibility with window-version which puts gdal-header
# files into /usr/include/gdal. I don't want to place headerfiles directly
# into /usr/include/gdal to avoid incompatibility with older debian
# package versions
ln -fs . `pwd`/debian/tmp/usr/include/gdal
binary-arch: build install
dh_testdir
dh_testroot
dh_movefiles
dh_installdocs
dh_installchangelogs ChangeLog
dh_link
dh_strip
dh_compress
dh_fixperms
dh_makeshlibs -V'libgdal1c2a (>= 1.2.6)'
dh_installdeb
dh_shlibdeps -L libgdal1c2a -l.
dh_python
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-arch
.PHONY: build clean binary-arch binary install