Added DESTDIR support
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401394
This commit is contained in:
parent
e149d87d15
commit
3b3e0efc02
2 changed files with 13 additions and 13 deletions
12
Makefile.in
12
Makefile.in
|
@ -6,11 +6,11 @@ objects = build
|
||||||
depend = build-deps
|
depend = build-deps
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
bindir = @bindir@
|
bindir = $(DESTDIR)@bindir@
|
||||||
libdir = @libdir@
|
libdir = $(DESTDIR)@libdir@
|
||||||
includedir = @includedir@
|
includedir = $(DESTDIR)@includedir@
|
||||||
datadir = @datadir@
|
datadir = $(DESTDIR)@datadir@
|
||||||
mandir = @mandir@
|
mandir = $(DESTDIR)@mandir@
|
||||||
distpath = $(srcdir)/..
|
distpath = $(srcdir)/..
|
||||||
distdir = SDL-@SDL_VERSION@
|
distdir = SDL-@SDL_VERSION@
|
||||||
distfile = $(distdir).tar.gz
|
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 $@
|
BUILDC = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c `echo $? | sed 's| .*||'` -o $@
|
||||||
BUILDCC = $(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 $@
|
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_AGE = @LT_AGE@
|
||||||
LT_CURRENT = @LT_CURRENT@
|
LT_CURRENT = @LT_CURRENT@
|
||||||
|
|
14
SDL.spec.in
14
SDL.spec.in
|
@ -45,13 +45,13 @@ make
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%ifos linux
|
%ifos linux
|
||||||
make install prefix=$RPM_BUILD_ROOT/%{prefix} \
|
make install prefix=$RPM_BUILD_ROOT%{prefix} \
|
||||||
bindir=$RPM_BUILD_ROOT/%{_bindir} \
|
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
||||||
libdir=$RPM_BUILD_ROOT/%{_libdir} \
|
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
||||||
includedir=$RPM_BUILD_ROOT/%{_includedir} \
|
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
||||||
datadir=$RPM_BUILD_ROOT/%{_datadir} \
|
datadir=$RPM_BUILD_ROOT%{_datadir} \
|
||||||
mandir=$RPM_BUILD_ROOT/%{_mandir}
|
mandir=$RPM_BUILD_ROOT%{_mandir}
|
||||||
ln -s libSDL-1.2.so.0 $RPM_BUILD_ROOT/%{prefix}/lib/libSDL-1.1.so.0
|
ln -s libSDL-1.2.so.0 $RPM_BUILD_ROOT%{prefix}/lib/libSDL-1.1.so.0
|
||||||
%else
|
%else
|
||||||
%makeinstall
|
%makeinstall
|
||||||
%endif
|
%endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue