Subversion Repositories pike-old

Compare Revisions

Ignore whitespace Rev 11 → Rev 12

/trunk/debian/rules
23,6 → 23,7
DEB_BUILD_ARCH=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
endif
 
CFLAGS_EXTRA = -g
CPPFLAGS_EXTRA = -DDEBIAN
 
ifdef SSP
29,14 → 30,18
SSP_FLAGS=-fstack-protector
endif
 
CFARGSEXTRA = --with-cdebug
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFARGSEXTRA=--without-rtldebug --without-cdebug --without-debug --without-copt
CFARGSEXTRA += --without-copt
else
CFARGSEXTRA=--without-rtldebug --without-cdebug --without-debug
CFARGSEXTRA += --with-copt
endif
 
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFARGSEXTRA += --with-rtldebug --with-cdebug --with-debug
CFARGSEXTRA += --with-rtldebug
else
CFARGSEXTRA += --without-rtldebug
endif
 
CFLAGS_EXTRA += $(SSP_FLAGS)
81,8 → 86,8
endif
 
CFARGS=$(CFARGSEXTRA) \
--with-cflags="$(CFLAGS_EXTRA)" \
--with-cppflags="$(CPPFLAGS_EXTRA)" \
--with-cflags=\\'$(CFLAGS_EXTRA)\\' \
--with-cppflags=\\'$(CPPFLAGS_EXTRA)\\' \
--with-bignums \
--with-gmp \
--with-poll \
95,14 → 100,16
--with-odbc \
--with-sane \
--with-postgres \
--with-postgres-include-dir=/usr/include/postgresql \
--with-postgres-include-dir=`pg_config --includedir` \
--with-libpq-dir=/usr/lib \
--with-perl \
--without-ffmpeg \
--without-fftw \
--without-libpdf \
--without-libpanda \
--without-GTK \
--without-GTK2 \
--without-bundles \
$(MACHINE_OPTS) $(EXTRA_ARGS)
 
include_prefix=/usr/include/pike/$(VERSION)
112,7 → 119,7
#{ADT,Array,Audio,Cache,Calendar,Calendar_I,COM,Colors,CommonLog,Crypto,Debug,Filesystem,Error,Float,Function,Geography,Getopt,Gettext,Gmp,Graphics,Gz,HTTPAccept,Int,Kerberos,Languages,Local,Locale,Mapping,Math,MIME,Mird,Multiset,Nettle,Parser,Pike,Pipe,Process,Program,Protocols,Regexp,Remote,SSL,Shuffler,Standards,Stdio,String,System,Thread,Tools,Unicode,Web,Yabu,Yp,_ADT,_Charset,_Roxen,___Gz,___MIME,___Math,___Mird,___Regexp,___Yp,____Charset,__builtin*,spider}.
#usr/lib/pike/*/modules/Sql.pmod/{module,Sql,rsql,sql_*}.*
 
excluded_modules:=Ssleay Msql msql PDF Ffmpeg Oracle oracle sybase Gnome GTK GDK DVB Java TTF
excluded_modules:=Ssleay Mird Msql msql PDF Ffmpeg Oracle oracle sybase Gnome GTK GDK DVB Java TTF
# This is tricky. Note that it's only possible for an exclusion to match the last
# component specified in an .install file or on the command line, and below.
DH_EXCLUDE:=$(addprefix -X,$(excluded_modules))
121,7 → 128,8
 
TMP=$(CURDIR)/debian/tmp
 
export CFLAGS CC PIKE VERSION
#export CFLAGS CC PIKE VERSION
export CC
 
build-arch: build-arch-stamp
build-arch-stamp: $(DPATCH_STAMPFN)
150,7 → 158,7
rm -f build-stamp build-arch-stamp build-indep-stamp configure-stamp
 
# Add here commands to clean up after the build process.
-$(MAKE) distclean
$(MAKE) distclean
rm -rf refdoc/modref refdoc/traditional_manual
 
install: DH_OPTIONS=
187,13 → 195,13
fi; \
done
 
# Install the specs file
sed -e 's/@PIKEVERSION@/$(VERSION)/g' \
# Don't install our own specs file - the ordinary one is not that bad really
# sed -e 's/@PIKEVERSION@/$(VERSION)/g' \
-e 's;@CONFIGURE_ARGS@;$(CFARGS);g' \
< debian/specs.in > $(TMP)$(include_prefix)/specs
debian/specs.in > $(TMP)$(include_prefix)/specs
 
# Install pike-config
sed -e "s#@CFLAGS@#$(include_prefix)#;s/@LDFLAGS@//" \
sed -e "s#@CFLAGS@#-I$(include_prefix)#;s/@LDFLAGS@//" \
-e "s/@MAJOR@/$(MAJOR)/;s/@MINOR@/$(MINOR)/;s/@BUILD@/$(BUILD)/" \
debian/pike-config.in > $(TMP)/usr/bin/$(PIKE)-config
 
211,7 → 219,7
dh_install -p$(PIKE)-reference refdoc/modref/* usr/share/doc/$(PIKE)-doc/html/reference
dh_install -i -N$(PIKE)-manual -N$(PIKE)-reference --sourcedir=$(TMP)
dh_installdocs -i
dh_installchangelogs -i
dh_installchangelogs -i -k CHANGES
dh_link -i
dh_compress -i
dh_fixperms -i
225,15 → 233,15
dh_testdir -a
dh_testroot -a
# dh_installdebconf -a
dh_install -a --sourcedir=debian/tmp -N$(PIKE)-core $(DH_EXCLUDE)
dh_install -a -N$(PIKE)-core --sourcedir=debian/tmp $(DH_EXCLUDE)
dh_install -p$(PIKE)-core --sourcedir=debian/tmp $(DH_EXCLUDE) $(DH_ALREADY)
for p in $(MODULE_PACKAGES); do \
for p in $(MODULE_PACKAGES) $(PIKE)-dev; do \
dh_link -p$$p usr/share/doc/$(PIKE)-core usr/share/doc/$$p; \
done
dh_installdocs -a
dh_installmenu -a
# dh_installman -a
dh_installchangelogs -a
dh_installchangelogs -a -k CHANGES
dh_strip -a
dh_compress -a
dh_fixperms -a -X/run_autoconfig -X/precompile.sh -X/smartlink -X/fixdepends.sh -X/install_module -X/mktestsuite