2016-03-10 13:43:48 +01:00
|
|
|
# $NetBSD: Makefile,v 1.116 2016/03/10 12:43:48 tnn Exp $
|
2004-10-14 21:04:56 +02:00
|
|
|
|
2005-05-18 16:40:04 +02:00
|
|
|
###########################################################################
|
|
|
|
###########################################################################
|
|
|
|
#
|
|
|
|
# HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS:
|
|
|
|
#
|
|
|
|
###########################################################################
|
|
|
|
###########################################################################
|
2004-12-22 03:44:02 +01:00
|
|
|
#
|
2005-05-18 16:40:04 +02:00
|
|
|
# This package is maintained specially in order to preserve pkgsrc
|
|
|
|
# specific OS changes that diverge from the "out of the box" libtool.
|
|
|
|
# In order to keep this package in a maintainable condition, the .m4 files
|
|
|
|
# must be manipulated in order to generate the patch-* files.
|
2004-12-22 03:44:02 +01:00
|
|
|
#
|
2004-12-22 03:46:03 +01:00
|
|
|
# See devel/libtool/patches/manual.README for instructions on how to make
|
2005-05-18 16:40:04 +02:00
|
|
|
# these patch files properly; otherwise your changes WILL be lost on the
|
|
|
|
# next libtool update.
|
2004-12-22 03:44:02 +01:00
|
|
|
#
|
2005-05-18 16:40:04 +02:00
|
|
|
# DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE
|
|
|
|
# INSTRUCTIONS. There are no exceptions to this rule.
|
|
|
|
#
|
|
|
|
###########################################################################
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
.include "../../devel/libtool/Makefile.common"
|
|
|
|
|
2004-10-14 21:04:56 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/-/-base-/}
|
2016-03-10 13:43:48 +01:00
|
|
|
PKGREVISION= 12
|
2001-02-03 06:26:03 +01:00
|
|
|
|
2001-02-16 15:38:16 +01:00
|
|
|
COMMENT= Generic shared library support script (the script itself)
|
|
|
|
|
2001-04-20 02:07:29 +02:00
|
|
|
CONFLICTS+= libtool<=1.3.5nb11
|
2001-02-19 18:20:14 +01:00
|
|
|
|
2003-02-17 16:27:58 +01:00
|
|
|
TEST_TARGET= check
|
2001-02-03 06:26:03 +01:00
|
|
|
|
2009-12-18 23:11:10 +01:00
|
|
|
OVERRIDE_DIRDEPTH.install-sh= 1
|
|
|
|
|
2016-02-25 13:12:47 +01:00
|
|
|
# Always build libraries and executables that use the runtime linker.
|
2005-03-05 08:43:05 +01:00
|
|
|
# in addition, disable libtool locking, as the test is broken on AIX,
|
|
|
|
# and results in files being locked indefinitely.
|
2016-02-25 13:12:47 +01:00
|
|
|
LDFLAGS.AIX+= -Wl,-brtl
|
|
|
|
CONFIGURE_ARGS.AIX+= --disable-libtool-lock
|
2005-03-18 16:06:10 +01:00
|
|
|
|
|
|
|
# The MIPSpro compiler doesn't support -c with -o, but the locking
|
|
|
|
# workaround is itself broken. Disable it unconditionally.
|
2016-02-25 13:12:47 +01:00
|
|
|
CONFIGURE_ARGS.IRIX+= --disable-libtool-lock
|
2005-03-18 16:06:10 +01:00
|
|
|
|
2016-02-25 13:12:47 +01:00
|
|
|
CFLAGS.SunOS+= ${_COMPILER_ABI_FLAG.${ABI}}
|
2005-03-18 16:06:10 +01:00
|
|
|
|
2004-10-14 21:04:56 +02:00
|
|
|
# We are going to want libtool to find the same versions of the C, C++,
|
|
|
|
# and Fortran compilers.
|
2004-02-09 07:08:02 +01:00
|
|
|
#
|
2013-05-09 15:53:47 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2009-12-15 18:35:36 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-ltdl-install
|
2013-08-27 17:50:23 +02:00
|
|
|
CONFIGURE_ARGS+= F77=no FC=no
|
2003-01-10 09:44:18 +01:00
|
|
|
|
2005-05-20 17:59:50 +02:00
|
|
|
USE_TOOLS+= echo
|
|
|
|
|
2004-02-29 11:28:24 +01:00
|
|
|
.PHONY: fix-libtool
|
|
|
|
fix-libtool:
|
|
|
|
cd ${WRKSRC}; for f in libtool; do \
|
2014-09-01 14:40:48 +02:00
|
|
|
${SED} -e "s,-L${BUILDLINK_DIR}/lib *,,g" \
|
|
|
|
-e "s,${BUILDLINK_DIR}/lib *,,g" \
|
2014-02-26 11:40:46 +01:00
|
|
|
$$f > $$f.new; \
|
2004-02-29 11:28:24 +01:00
|
|
|
if [ -x $$f ]; then ${CHMOD} +x $$f.new; fi; \
|
|
|
|
${MV} -f $$f.new $$f; \
|
|
|
|
done
|
|
|
|
|
|
|
|
post-build: fix-libtool
|
|
|
|
|
2003-01-10 09:44:18 +01:00
|
|
|
post-build:
|
2006-03-14 21:43:23 +01:00
|
|
|
@${SED} -e "s|@PREFIX@|"${PREFIX:Q}"|g" \
|
|
|
|
-e "s|@SH@|"${SH:Q}"|g" \
|
|
|
|
${FILESDIR}/shlibtool.in > ${WRKSRC}/shlibtool
|
2003-01-10 09:44:18 +01:00
|
|
|
|
|
|
|
post-install:
|
2006-11-01 10:01:56 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/shlibtool ${DESTDIR}${PREFIX}/bin/shlibtool
|
2003-01-10 09:44:18 +01:00
|
|
|
|
2004-10-14 21:07:46 +02:00
|
|
|
BUILDLINK_DEPMETHOD.dlcompat= build
|
|
|
|
|
2004-11-26 10:39:30 +01:00
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
2001-02-03 06:26:03 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|