From f7f288317d3d7d2fd5842a0c05dd11ee8425e9b5 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 20 Feb 2006 11:49:16 +0000 Subject: [PATCH] Added DESTDIR support --- Makefile.in | 12 ++++++------ SDL.spec.in | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Makefile.in b/Makefile.in index 315c71080..b22c4e935 100644 --- a/Makefile.in +++ b/Makefile.in @@ -6,11 +6,11 @@ objects = build depend = build-deps prefix = @prefix@ exec_prefix = @exec_prefix@ -bindir = @bindir@ -libdir = @libdir@ -includedir = @includedir@ -datadir = @datadir@ -mandir = @mandir@ +bindir = $(DESTDIR)@bindir@ +libdir = $(DESTDIR)@libdir@ +includedir = $(DESTDIR)@includedir@ +datadir = $(DESTDIR)@datadir@ +mandir = $(DESTDIR)@mandir@ distpath = $(srcdir)/.. distdir = SDL-@SDL_VERSION@ distfile = $(distdir).tar.gz @@ -34,7 +34,7 @@ DIST = acinclude.m4 autogen.sh Borland.html Borland.zip BUGS build-scripts confi BUILDC = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c `echo $? | sed 's| .*||'` -o $@ BUILDCC = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c `echo $? | sed 's| .*||'` -o $@ BUILDM = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c `echo $? | sed 's| .*||'` -o $@ -BUILDASM = $(LIBTOOL) --tag=CC --mode=compile @ac_aux_dir@/strip_fPIC.sh $(NASM) $? -o $@ +BUILDASM = $(LIBTOOL) --tag=CC --mode=compile @ac_aux_dir@/strip_fPIC.sh $(NASM) `echo $? | sed 's| .*||'` -o $@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ diff --git a/SDL.spec.in b/SDL.spec.in index d41693a1d..2339a3457 100644 --- a/SDL.spec.in +++ b/SDL.spec.in @@ -45,13 +45,13 @@ make %install rm -rf $RPM_BUILD_ROOT %ifos linux -make install prefix=$RPM_BUILD_ROOT/%{prefix} \ - bindir=$RPM_BUILD_ROOT/%{_bindir} \ - libdir=$RPM_BUILD_ROOT/%{_libdir} \ - includedir=$RPM_BUILD_ROOT/%{_includedir} \ - datadir=$RPM_BUILD_ROOT/%{_datadir} \ - mandir=$RPM_BUILD_ROOT/%{_mandir} -ln -s libSDL-1.2.so.0 $RPM_BUILD_ROOT/%{prefix}/lib/libSDL-1.1.so.0 +make install prefix=$RPM_BUILD_ROOT%{prefix} \ + bindir=$RPM_BUILD_ROOT%{_bindir} \ + libdir=$RPM_BUILD_ROOT%{_libdir} \ + includedir=$RPM_BUILD_ROOT%{_includedir} \ + datadir=$RPM_BUILD_ROOT%{_datadir} \ + mandir=$RPM_BUILD_ROOT%{_mandir} +ln -s libSDL-1.2.so.0 $RPM_BUILD_ROOT%{prefix}/lib/libSDL-1.1.so.0 %else %makeinstall %endif