X-Git-Url: https://git.sven.stormbind.net/?p=sven%2Fmysqltcl.git;a=blobdiff_plain;f=debian%2Frules;h=723bf5212a509546c09b2be54d10efa73de96089;hp=c62250bc0a2ffa501b10199e4121fd8f275367df;hb=720176e8674fb8fdbd995f665720a6dce86d7798;hpb=3e93f35732620dc4517606b64a0e550b2922737a diff --git a/debian/rules b/debian/rules index c62250b..723bf52 100755 --- a/debian/rules +++ b/debian/rules @@ -19,16 +19,18 @@ CONFIGURE_OPTIONS += \ --enable-threads \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ + --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 @@ -61,7 +63,14 @@ install: build dh_clean -k dh_installdirs - $(MAKE) install DESTDIR=$(CURDIR)/debian/mysqltcl/ + $(MAKE) install DESTDIR=$(CURDIR)/debian/mysqltcl + mkdir $(CURDIR)/debian/mysqltcl/usr/lib/tcltk + mv $(CURDIR)/debian/mysqltcl/usr/lib/mysqltcl* \ + $(CURDIR)/debian/mysqltcl/usr/lib/tcltk + rm -rf \ + $(CURDIR)/debian/mysqltcl/usr/share/man/mann \ + $(CURDIR)/debian/mysqltcl/usr/bin \ + $(CURDIR)/debian/mysqltcl/usr/include # Build architecture-independent files here.