diff src/libaudacious/Makefile @ 2583:098eccb523c3 trunk

[svn] fix wrong library symlink, there was a hardcoded libaudacious.so.4.0.0
author gw666
date Mon, 26 Feb 2007 06:14:54 -0800
parents 29116f52056f
children a2afa6ca7294
line wrap: on
line diff
--- a/src/libaudacious/Makefile	Mon Feb 26 05:29:04 2007 -0800
+++ b/src/libaudacious/Makefile	Mon Feb 26 06:14:54 2007 -0800
@@ -5,6 +5,7 @@
 
 OBJECTIVE_LIBS = libaudacious$(SHARED_SUFFIX)
 OBJECTIVE_SONAME_SUFFIX = 5
+LIBAUDACIOUS_SUFFIX = 5.0.0
 
 LIBADD = \
 	$(GTK_LIBS) \
@@ -32,8 +33,8 @@
 include ../../mk/objective.mk
 
 install-posthook:
-	@mv ${DESTDIR}/${LIBDIR}/libaudacious$(SHARED_SUFFIX) ${DESTDIR}/${LIBDIR}/libaudacious$(SHARED_SUFFIX).4.0.0
-	@ln -sf libaudacious$(SHARED_SUFFIX).5.0.0 \
+	@mv ${DESTDIR}/${LIBDIR}/libaudacious$(SHARED_SUFFIX) ${DESTDIR}/${LIBDIR}/libaudacious$(SHARED_SUFFIX).$(LIBAUDACIOUS_SUFFIX)
+	@ln -sf libaudacious$(SHARED_SUFFIX).$(LIBAUDACIOUS_SUFFIX) \
 		${DESTDIR}/${LIBDIR}/libaudacious$(SHARED_SUFFIX).5
 	@ln -sf libaudacious$(SHARED_SUFFIX).5 \
 		${DESTDIR}/${LIBDIR}/libaudacious$(SHARED_SUFFIX)