aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/flu
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/flu')
-rw-r--r--x11-toolkits/flu/Makefile6
-rw-r--r--x11-toolkits/flu/files/patch-src_Makefile15
-rw-r--r--x11-toolkits/flu/pkg-plist4
3 files changed, 21 insertions, 4 deletions
diff --git a/x11-toolkits/flu/Makefile b/x11-toolkits/flu/Makefile
index 184996772267..2164fc86d09a 100644
--- a/x11-toolkits/flu/Makefile
+++ b/x11-toolkits/flu/Makefile
@@ -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
diff --git a/x11-toolkits/flu/files/patch-src_Makefile b/x11-toolkits/flu/files/patch-src_Makefile
index cb7eec7d3aa5..cf59c46780ae 100644
--- a/x11-toolkits/flu/files/patch-src_Makefile
+++ b/x11-toolkits/flu/files/patch-src_Makefile
@@ -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)..."
diff --git a/x11-toolkits/flu/pkg-plist b/x11-toolkits/flu/pkg-plist
index 93727c223ddd..693202ff889a 100644
--- a/x11-toolkits/flu/pkg-plist
+++ b/x11-toolkits/flu/pkg-plist
@@ -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