X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Ftclcurl.git;a=blobdiff_plain;f=debian%2Frules;h=1e3bc3a73194e8981814cc484968d71f1cd07058;hp=b88d963d4f63cdfc67288ae06dd5af97614c5c6c;hb=8151189dec76ae0aabdc266a87ea5be5cda88b27;hpb=4936e66277fdc3b4c78accc6842e5618f807715b diff --git a/debian/rules b/debian/rules index b88d963..1e3bc3a 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,6 +64,14 @@ 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 + # Build architecture-independent files here. binary-indep: build install @@ -74,6 +84,7 @@ binary-arch: build install dh_installdocs Changes.txt dh_installman dh_installchangelogs ChangeLog.txt + dh_installexamples tests dh_link dh_strip dh_compress