2003-01-10 09:44:18 +01:00
|
|
|
# $NetBSD: Makefile,v 1.15 2003/01/10 08:44:19 jlam Exp $
|
2001-02-03 06:26:03 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
.include "../libtool/Makefile.common"
|
|
|
|
|
2002-04-17 15:24:21 +02:00
|
|
|
PKGNAME= ${PKGPFX:C/-/-base-/}
|
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
|
|
|
|
2001-02-03 06:26:03 +01:00
|
|
|
test: build
|
|
|
|
cd ${WRKSRC} && ${MAKE} check
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-01-10 09:44:18 +01:00
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-1.4-sparc) || \
|
|
|
|
!empty(MACHINE_PLATFORM:MNetBSD-1.4.[12]-sparc)
|
2001-02-03 06:26:03 +01:00
|
|
|
DEPENDS+= c++rt0>=1.0:../../sysutils/c++rt0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
2002-12-22 20:04:07 +01:00
|
|
|
. if !exists(/usr/libexec/ld.so) && !exists(/usr/libexec/ld.elf_so)
|
2003-01-10 09:44:18 +01:00
|
|
|
CONFIGURE_ARGS= --disable-shared
|
|
|
|
BUILD_SHLIBTOOL= NO
|
2002-12-22 20:04:07 +01:00
|
|
|
. endif
|
2001-02-03 06:26:03 +01:00
|
|
|
.else
|
2003-01-10 09:44:18 +01:00
|
|
|
CONFIGURE_ARGS= --enable-ltdl-install
|
2001-02-03 06:26:03 +01:00
|
|
|
.endif
|
|
|
|
|
2002-11-21 01:50:03 +01:00
|
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-*-*)
|
2002-12-22 20:04:07 +01:00
|
|
|
. include "../../devel/dlcompat/buildlink2.mk"
|
2002-11-21 01:50:03 +01:00
|
|
|
.endif
|
|
|
|
|
2003-01-10 09:44:18 +01:00
|
|
|
BUILD_SHLIBTOOL?= YES
|
|
|
|
BUILDING_SHLIBTOOL?= NO
|
|
|
|
|
|
|
|
.if ${BUILDING_SHLIBTOOL} == "YES"
|
|
|
|
CONFIGURE_ARGS+= --disable-static
|
|
|
|
.else
|
|
|
|
SHLIBTOOL_WRKDIR= ${WRKDIR}/shlibtool
|
|
|
|
SHLIBTOOL_WRKSRC= ${WRKSRC:S/${WRKDIR}/${SHLIBTOOL_WRKDIR}/}
|
|
|
|
SHLIBTOOL_MAKEFLAGS= BUILDING_SHLIBTOOL=YES
|
|
|
|
SHLIBTOOL_MAKEFLAGS+= WRKDIR=${SHLIBTOOL_WRKDIR}
|
|
|
|
|
|
|
|
. if ${BUILD_SHLIBTOOL} == "NO"
|
|
|
|
PLIST_SUBST+= SHLIBTOOL="@comment "
|
|
|
|
. else
|
|
|
|
PLIST_SUBST+= SHLIBTOOL=
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
cd ${.CURDIR} && ${MAKE} build ${SHLIBTOOL_MAKEFLAGS}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_SCRIPT} ${SHLIBTOOL_WRKSRC}/libtool \
|
|
|
|
${PREFIX}/bin/shlibtool
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2001-02-03 06:26:03 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|