aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-02-10 06:00:35 +0800
committertijl <tijl@FreeBSD.org>2014-02-10 06:00:35 +0800
commitdd9259582d74fc417c2c685d463bf444692bb902 (patch)
tree7fbadf212a3b51dbbaa2f9ed1d93d58ceed94b58
parentc5c99a5c547db0dca3b32ba04fd41be9c5b94a65 (diff)
downloadfreebsd-ports-gnome-dd9259582d74fc417c2c685d463bf444692bb902.tar.gz
freebsd-ports-gnome-dd9259582d74fc417c2c685d463bf444692bb902.tar.zst
freebsd-ports-gnome-dd9259582d74fc417c2c685d463bf444692bb902.zip
- Support libtool 1.3 which has an ltconfig script.
- Support -shrext command line option. (Used in audio/pd.)
-rw-r--r--Mk/Uses/libtool.mk22
1 files changed, 14 insertions, 8 deletions
diff --git a/Mk/Uses/libtool.mk b/Mk/Uses/libtool.mk
index 09c5576bdc0e..cc215cca48ec 100644
--- a/Mk/Uses/libtool.mk
+++ b/Mk/Uses/libtool.mk
@@ -17,18 +17,24 @@ libtool_ARGS?=
_INCLUDE_USES_LIBTOOL_POST_MK= yes
patch-libtool:
- @${FIND} ${WRKDIR} -type f -name configure | \
- ${XARGS} ${REINPLACE_CMD} \
+ @${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
+ -type f | ${XARGS} ${REINPLACE_CMD} \
-e '/link_all_deplibs=/s/=unknown/=no/' \
-e '/objformat=/s/echo aout/echo elf/'
.if ! ${libtool_ARGS:Moldver}
- @${FIND} ${WRKDIR} -type f -name configure | \
- ${XARGS} ${REINPLACE_CMD} \
- -e "/freebsd-elf\*)/,+1 s/library_names_spec=.*/ \
- library_names_spec='\$$libname\$$release.so\$$versuffix \
- \$$libname\$$release.so\$$major \$$libname.so' \
- soname_spec='\$$libname\$$release.so\$$major'/"
+ @${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
+ -type f | ${XARGS} ${REINPLACE_CMD} \
+ -e "/freebsd-elf\\*)/,/;;/ { \
+ /library_names_spec=.*\\.so/ \
+ s/=.*/='\$$libname\$$release.so\$$versuffix \
+ \$$libname\$$release.so\$$major \$$libname.so' \
+ soname_spec='\$$libname\$$release.so\$$major'/; \
+ /library_names_spec=.*shared_ext/ \
+ s/=.*/='\$$libname\$$release\$$shared_ext\$$versuffix \
+ \$$libname\$$release\$$shared_ext\$$major \
+ \$$libname\$$shared_ext' \
+ soname_spec='\$$libname\$$release\$$shared_ext\$$major'/; }"
@${FIND} ${WRKDIR} -type f -name ltmain.sh | \
${XARGS} ${REINPLACE_CMD} \