summaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2008-04-19 22:24:47 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2008-04-19 22:24:47 +0800
commit8abcdf228a140b0df2c64aba7c2e3f0149528861 (patch)
tree509290b00cfa29bfabd5ddcf265dd18163a037e8 /Mk
parentee1813f52e6f5d42238c2feb271e6ccba11219b8 (diff)
downloadmarcuscom-ports-8abcdf228a140b0df2c64aba7c2e3f0149528861.tar
marcuscom-ports-8abcdf228a140b0df2c64aba7c2e3f0149528861.tar.gz
marcuscom-ports-8abcdf228a140b0df2c64aba7c2e3f0149528861.tar.bz2
marcuscom-ports-8abcdf228a140b0df2c64aba7c2e3f0149528861.tar.lz
marcuscom-ports-8abcdf228a140b0df2c64aba7c2e3f0149528861.tar.xz
marcuscom-ports-8abcdf228a140b0df2c64aba7c2e3f0149528861.tar.zst
marcuscom-ports-8abcdf228a140b0df2c64aba7c2e3f0149528861.zip
Extend ltverhack to support defined lib-versioning
ie: USE_GNOME=ltverhack:9 will give you libname.so.9 -- USE_GNOME=ltverhack still works like it used to. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10877 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.gnome.mk15
1 files changed, 10 insertions, 5 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk
index 3c74c5e08..3b0c5bba6 100644
--- a/Mk/bsd.gnome.mk
+++ b/Mk/bsd.gnome.mk
@@ -3,7 +3,7 @@
#
# $FreeBSD$
# $NetBSD: $
-# $MCom: ports/Mk/bsd.gnome.mk,v 1.451 2008/04/03 16:59:09 ahze Exp $
+# $MCom: ports/Mk/bsd.gnome.mk,v 1.452 2008/04/03 18:46:13 ahze Exp $
#
# Please view me with 4 column tabs!
@@ -656,7 +656,7 @@ ${component}_USE_GNOME_IMPL+=${${subcomponent}_USE_GNOME_IMPL}
# Also, check to see if each component has a desktop requirement. If it does,
# and if the user's chosen desktop is not of the same version, mark the
# port as IGNORE.
-. for component in ${USE_GNOME}
+. for component in ${USE_GNOME:C/^([^:]+).*/\1/}
. if defined(GNOME_DESKTOP_VERSION) && \
defined(${component}_GNOME_DESKTOP_VERSION)
. if ${GNOME_DESKTOP_VERSION}!=${${component}_GNOME_DESKTOP_VERSION}
@@ -688,16 +688,21 @@ lthacks_PRE_PATCH= ${CP} -pf ${LTMAIN} ${WRKDIR}/gnome-ltmain.sh && \
${PATCH_WRKSRC}/$$file; \
done;
.else
-. if ${USE_GNOME:Mltverhack}!="" || ${USE_GNOME:Mltasneededhack}!=""
+. if ${USE_GNOME:Mltverhack*}!="" || ${USE_GNOME:Mltasneededhack}!=""
IGNORE= cannot install: ${PORTNAME} uses the ltverhack and/or ltasneededhack GNOME components but does not use libtool
. endif
.endif
+.if ${USE_GNOME:Mltverhack\:*:C/^[^:]+:([^:]+).*/\1/}==""
+ltverhack_LIB_VERSION= major=.`expr $$current - $$age`
+.else
+ltverhack_LIB_VERSION= major=".${USE_GNOME:Mltverhack\:*:C/^[^:]+:([^:]+).*/\1/}"
+.endif
ltverhack_PATCH_DEPENDS=${LIBTOOL_DEPENDS}
ltverhack_PRE_PATCH= for file in gnome-ltmain.sh gnome-libtool; do \
if [ -f ${WRKDIR}/$$file ]; then \
${REINPLACE_CMD} -e \
- '/freebsd-elf)/,/;;/ s|major="\.$$current"|major=.`expr $$current - $$age`|; \
+ '/freebsd-elf)/,/;;/ s|major="\.$$current"|${ltverhack_LIB_VERSION}|; \
/freebsd-elf)/,/;;/ s|versuffix="\.$$current"|versuffix="$$major"|' \
${WRKDIR}/$$file; \
fi; \
@@ -714,7 +719,7 @@ ltasneededhack_PRE_PATCH= if [ -f ${WRKDIR}/gnome-libtool ]; then \
# Then traverse through all components, check which of them
# exist in ${_USE_GNOME} and set variables accordingly
.ifdef _USE_GNOME
-. if ${USE_GNOME:Mltverhack}!= "" || ${USE_GNOME:Mltasneededhack}!= ""
+. if ${USE_GNOME:Mltverhack*}!= "" || ${USE_GNOME:Mltasneededhack}!= ""
GNOME_PRE_PATCH+= ${lthacks_PRE_PATCH}
. endif
. for component in ${_USE_GNOME_ALL}