diff options
author | minskim <minskim@pkgsrc.org> | 2006-03-23 04:13:10 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2006-03-23 04:13:10 +0000 |
commit | 4771db152e2d752a0a8a4f7e5e37bd5e4f5c7a9d (patch) | |
tree | a45ee8a26cc6c6f3f7d735784a0537afd3d83776 /devel | |
parent | f5bc8b96de3806ef6f34d909e321624caa77dfd2 (diff) | |
download | pkgsrc-4771db152e2d752a0a8a4f7e5e37bd5e4f5c7a9d.tar.gz |
Create a platform-dependent symlink only when it doesn't exist.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libFoundation/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/devel/libFoundation/Makefile b/devel/libFoundation/Makefile index 7c7aca1205c..0aec8d370f0 100644 --- a/devel/libFoundation/Makefile +++ b/devel/libFoundation/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2006/03/18 00:54:28 minskim Exp $ +# $NetBSD: Makefile,v 1.8 2006/03/23 04:13:10 minskim Exp $ # DISTNAME= libFoundation-1.0.72-r107 @@ -24,12 +24,17 @@ PLIST_SUBST+= LIBF_HOST_OS=${LIBF_HOST_OS} LIBF_HOST_OS= ${GNUSTEP_HOST:C/.*-//} +.include "../../devel/gnustep-objc-lf2/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" + pre-configure: ${MKDIR} ${WRKSRC}/config/${MACHINE_GNU_ARCH} [ -e ${WRKSRC}/config/${MACHINE_GNU_ARCH}/${GNUSTEP_HOST_OS}.h ] || \ ${LN} -s linux.h ${WRKSRC}/config/${MACHINE_GNU_ARCH}/${GNUSTEP_HOST_OS}.h +.if ${GNUSTEP_HOST_OS} != ${LIBF_HOST_OS} [ -e ${WRKSRC}/config/${MACHINE_GNU_ARCH}/${LIBF_HOST_OS}.h ] || \ ${LN} -s linux.h ${WRKSRC}/config/${MACHINE_GNU_ARCH}/${LIBF_HOST_OS}.h +.endif post-configure: -${MKDIR} ${WRKSRC}/Foundation/${GNUSTEP_HOST_CPU} @@ -38,6 +43,4 @@ post-configure: ${WRKSRC}/Foundation/${LIBF_HOST_OS} \ ${WRKSRC}/Foundation/${GNUSTEP_HOST_CPU}/${LIBF_HOST_OS} -.include "../../devel/gnustep-objc-lf2/buildlink3.mk" -.include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |