aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/hyperic-sigar
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2010-05-03 17:14:33 +0800
committerskv <skv@FreeBSD.org>2010-05-03 17:14:33 +0800
commit15c1cf413b906d0275ba51c3cd40be100c1fd452 (patch)
tree8aab0104ae6d790b6eb800f1f426c6bbfa19578a /sysutils/hyperic-sigar
parent1848fa5ff1a651babb0acb124564b90824dc26fd (diff)
downloadfreebsd-ports-gnome-15c1cf413b906d0275ba51c3cd40be100c1fd452.tar.gz
freebsd-ports-gnome-15c1cf413b906d0275ba51c3cd40be100c1fd452.tar.zst
freebsd-ports-gnome-15c1cf413b906d0275ba51c3cd40be100c1fd452.zip
Add SHLIB_MAJOR.
Diffstat (limited to 'sysutils/hyperic-sigar')
-rw-r--r--sysutils/hyperic-sigar/Makefile7
-rw-r--r--sysutils/hyperic-sigar/pkg-plist1
2 files changed, 7 insertions, 1 deletions
diff --git a/sysutils/hyperic-sigar/Makefile b/sysutils/hyperic-sigar/Makefile
index 85d49e5f500b..85f2bcceb41e 100644
--- a/sysutils/hyperic-sigar/Makefile
+++ b/sysutils/hyperic-sigar/Makefile
@@ -7,6 +7,7 @@
PORTNAME= hyperic-sigar
PORTVERSION= 1.6.3
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF
MASTER_SITE_SUBDIR= sigar/sigar/${PORTVERSION:C/\.[0-9]+$//}
@@ -23,6 +24,9 @@ USE_ANT= yes
USE_PERL5_BUILD=yes
USE_LDCONFIG= yes
+SHLIB_MAJOR= 0
+PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 900007
@@ -32,7 +36,8 @@ BROKEN= fails to build with new utmpx
do-install:
${MKDIR} ${PREFIX}/include ${PREFIX}/lib ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/sigar-bin/include/*.h ${PREFIX}/include/
- ${INSTALL_DATA} ${WRKSRC}/sigar-bin/lib/libsigar-*.so ${PREFIX}/lib/libsigar.so
+ ${INSTALL_DATA} ${WRKSRC}/sigar-bin/lib/libsigar-*.so ${PREFIX}/lib/libsigar.so.${SHLIB_MAJOR}
+ ${LN} -sf ${PREFIX}/lib/libsigar.so.${SHLIB_MAJOR} ${PREFIX}/lib/libsigar.so
${INSTALL_DATA} ${WRKSRC}/sigar-bin/lib/sigar.jar ${JAVAJARDIR}/
.include <bsd.port.post.mk>
diff --git a/sysutils/hyperic-sigar/pkg-plist b/sysutils/hyperic-sigar/pkg-plist
index c13b08ccb065..6d598ca6b6b2 100644
--- a/sysutils/hyperic-sigar/pkg-plist
+++ b/sysutils/hyperic-sigar/pkg-plist
@@ -3,5 +3,6 @@ include/sigar_fileinfo.h
include/sigar_format.h
include/sigar_log.h
include/sigar_ptql.h
+lib/libsigar.so.%%SHLIB_MAJOR%%
lib/libsigar.so
%%JAVAJARDIR%%/sigar.jar