2012-02-07 23:11:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.96 2012/02/07 22:11:40 fhajny 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-/}
|
2012-02-07 23:11:40 +01:00
|
|
|
PKGREVISION= 6
|
2001-10-18 17:20:01 +02:00
|
|
|
SVR4_PKGNAME= ltoob
|
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
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= shlibtool
|
2001-02-03 06:26:03 +01:00
|
|
|
|
2009-12-18 23:11:10 +01:00
|
|
|
OVERRIDE_DIRDEPTH.install-sh= 1
|
|
|
|
|
2005-03-03 21:33:44 +01:00
|
|
|
.if ${OPSYS} == "AIX"
|
2005-03-18 16:06:10 +01:00
|
|
|
|
2005-03-05 08:43:05 +01:00
|
|
|
# always build libraries and executables that use the runtime linker.
|
|
|
|
# in addition, disable libtool locking, as the test is broken on AIX,
|
|
|
|
# and results in files being locked indefinitely.
|
|
|
|
LDFLAGS+= -Wl,-brtl
|
|
|
|
CONFIGURE_ARGS+= --disable-libtool-lock
|
2005-03-18 16:06:10 +01:00
|
|
|
|
|
|
|
.elif ${OPSYS} == "IRIX"
|
|
|
|
|
|
|
|
# The MIPSpro compiler doesn't support -c with -o, but the locking
|
|
|
|
# workaround is itself broken. Disable it unconditionally.
|
|
|
|
CONFIGURE_ARGS+= --disable-libtool-lock
|
|
|
|
|
|
|
|
.elif ${OPSYS} == "NetBSD"
|
2002-12-22 20:04:07 +01:00
|
|
|
. if !exists(/usr/libexec/ld.so) && !exists(/usr/libexec/ld.elf_so)
|
2004-10-04 21:48:09 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-shared
|
2003-01-10 09:44:18 +01:00
|
|
|
BUILD_SHLIBTOOL= NO
|
2002-12-22 20:04:07 +01:00
|
|
|
. endif
|
2012-02-07 23:11:40 +01:00
|
|
|
|
|
|
|
.elif ${OPSYS} == "SunOS"
|
|
|
|
. if !empty(ABI:M64)
|
|
|
|
CFLAGS+= -m64
|
|
|
|
. endif
|
2001-02-03 06:26:03 +01:00
|
|
|
.endif
|
2005-03-18 16:06:10 +01:00
|
|
|
|
2004-10-14 21:04:56 +02:00
|
|
|
BUILD_SHLIBTOOL?= YES
|
2001-02-03 06:26:03 +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
|
|
|
#
|
2010-07-30 12:36:22 +02:00
|
|
|
USE_LANGUAGES= c c++ fortran77
|
2009-12-15 18:35:36 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-ltdl-install
|
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 \
|
|
|
|
${SED} -e "s,-L${BUILDLINK_DIR}/lib,," $$f > $$f.new; \
|
|
|
|
if [ -x $$f ]; then ${CHMOD} +x $$f.new; fi; \
|
|
|
|
${MV} -f $$f.new $$f; \
|
|
|
|
done
|
|
|
|
|
|
|
|
post-build: fix-libtool
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
.if ${BUILD_SHLIBTOOL} != "NO"
|
|
|
|
PLIST.shlibtool= yes
|
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
|
|
|
.endif
|
|
|
|
|
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"
|