File mlterm-lib64.patch of Package mlterm

diff -ru mlterm-2.9.1.20050215.orig/contrib/scrollbar/extra/Makefile.in mlterm-2.9.1.20050215/contrib/scrollbar/extra/Makefile.in
--- mlterm-2.9.1.20050215.orig/contrib/scrollbar/extra/Makefile.in	2004-02-16 16:01:58.000000000 +0100
+++ mlterm-2.9.1.20050215/contrib/scrollbar/extra/Makefile.in	2005-02-15 20:06:16.000000000 +0100
@@ -29,33 +29,33 @@
 
 all: athena motif mozmodern next
 athena: $(ATHENA_OBJ)
-	$(LIBTOOL_LINK) -o libathena.la $(ATHENA_OBJ:.o=.lo) -rpath $(LIBDIR) \
+	$(LIBTOOL_LINK) -o libathena.la $(ATHENA_OBJ:.o=.lo) -rpath $(libdir)/mlterm \
 	-module -avoid-version @NO_UNDEFINED_FLAG@ \
 	@X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
 
 motif: $(MOTIF_OBJ)
-	$(LIBTOOL_LINK) -o libmotif.la $(MOTIF_OBJ:.o=.lo) -rpath $(LIBDIR) \
+	$(LIBTOOL_LINK) -o libmotif.la $(MOTIF_OBJ:.o=.lo) -rpath $(libdir)/mlterm \
 	-module -avoid-version @NO_UNDEFINED_FLAG@ \
 	@X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
 
 mozmodern: $(MOZMODERN_OBJ)
-	$(LIBTOOL_LINK) -o libmozmodern.la $(MOZMODERN_OBJ:.o=.lo) -rpath $(LIBDIR) \
+	$(LIBTOOL_LINK) -o libmozmodern.la $(MOZMODERN_OBJ:.o=.lo) -rpath $(libdir)/mlterm \
 	-module -avoid-version @NO_UNDEFINED_FLAG@ \
 	@X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
 
 next: $(NEXT_OBJ)
-	$(LIBTOOL_LINK) -o libnext.la $(NEXT_OBJ:.o=.lo) -rpath $(LIBDIR) \
+	$(LIBTOOL_LINK) -o libnext.la $(NEXT_OBJ:.o=.lo) -rpath $(libdir)/mlterm \
 	-module -avoid-version @NO_UNDEFINED_FLAG@ \
 	@X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
 
 .c.o:
 	$(LIBTOOL_CC) -c $<
 
-$(LIBDIR):
-	mkdir -p $(LIBDIR)
+$(libdir)/mlterm:
+	mkdir -p $(DESTDIR)$(libdir)/mlterm
 
-install: $(LIBDIR)
-	$(LIBTOOL_INSTALL) libathena.la libmotif.la libmozmodern.la libnext.la $(LIBDIR)
+install: $(libdir)/mlterm
+	$(LIBTOOL_INSTALL) libathena.la libmotif.la libmozmodern.la libnext.la $(DESTDIR)$(libdir)/mlterm
 
 clean:
 	rm -rf $(ATHENA_OBJ) $(ATHENA_OBJ:.o=.lo) \
diff -ru mlterm-2.9.1.20050215.orig/contrib/scrollbar/pixmap_engine/Makefile.in mlterm-2.9.1.20050215/contrib/scrollbar/pixmap_engine/Makefile.in
--- mlterm-2.9.1.20050215.orig/contrib/scrollbar/pixmap_engine/Makefile.in	2004-02-16 16:01:59.000000000 +0100
+++ mlterm-2.9.1.20050215/contrib/scrollbar/pixmap_engine/Makefile.in	2005-02-15 20:06:16.000000000 +0100
@@ -30,7 +30,7 @@
 all: pixmap_engine
 pixmap_engine: $(PIXMAP_ENGINE_OBJ)
 	$(LIBTOOL_LINK) -o libpixmap_engine.la $(PIXMAP_ENGINE_OBJ:.o=.lo) \
-	-rpath $(LIBDIR) -module -avoid-version \
+	-rpath $(libdir)/mlterm -module -avoid-version \
 	@X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
 
 .c.o:
diff -ru mlterm-2.9.1.20050215.orig/scrollbar/sample/Makefile.in mlterm-2.9.1.20050215/scrollbar/sample/Makefile.in
--- mlterm-2.9.1.20050215.orig/scrollbar/sample/Makefile.in	2004-02-16 16:02:00.000000000 +0100
+++ mlterm-2.9.1.20050215/scrollbar/sample/Makefile.in	2005-02-15 20:06:16.000000000 +0100
@@ -26,23 +26,23 @@
 
 all: sample sample2
 sample: $(SAMPLE_OBJ)
-	$(LIBTOOL_LINK) -o libsample.la $(SAMPLE_OBJ:.o=.lo) -rpath $(LIBDIR) \
+	$(LIBTOOL_LINK) -o libsample.la $(SAMPLE_OBJ:.o=.lo) -rpath $(libdir)/mlterm \
 	-module -avoid-version @NO_UNDEFINED_FLAG@ \
 	@X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
 
 sample2: $(SAMPLE2_OBJ)
-	$(LIBTOOL_LINK) -o libsample2.la $(SAMPLE2_OBJ:.o=.lo) -rpath $(LIBDIR) \
+	$(LIBTOOL_LINK) -o libsample2.la $(SAMPLE2_OBJ:.o=.lo) -rpath $(libdir)/mlterm \
 	-module -avoid-version @NO_UNDEFINED_FLAG@ \
 	@X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
 
 .c.o:
 	$(LIBTOOL_CC) -c $<
 
-$(LIBDIR):
-	mkdir -p $(LIBDIR)
+$(libdir)/mlterm:
+	mkdir -p $(DESTDIR)$(libdir)/mlterm
 
-install: $(LIBDIR)
-	$(LIBTOOL_INSTALL) libsample.la libsample2.la $(LIBDIR)
+install: $(libdir)/mlterm
+	$(LIBTOOL_INSTALL) libsample.la libsample2.la $(DESTDIR)$(libdir)/mlterm
 
 clean:
 	rm -rf $(SAMPLE_OBJ) $(SAMPLE_OBJ:.o=.lo) $(SAMPLE2_OBJ) $(SAMPLE2_OBJ:.o=.lo) \