2 # $MirOS: contrib/hosted/tg/deb/cvs/debian/rules,v 1.1 2010/09/16 00:18:40 tg Exp $
5 # Sample debian/rules that uses debhelper.
6 # This file was originally written by Joey Hess and Craig Small.
7 # As a special exception, when this file is copied by dh-make into a
8 # dh-make output file, you may use that output file without restriction.
9 # This special exception was added by Craig Small in version 0.37 of dh-make.
14 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
20 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
21 NUMJOBS= $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
22 MAKEFLAGS+= -j${NUMJOBS}
25 CPPFLAGS+= -D_GNU_SOURCE
26 CPPFLAGS+= -DUSE_LIBBSD
29 CPPFLAGS+= -include ${CURDIR}/debian/port.h
31 CONFIGURE_ENV:= CC='${CC}'
32 CONFIGURE_ENV+= CFLAGS='${CFLAGS}'
33 CONFIGURE_ENV+= CPPFLAGS='${CPPFLAGS}'
34 CONFIGURE_ENV+= LIBS='${LIBS}'
35 CONFIGURE_ENV+= CSH=/bin/csh
37 # check takes forever, so assume the safe choice
38 CONFIGURE_ENV+= ac_cv_func_working_mktime=no
40 CONFIGURE_ARGS:= --prefix=/usr \
41 --infodir=/usr/share/info \
42 --mandir=/usr/share/man \
44 --disable-dependency-tracking \
45 --disable-maintainer-mode
46 CONFIGURE_ARGS+= --enable-pam \
47 --with-hardcoded-pam-service-name=cvs
48 CONFIGURE_ARGS+= --disable-nls \
50 --enable-password-authenticated-client \
53 --enable-case-sensitivity \
54 --disable-encryption \
55 --disable-lock-compatibility \
56 --disable-rootcommit \
57 --disable-old-info-format-support \
58 --enable-config-override=no \
61 --with-external-zlib \
63 --with-editor=/bin/ed \
64 --with-tmpdir=/var/tmp \
66 --with-cvs-admin-group=_cvsadmin
68 MAKE_ARGS:= MAKEINFO='makeinfo --no-split'
70 debian/.configure_stamp:
72 -rm -f debian/.*_stamp build-aux/config.guess build-aux/config.sub
73 -rm -rf debian/builddir debian/stagedir
74 cp /usr/share/misc/config.guess /usr/share/misc/config.sub build-aux/
75 mkdir debian/builddir debian/stagedir
76 cd debian/builddir && \
77 env ${CONFIGURE_ENV} sh ../../configure ${CONFIGURE_ARGS}
80 build: debian/.configure_stamp
82 cd debian/builddir && ${MAKE}
86 -rm -f debian/.*_stamp build-aux/config.guess build-aux/config.sub
87 -rm -f doc/cvs.1 doc/cvs.info* doc/cvsclient.info*
88 -rm -rf debian/builddir debian/stagedir
96 -rm -rf debian/stagedir
97 _topdir=$$(pwd); cd debian/builddir && \
98 ${MAKE} DESTDIR=$$_topdir/debian/stagedir install
100 # Build architecture-independent files here.
101 binary-indep: build install
102 # We have nothing to do by default.
104 # Build architecture-dependent files here.
105 binary-arch: build install
108 dh_installchangelogs ChangeLog
114 # dh_installlogrotate
125 cd debian/cvs/usr/share/cvs/contrib && chmod +x descend.sh rcs2sccs.sh
136 binary: binary-indep binary-arch
137 .PHONY: build clean binary-indep binary-arch binary install check