~ubuntu-branches/ubuntu/trusty/libalien-sdl-perl/trusty

« back to all changes in this revision

Viewing changes to patches/libsdl-1.2.13-sdl-config.patch

  • Committer: Package Import Robot
  • Author(s): Dominique Dumont
  • Date: 2012-01-15 17:41:32 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120115174132-o0imj27hanlk97eu
Tags: 1.430-1
* Imported Upstream version 1.430
* control: add dependency info to help backport on squeeze

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- SDL-1.2.14/sdl-config.in
 
2
+++ SDL-1.2.14/sdl-config.in
 
3
@@ -44,7 +44,12 @@
 
4
       echo -I@includedir@/SDL @SDL_CFLAGS@
 
5
       ;;
 
6
 @ENABLE_SHARED_TRUE@    --libs)
 
7
-@ENABLE_SHARED_TRUE@      echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
 
8
+@ENABLE_SHARED_TRUE@      if test x"${prefix}" != x"/usr" ; then
 
9
+@ENABLE_SHARED_TRUE@          libdirs="-L@libdir@"
 
10
+@ENABLE_SHARED_TRUE@      else
 
11
+@ENABLE_SHARED_TRUE@          libdirs=""
 
12
+@ENABLE_SHARED_TRUE@      fi
 
13
+@ENABLE_SHARED_TRUE@      echo $libdirs @SDL_RLD_FLAGS@ @SDL_LIBS@
 
14
 @ENABLE_SHARED_TRUE@      ;;
 
15
 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@    --static-libs)
 
16
 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@    --libs|--static-libs)