X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Ftclcurl.git;a=blobdiff_plain;f=debian%2Frules;h=99e4f0a9ade149f7f874858b91cc229fcfe54f62;hp=1e1b8abc002a169c9c82762f0e390ab43199ad45;hb=40bdd0dee9c5b82cfd8c5b6297064d8516147ace;hpb=711f9528f1e649fe13894bc7061c206cee9a9e97 diff --git a/debian/rules b/debian/rules index 1e1b8ab..99e4f0a 100755 --- a/debian/rules +++ b/debian/rules @@ -19,16 +19,18 @@ CONFIGURE_OPTIONS += \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-threads \ + --with-tcl=/usr/lib \ + --with-tclinclude=/usr/include/tcl \ LDFLAGS += -Wl,-z,defs -Wl,--as-needed -CFLAGS += -Wall -g +CFLAGS = -Wall -g -ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O2 -else +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 +else + CFLAGS += -O2 endif @@ -62,11 +64,19 @@ install: build dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/tclcurl + mkdir $(CURDIR)/debian/tclcurl/usr/lib/tcltk + mv $(CURDIR)/debian/tclcurl/usr/lib/TclCurl* \ + $(CURDIR)/debian/tclcurl/usr/lib/tcltk rm -rf \ $(CURDIR)/debian/tclcurl/usr/share/man/mann \ $(CURDIR)/debian/tclcurl/usr/bin \ $(CURDIR)/debian/tclcurl/usr/include + chmod 644 \ + $(CURDIR)/tests/*.tcl \ + $(CURDIR)/tests/multi/double.tcl \ + $(CURDIR)/tests/multi/single.tcl + # Build architecture-independent files here. binary-indep: build install @@ -79,6 +89,7 @@ binary-arch: build install dh_installdocs Changes.txt dh_installman dh_installchangelogs ChangeLog.txt + dh_installexamples dh_link dh_strip dh_compress