Fix shared library versioning (our ldconfig wants a single version

number and therefore ignores libflu.so.2.14).
This commit is contained in:
Jean-Yves Lefort 2006-04-10 07:46:56 +00:00
parent d1c9597f55
commit 1c4b830bd4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159251
3 changed files with 21 additions and 4 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= flu
PORTVERSION= 2.14
PORTREVISION= 1
CATEGORIES= x11-toolkits
MASTER_SITES= http://www.osc.edu/~jbryan/FLU/
DISTNAME= FLU_${PORTVERSION}
@ -19,12 +20,15 @@ LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk
USE_X_PREFIX= yes
USE_GL= yes
INSTALLS_SHLIB= yes
NO_FILTER_SHLIBS= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --I=${X11BASE}/include --L=${X11BASE}/lib
USE_GMAKE= yes
PORTDOCS= *
SHLIB_VERSION= 0
PLIST_SUB= SHLIB_VERSION="${SHLIB_VERSION}"
MAKE_ENV= SHLIB_VERSION="${SHLIB_VERSION}"
post-patch:
@${RM} -rf ${WRKSRC}/doc/CVS

View file

@ -1,5 +1,18 @@
--- src/Makefile.orig Thu Sep 23 21:24:39 2004
+++ src/Makefile Fri Apr 7 15:21:24 2006
+++ src/Makefile Mon Apr 10 09:35:07 2006
@@ -47,10 +47,10 @@
STATIC_LIB_DIR = ../lib
SHARED_LINK = libflu.$(SHARED_EXT)
-SHARED_LIB = $(SHARED_LINK).$(VERSION)
+SHARED_LIB = $(SHARED_LINK).$(SHLIB_VERSION)
STATIC_LIB = libflu.a
GL_SHARED_LINK = libflu_gl.$(SHARED_EXT)
-GL_SHARED_LIB = $(GL_SHARED_LINK).$(VERSION)
+GL_SHARED_LIB = $(GL_SHARED_LINK).$(SHLIB_VERSION)
GL_STATIC_LIB = libflu_gl.a
LIBS = $(STATIC_LIB)
@@ -89,15 +89,15 @@
install: $(LIBS)
@ echo "Installing libraries in $(LPREFIX)..."

View file

@ -35,10 +35,10 @@ include/FLU/flu_file_chooser_pixmaps.h
include/FLU/flu_pixmaps.h
lib/libflu.a
lib/libflu.so
lib/libflu.so.2.14
lib/libflu.so.%%SHLIB_VERSION%%
lib/libflu_gl.a
lib/libflu_gl.so
lib/libflu_gl.so.2.14
lib/libflu_gl.so.%%SHLIB_VERSION%%
%%EXAMPLESDIR%%/Flu_Button_Try.cpp
%%EXAMPLESDIR%%/Flu_Chat_Buffer_Try.cpp
%%EXAMPLESDIR%%/Flu_Combo_Box_Try.cpp