2005-05-18 16:40:04 +02:00
|
|
|
# $NetBSD: Makefile,v 1.63 2005/05/18 14:40:04 tv 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-/}
|
2005-05-18 16:40:04 +02:00
|
|
|
PKGREVISION= 1
|
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
|
2001-02-03 06:26:03 +01:00
|
|
|
|
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
|
2005-03-18 16:06:10 +01:00
|
|
|
|
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
|
|
|
CONFIGURE_ARGS+= --disable-ltdl-install
|
|
|
|
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
|
|
|
#
|
2004-10-14 21:04:56 +02:00
|
|
|
USE_LANGUAGES= c c++ fortran
|
|
|
|
CONFIGURE_ARGS+= --with-tags=CXX,F77,GCJ
|
2003-01-10 09:44:18 +01:00
|
|
|
|
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
|
|
|
|
|
2004-04-22 16:40:29 +02:00
|
|
|
.if ${BUILD_SHLIBTOOL} == "NO"
|
2004-02-29 11:28:24 +01:00
|
|
|
PLIST_SUBST+= SHLIBTOOL="@comment "
|
2004-04-22 16:40:29 +02:00
|
|
|
.else
|
2004-02-29 11:28:24 +01:00
|
|
|
PLIST_SUBST+= SHLIBTOOL=
|
2003-01-10 09:44:18 +01:00
|
|
|
|
|
|
|
post-build:
|
2004-04-22 16:40:29 +02:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${SED} -e '/^# Whether or not to build static/{n;s/yes/no/;}' \
|
|
|
|
< libtool > shlibtool
|
2003-01-10 09:44:18 +01:00
|
|
|
|
|
|
|
post-install:
|
2004-04-22 16:40:29 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/shlibtool ${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"
|