X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Ftclcurl.git;a=blobdiff_plain;f=debian%2Frules;h=99e4f0a9ade149f7f874858b91cc229fcfe54f62;hp=f8e59d5316fac770cf051836a553d6d9b9465e5e;hb=40bdd0dee9c5b82cfd8c5b6297064d8516147ace;hpb=614073066073f3c68a5f1c7869ae2f45cc65a966 diff --git a/debian/rules b/debian/rules index f8e59d5..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,9 +64,18 @@ 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/mysqltcl/usr/bin \ - $(CURDIR)/debian/mysqltcl/usr/include + $(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. @@ -78,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