| @@ -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 | # |
66 | USE_LANGUAGES= c c++ | | 66 | USE_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. |
70 | GNU_CONFIGURE_PREFIX= ${PREFIX}/cross-${MACHINE_ARCH} | | 70 | GNU_CONFIGURE_PREFIX= ${PREFIX}/cross-${MACHINE_ARCH} |
71 | CONFIGURE_ARGS+= --disable-ltdl-install | | 71 | CONFIGURE_ARGS+= --disable-ltdl-install |
72 | CONFIGURE_ARGS+= F77=no FC=no | | 72 | CONFIGURE_ARGS+= F77=no FC=no |
73 | | | 73 | |
74 | USE_TOOLS+= echo | | 74 | USE_TOOLS+= echo |
75 | | | 75 | |
| | | 76 | REPLACE_SH+= libtoolize.in |
| | | 77 | |
76 | # XXX Added for cross-compilation. | | 78 | # XXX Added for cross-compilation. |
77 | FILESDIR= ../../devel/libtool-base/files | | 79 | FILESDIR= ../../devel/libtool-base/files |
78 | | | 80 | |
79 | .PHONY: fix-libtool | | 81 | .PHONY: fix-libtool |
80 | fix-libtool: | | 82 | fix-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 | |