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 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
|
#!/usr/bin/make -f
#-*- makefile -*-
# Made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Christoph Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Uncomment this to turn on debug mode.
#export DEB_BUILD_OPTIONS="debug nostrip"
SSL=gnu
# uncomment the next line if you want openssl version
#SSL=ssl
export DH_OPTIONS=
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
DEBOP=--enable-debug
else
DEBOP=
endif
PACKAGE := $(shell dpkg-parsechangelog| \
sed -n 's/^Source: \(.*\)$$/\1/p')
DSTDIR := $(CURDIR)/debian/$(PACKAGE)
BINDIR := $(DSTDIR)/usr/bin
DOCDIR := $(DSTDIR)/usr/share/doc/$(PACKAGE)
SUBPACK := $(PACKAGE)-wrapper
SUBDIR := $(CURDIR)/debian/$(SUBPACK)
include /usr/share/quilt/quilt.make
configure: configure-$(SSL)
configure-gnu: configure-stamp
configure-ssl: configure-stamp-ssl
configure-stamp: patch
cp -f debian/control-gnu debian/control
dh_testdir
# Add here commands to configure the package.
dh_autotools-dev_updateconfig
env cf_cv_SYSTEM_MAIL=/usr/sbin/sendmail \
COMPRESS=/usr/bin/compress BZIP2=/bin/bzip2 UNZIP=/usr/bin/unzip \
ZIP=/usr/bin/zip \
LIBS="-lbsd" \
./configure $(shell dpkg-buildflags --export=configure) --prefix=/usr --libexecdir=/usr/lib \
--sysconfdir=/etc/lynx-cur --localstatedir=/var \
--libdir=/etc/lynx-cur --enable-8bit-toupper --enable-externs \
--enable-nsl-fork --enable-cgi-links --enable-exec-links \
--enable-exec-scripts --enable-persistent-cookies --enable-nls \
--enable-gzip-help --enable-prettysrc --enable-source-cache \
--enable-cjk --enable-default-colors --enable-nested-tables \
--enable-japanese-utf8 --enable-ipv6 \
--enable-forms-options --enable-justify-elts --enable-partial \
--enable-read-eta --enable-scrollbar --enable-syslog \
--with-zlib --with-bzlib --without-included-gettext \
--with-screen=ncursesw --enable-justify-elts \
--with-gnutls=/usr --enable-persistent-cookies \
${DEBOP}
# --with-nss-compat --with-gnutls=/usr --enable-gnutls-compat
# --enable-color-style --enable-charset-choice --enable-font-switch
touch configure-stamp
configure-stamp-ssl: patch
sed -e "s/libgnutls-dev/libssl28-dev/" debian/control-gnu > debian/control-ssl && \
cp -f debian/control-ssl debian/control
dh_testdir
# Add here commands to configure the package.
dh_autotools-dev_updateconfig
env cf_cv_SYSTEM_MAIL=/usr/sbin/sendmail \
COMPRESS=/usr/bin/compress BZIP2=/bin/bzip2 UNZIP=/usr/bin/unzip \
ZIP=/usr/bin/zip \
LIBS="-lbsd" \
./configure $(shell dpkg-buildflags --export=configure) --prefix=/usr --libexecdir=/usr/lib \
--sysconfdir=/etc/lynx-cur --localstatedir=/var \
--libdir=/etc/lynx-cur --enable-8bit-toupper --enable-externs \
--enable-nsl-fork --enable-cgi-links --enable-exec-links \
--enable-exec-scripts --enable-persistent-cookies --enable-nls \
--enable-gzip-help --enable-prettysrc --enable-source-cache \
--enable-cjk --enable-default-colors --enable-nested-tables \
--enable-japanese-utf8 --enable-ipv6 \
--enable-forms-options --enable-justify-elts --enable-partial \
--enable-read-eta --enable-scrollbar --enable-syslog \
--with-zlib --with-bzlib --without-included-gettext \
--with-screen=ncursesw --enable-justify-elts \
--with-ssl --enable-persistent-cookies \
${DEBOP}
# --with-nss-compat --with-gnutls=/usr --enable-gnutls-compat
# --enable-color-style --enable-charset-choice --enable-font-switch
touch configure-stamp-ssl
build: build-arch
build-arch: configure build-stamp
build-indep:
build-stamp:
dh_testdir
# Add here commands to compile the package.
$(MAKE)
touch build-stamp
clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp configure-stamp-ssl
rm -f debian/control-ssl
# Add here commands to clean up after the build process.
[ ! -f makefile ] || $(MAKE) distclean
#-rm -f intl/libintl.h
dh_autotools-dev_restoreconfig
dh_clean
#install: install-indep install-arch
install-indep:
dh_testdir
dh_testroot
dh_prep
dh_installdirs -i
install-arch:
dh_testdir
dh_testroot
dh_prep -s
dh_installdirs -s
# chmod +x scripts/*.sh
# Add here commands to install the package into debian/$(package).
$(MAKE) install-full prefix=$(DSTDIR)/usr \
libdir=$(DSTDIR)/etc/$(PACKAGE) \
sysconfdir=$(DSTDIR)/etc/$(PACKAGE) docdir=$(DOCDIR) \
helpdir=$(DOCDIR)/lynx_help \
mandir=$(DSTDIR)/usr/share/man/man1
cd $(DOCDIR) ; rm -rf samples test
cd $(DOCDIR) ; rm -f COPYING lynx_help/COPYING lynx_help/COPYHEADER \
CHANGES COPYING.asc COPYHEADER.asc
# cd $(DSTDIR)/usr/share/man/man1 ; mv lynx.1 lynx.cur.1
# Build architecture-independent files here.
# for lynx-cur-wrapper
binary-indep: DH_OPTIONS=-i
binary-indep: install-indep
dh_testdir
dh_testroot
dh_installdocs
# dh_installman debian/lynx-cur.1
dh_installchangelogs
dh_install
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch: DH_OPTIONS=-a
binary-arch: install-arch
dh_testdir
dh_testroot
dh_installdebconf
dh_installdocs debian/README.source
dh_installmenu
dh_installmime
dh_installchangelogs CHANGES
dh_install
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|