May be I've posted a stupid question! ;P
I suppose that now the DESTDIR var should be used instead of prefix and PREFIX
when installing elsewhere, however the gimp.spec.in should be changed and
there are few bugs into the Makefile.in.in into some of the po* dirs.
I've attached a patch for fixing those minor problems. ;)
I haven't fixed yet the GIMP Perl plugins installation, please could anyone fix
it or tell me a workaround?
Happy GIMPing,
Marco
-- 
//\/\ Marco (LM) Lamberto
      e-mail:            lm(at)geocities.com (replace '(at)' -> '@')
      The Sunny Spot  -  http://www.geocities.com/marcolamberto/
--- ./gimp-1.1.26/po/Makefile.in.in.orig        Fri Sep 22 21:10:56 2000
+++ ./gimp-1.1.26/po/Makefile.in.in     Sun Oct  1 14:49:51 2000
@@ -123,7 +123,7 @@
            *)     destdir=$(localedir);; \
          esac; \
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
-         dir=$$destdir/$$lang/LC_MESSAGES; \
+         dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
          if test -r "$(MKINSTALLDIRS)"; then \
            $(MKINSTALLDIRS) $$dir; \
          else \
--- ./gimp-1.1.26/po-libgimp/Makefile.in.in.orig        Sun Oct  1 14:50:57 2000
+++ ./gimp-1.1.26/po-libgimp/Makefile.in.in     Sun Oct  1 14:51:12 2000
@@ -123,7 +123,7 @@
            *)     destdir=$(localedir);; \
          esac; \
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
-         dir=$$destdir/$$lang/LC_MESSAGES; \
+         dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
          if test -r "$(MKINSTALLDIRS)"; then \
            $(MKINSTALLDIRS) $$dir; \
          else \
--- ./gimp-1.1.26/po-script-fu/Makefile.in.in.orig      Sun Jun 25 21:28:30 2000
+++ ./gimp-1.1.26/po-script-fu/Makefile.in.in   Sun Oct  1 14:52:53 2000
@@ -130,7 +130,7 @@
            *)     destdir=$(localedir);; \
          esac; \
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
-         dir=$$destdir/$$lang/LC_MESSAGES; \
+         dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
          if test -r "$(MKINSTALLDIRS)"; then \
            $(MKINSTALLDIRS) $$dir; \
          else \
--- ./gimp-1.1.26/gimp.spec.in.orig     Sat Aug 19 18:08:46 2000
+++ ./gimp-1.1.26/gimp.spec.in  Sun Oct  1 14:48:41 2000
@@ -91,7 +91,7 @@
 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/%{prefix}/info $RPM_BUILD_ROOT/%{prefix}/include \
        $RPM_BUILD_ROOT/%{prefix}/lib $RPM_BUILD_ROOT/%{prefix}/bin
-make prefix=$RPM_BUILD_ROOT/%{prefix} PREFIX=$RPM_BUILD_ROOT/%{prefix} install
+make DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/%{prefix} install
 
 # Strip the executables
 strip $RPM_BUILD_ROOT/%{prefix}/bin/gimp
@@ -230,6 +230,10 @@
 %files perl -f gimp-perl-files
 
 %changelog
+* Sun Oct 01 2000 Marco Lamberto <[EMAIL PROTECTED]>
+- updated the install section by adding the DESTDIR environment var to
+  "make install"
+
 * Fri Apr 14 2000 Matt Wilson <[EMAIL PROTECTED]>
 - include subdirs in the help find
 - remove gimp-help-files generation

Reply via email to