Thu Jun 8 22:59:17 2023 UTC ()
cross-libtool-base: Sync with libtool-base to fix libtoolize.in #!.


(riastradh)
diff -r1.7 -r1.8 pkgsrc/cross/cross-libtool-base/Makefile

cvs diff -r1.7 -r1.8 pkgsrc/cross/cross-libtool-base/Makefile (expand / switch to unified diff)

--- pkgsrc/cross/cross-libtool-base/Makefile 2022/06/28 11:31:14 1.7
+++ pkgsrc/cross/cross-libtool-base/Makefile 2023/06/08 22:59:17 1.8
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.7 2022/06/28 11:31:14 wiz Exp $ 1# $NetBSD: Makefile,v 1.8 2023/06/08 22:59:17 riastradh Exp $
2 2
3# XXX This is kludgerific copypasta of devel/libtool-base/Makefile for 3# XXX This is kludgerific copypasta of devel/libtool-base/Makefile for
4# cross-compilation. Please make it go away! 4# cross-compilation. Please make it go away!
5 5
6########################################################################### 6###########################################################################
7########################################################################### 7###########################################################################
8# 8#
9# HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS: 9# HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS:
10# 10#
11########################################################################### 11###########################################################################
12########################################################################### 12###########################################################################
13# 13#
14# This package is maintained specially in order to preserve pkgsrc 14# This package is maintained specially in order to preserve pkgsrc
@@ -63,26 +63,28 @@ CFLAGS.SunOS+= ${_COMPILER_ABI_FLAG.${AB @@ -63,26 +63,28 @@ CFLAGS.SunOS+= ${_COMPILER_ABI_FLAG.${AB
63# We are going to want libtool to find the same versions of the C, C++, 63# We are going to want libtool to find the same versions of the C, C++,
64# and Fortran compilers. 64# and Fortran compilers.
65# 65#
66USE_LANGUAGES= c c++ 66USE_LANGUAGES= c c++
67# XXX Added for cross-compilation. XXX Should be ${TARGET_ARCH}, but 67# XXX Added for cross-compilation. XXX Should be ${TARGET_ARCH}, but
68# currently we have to fake-cross-compile libtool because it's broken 68# currently we have to fake-cross-compile libtool because it's broken
69# upstream. 69# upstream.
70GNU_CONFIGURE_PREFIX= ${PREFIX}/cross-${MACHINE_ARCH} 70GNU_CONFIGURE_PREFIX= ${PREFIX}/cross-${MACHINE_ARCH}
71CONFIGURE_ARGS+= --disable-ltdl-install 71CONFIGURE_ARGS+= --disable-ltdl-install
72CONFIGURE_ARGS+= F77=no FC=no 72CONFIGURE_ARGS+= F77=no FC=no
73 73
74USE_TOOLS+= echo 74USE_TOOLS+= echo
75 75
 76REPLACE_SH+= libtoolize.in
 77
76# XXX Added for cross-compilation. 78# XXX Added for cross-compilation.
77FILESDIR= ../../devel/libtool-base/files 79FILESDIR= ../../devel/libtool-base/files
78 80
79.PHONY: fix-libtool 81.PHONY: fix-libtool
80fix-libtool: 82fix-libtool:
81 cd ${WRKSRC}; for f in libtool; do \ 83 cd ${WRKSRC}; for f in libtool; do \
82 ${SED} -e "s,-L${BUILDLINK_DIR}/lib *,,g" \ 84 ${SED} -e "s,-L${BUILDLINK_DIR}/lib *,,g" \
83 -e "s,${BUILDLINK_DIR}/lib *,,g" \ 85 -e "s,${BUILDLINK_DIR}/lib *,,g" \
84 $$f > $$f.new; \ 86 $$f > $$f.new; \
85 if [ -x $$f ]; then ${CHMOD} +x $$f.new; fi; \ 87 if [ -x $$f ]; then ${CHMOD} +x $$f.new; fi; \
86 ${MV} -f $$f.new $$f; \ 88 ${MV} -f $$f.new $$f; \
87 done 89 done
88 90