summaryrefslogtreecommitdiff
path: root/devel/libtool-base
diff options
context:
space:
mode:
authorjlam <jlam>2002-11-21 00:50:03 +0000
committerjlam <jlam>2002-11-21 00:50:03 +0000
commit717b05f2610c361cbef73a69d1a33bce21ca53a7 (patch)
tree2a11c60748b03df76af84c7c5c65ede8ae3feff6 /devel/libtool-base
parent4121b054e415eadb5453c92b6ca759b62136246a (diff)
downloadpkgsrc-717b05f2610c361cbef73a69d1a33bce21ca53a7.tar.gz
Don't use buildlink2 since we may need this package to bootstrap
buildlink2.
Diffstat (limited to 'devel/libtool-base')
-rw-r--r--devel/libtool-base/Makefile37
1 files changed, 30 insertions, 7 deletions
diff --git a/devel/libtool-base/Makefile b/devel/libtool-base/Makefile
index e068f3867c3..df234247742 100644
--- a/devel/libtool-base/Makefile
+++ b/devel/libtool-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2002/10/09 19:04:12 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2002/11/21 00:50:03 jlam Exp $
#
.include "../libtool/Makefile.common"
@@ -10,7 +10,7 @@ COMMENT= Generic shared library support script (the script itself)
CONFLICTS+= libtool<=1.3.5nb11
-USE_BUILDLINK2= # defined
+USE_BUILDLINK2= no # needed for bootstrapping buildlink2
test: build
cd ${WRKSRC} && ${MAKE} check
@@ -22,10 +22,6 @@ test: build
DEPENDS+= c++rt0>=1.0:../../sysutils/c++rt0
.endif
-.if ${MACHINE_PLATFORM:MDarwin-*-*} != ""
-.include "../../devel/dlcompat/buildlink2.mk"
-.endif
-
.if ${OPSYS} == "NetBSD"
.if !exists(/usr/libexec/ld.so) && !exists(/usr/libexec/ld.elf_so)
CONFIGURE_ARGS= --disable-shared
@@ -34,6 +30,33 @@ CONFIGURE_ARGS= --disable-shared
CONFIGURE_ARGS= --enable-ltdl-install
.endif
+.if !empty(MACHINE_PLATFORM:MDarwin-*-*)
+DLCOMPATDIR= ${WRKDIR}/.dlcompat
+DEPENDS+= dlcompat>=20020606:../../devel/dlcompat
+EVAL_PREFIX+= DLCOMPAT_PREFIX=dlcompat
+DLCOMPAT_PREFIX_DEFAULT= ${LOCALBASE}
+
+pre-configure: dlcompat-buildlink
+dlcompat-buildlink:
+ cd ${DLCOMPAT_PREFIX}; \
+ for file in include/dlfcn.h lib/libdl.*; do \
+ if [ -f "$${file}" ]; then \
+ ${MKDIR} ${DLCOMPATDIR}/`${DIRNAME} $${file}`; \
+ ${LN} -sf ${DLCOMPAT_PREFIX}/$${file} \
+ ${DLCOMPATDIR}/$${file}; \
+ fi; \
+ done
+.endif
+
.include "../../mk/bsd.pkg.mk"
-LDFLAGS= # Blank
+.if !empty(MACHINE_PLATFORM:MDarwin-*-*)
+CPPFLAGS:= -I${DLCOMPATDIR}/include ${CPPFLAGS}
+CFLAGS:= -I${DLCOMPATDIR}/include ${CFLAGS}
+LDFLAGS= -L${DLCOMPATDIR}/lib
+. if ${_USE_RPATH} == "yes"
+LDFLAGS+= -Wl,-R${DLCOMPAT_PREFIX}/lib
+. endif
+.else
+LDFLAGS= # empty
+.endif