libdrawtext

changeset 10:5de80fdb40db

more macosx fixes
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 20 Sep 2011 15:22:52 +0300
parents 9d44f6b0591f
children 805936da8d6b
files Makefile.in
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/Makefile.in	Tue Sep 20 15:16:35 2011 +0300
     1.2 +++ b/Makefile.in	Tue Sep 20 15:22:52 2011 +0300
     1.3 @@ -16,6 +16,7 @@
     1.4  else
     1.5  	soname = $(name).so.$(abi)
     1.6  	lib_so = $(soname).$(rev)
     1.7 +	linkname = $(name).so
     1.8  	sharedopt = -shared -Wl,-soname,$(soname)
     1.9  
    1.10  	libgl = -lGL -lGLU -lGLEW
    1.11 @@ -54,8 +55,8 @@
    1.12  	cp $(lib_a) $(PREFIX)/lib/$(lib_a)
    1.13  	cp $(lib_so) $(PREFIX)/lib/$(lib_so)
    1.14  	cp src/drawtext.h $(PREFIX)/include/drawtext.h
    1.15 -	rm -f $(PREFIX)/lib/$(name).so
    1.16 -	cd $(PREFIX)/lib && ln -s $(lib_so) $(name).so
    1.17 +	[ -n "$(linkname)" ] && rm -f $(PREFIX)/lib/$(linkname) || true
    1.18 +	[ -n "$(linkname)" ] && cd $(PREFIX)/lib && ln -s $(lib_so) $(linkname) || true
    1.19  
    1.20  
    1.21  .PHONY: uninstall