I spotted a strange undocumented MODGNU_SHARED_LIBS variable
in these and, digging into it, I found the words 'XXX to be killed'
where it's handled in gnu.port.mk. If that's indeed what we want to
do, this diff takes us 2 steps closer.
Besides gnu.port.mk there are another 12 ports using it:
devel/libproplist devel/libtool devel/libusb plan9/9libs print/a2ps
security/dante security/opensc security/pcsc-lite security/towitoko
www/cgicc www/libghttp x11/matchbox/libmatchbox
Comments? OKs?
Index: mhash/Makefile
===================================================================
RCS file: /cvs/ports/security/mhash/Makefile,v
retrieving revision 1.19
diff -u -p -r1.19 Makefile
--- mhash/Makefile 18 Oct 2010 21:41:45 -0000 1.19
+++ mhash/Makefile 15 Jun 2011 20:30:46 -0000
@@ -5,8 +5,6 @@ COMMENT= strong hash library
DISTNAME= mhash-0.9.9.9
CATEGORIES= security
SHARED_LIBS= mhash 2.1 # .2.1
-MODGNU_SHARED_LIBS=mhash ''
-LIBmhash_ALIAS= realmhash
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mhash/}
@@ -26,5 +24,8 @@ USE_GROFF = Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static
+
+MAKE_FLAGS+= librealmhash_la_LDFLAGS='-version-info
${LIBmhash_VERSION:S/./:/}:0' \
+ LIBmhash_LTVERSION='-version-info ${LIBmhash_VERSION:S/./:/}:0'
.include <bsd.port.mk>
Index: libmcrypt/Makefile
===================================================================
RCS file: /cvs/ports/security/libmcrypt/Makefile,v
retrieving revision 1.24
diff -u -p -r1.24 Makefile
--- libmcrypt/Makefile 20 Nov 2010 17:22:43 -0000 1.24
+++ libmcrypt/Makefile 15 Jun 2011 20:30:46 -0000
@@ -6,8 +6,6 @@ DISTNAME = libmcrypt-2.5.8
REVISION = 1
CATEGORIES = security
SHARED_LIBS = mcrypt 8.7 # .8.7
-MODGNU_SHARED_LIBS = mcrypt ''
-LIBmcrypt_ALIAS = realmcrypt
HOMEPAGE = http://mcrypt.sf.net/
@@ -27,5 +25,8 @@ USE_GROFF = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = ${CONFIGURE_SHARED}
CONFIGURE_ARGS += --enable-static
+
+MAKE_FLAGS += librealmcrypt_la_LDFLAGS='-version-info
${LIBmcrypt_VERSION:S/./:/}:0' \
+ LIBmcrypt_LTVERSION='-version-info
${LIBmcrypt_VERSION:S/./:/}:0'
.include <bsd.port.mk>