c46bf70f73
* In libtool-base, generate shlibtool with a simple sed script; no full build is actually needed. Changelog: New in 1.5.6: 2004-04-11; CVS version 1.5.5a, Libtool team: * Installs libltdl files properly in $prefix/share/libtool/libltdl. 1.5.4 did not install them at all. * libltdl correctly guesses the extension for loadable modules again. New in 1.5.4: 2004-04-03; CVS version 1.5.3a, Libtool team: * Bug fixes.
84 lines
2 KiB
Makefile
84 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.33 2004/04/22 14:40:29 tv Exp $
|
|
#
|
|
|
|
PKGNAME= ${DISTNAME:C/-/-base-/}
|
|
SVR4_PKGNAME= ltoob
|
|
|
|
COMMENT= Generic shared library support script (the script itself)
|
|
|
|
CONFLICTS+= libtool<=1.3.5nb11
|
|
|
|
# We are going to want libtool to find the same versions of the C, C++,
|
|
# and Fortran compilers.
|
|
#
|
|
USE_LANGUAGES= c c++ fortran
|
|
|
|
.include "../../devel/libtool/Makefile.common"
|
|
|
|
TEST_TARGET= check
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-1.4-sparc) || \
|
|
!empty(MACHINE_PLATFORM:MNetBSD-1.4.[12]-sparc)
|
|
DEPENDS+= c++rt0>=1.0:../../sysutils/c++rt0
|
|
.endif
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
. if !exists(/usr/libexec/ld.so) && !exists(/usr/libexec/ld.elf_so)
|
|
5~CONFIGURE_ARGS= --disable-shared
|
|
BUILD_SHLIBTOOL= NO
|
|
. endif
|
|
.else
|
|
CONFIGURE_ARGS= --enable-ltdl-install
|
|
.endif
|
|
|
|
# The configure script persists in trying to find the path to ld, which
|
|
# always ends up in ${BUILDLINK_DIR}. Prevent it from caring.
|
|
#
|
|
CONFIGURE_ENV+= lt_cv_path_LD=${LD:Q}
|
|
|
|
# The configure script persists in trying to find the path to sed or gsed,
|
|
# which breaks when SED is nbsed. Tell it explicitly to use the sed
|
|
# named by ${SED}.
|
|
#
|
|
CONFIGURE_ENV+= SED=${SED:Q}
|
|
CONFIGURE_ENV+= lt_cv_path_SED=${SED:Q}
|
|
|
|
# The configure script doesn't seem to be working out the need for -p
|
|
# so tell it
|
|
.if ${OPSYS} == "SunOS"
|
|
CONFIGURE_ENV+= lt_cv_path_NM="nm -p"
|
|
.endif
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
. include "../../devel/dlcompat/buildlink3.mk"
|
|
.endif
|
|
|
|
BUILD_SHLIBTOOL?= YES
|
|
|
|
.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
|
|
|
|
.if ${BUILD_SHLIBTOOL} == "NO"
|
|
PLIST_SUBST+= SHLIBTOOL="@comment "
|
|
.else
|
|
PLIST_SUBST+= SHLIBTOOL=
|
|
|
|
post-build:
|
|
cd ${WRKSRC} && \
|
|
${SED} -e '/^# Whether or not to build static/{n;s/yes/no/;}' \
|
|
< libtool > shlibtool
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/shlibtool ${PREFIX}/bin/shlibtool
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|