Skip to content

Commit

Permalink
Added DESTDIR support
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 20, 2006
1 parent c06a5ce commit f7f2883
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions Makefile.in
Expand Up @@ -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
Expand All @@ -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@
Expand Down
14 changes: 7 additions & 7 deletions SDL.spec.in
Expand Up @@ -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
Expand Down

0 comments on commit f7f2883

Please sign in to comment.