Modelled after tcl-remove-hardcoded-install-path.patch diff -ur tk8.6.1/unix/configure tk8.6.1-new/unix/configure --- tk8.6.1/unix/configure 2013-09-17 19:25:13.000000000 +0700 +++ tk8.6.1-new/unix/configure 2014-05-02 01:36:05.490954752 +0700 @@ -11213,7 +11213,7 @@ TCL_STUB_FLAGS="-DUSE_TCL_STUBS" fi -TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' +TK_LIBRARY='$(libdir)/tk$(VERSION)' PRIVATE_INCLUDE_DIR='$(includedir)' HTML_DIR='$(DISTDIR)/html' TK_PKG_DIR='tk$(VERSION)' diff -ur tk8.6.1/unix/configure.in tk8.6.1-new/unix/configure.in --- tk8.6.1/unix/configure.in 2013-09-17 19:25:13.000000000 +0700 +++ tk8.6.1-new/unix/configure.in 2014-05-02 01:36:04.567621486 +0700 @@ -666,7 +666,7 @@ TCL_STUB_FLAGS="-DUSE_TCL_STUBS" fi -TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' +TK_LIBRARY='$(libdir)/tk$(VERSION)' PRIVATE_INCLUDE_DIR='$(includedir)' HTML_DIR='$(DISTDIR)/html' TK_PKG_DIR='tk$(VERSION)'