diff options
author | tron <tron@pkgsrc.org> | 2007-12-16 12:29:17 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2007-12-16 12:29:17 +0000 |
commit | cb8742689f65a266f7a6d489c8cf332d9037840f (patch) | |
tree | 8fecf5d8be5d13eeccfaa5d3735c1390f12dd869 /pkgtools | |
parent | a9c785eaa1952af44eee4aff1432d4aaa03d9e5a (diff) | |
download | pkgsrc-cb8742689f65a266f7a6d489c8cf332d9037840f.tar.gz |
Mac OS X Leopard doesn't "InstallFlags" in "darwin.cf". We therefore don't
need to (and cannot) apply a patch to prevent that. This package builds
under Leopard now.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/xpkgwedge/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgtools/xpkgwedge/Makefile b/pkgtools/xpkgwedge/Makefile index 7de8a37c8e5..e7b78b2d0f0 100644 --- a/pkgtools/xpkgwedge/Makefile +++ b/pkgtools/xpkgwedge/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.72 2007/11/11 11:35:50 martti Exp $ +# $NetBSD: Makefile,v 1.73 2007/12/16 12:29:17 tron Exp $ DISTNAME= xpkgwedge-1.16 CATEGORIES= pkgtools devel x11 @@ -44,7 +44,7 @@ FILES_SUBST+= FONT_PROGS=${FONT_PROGS:Q} FILES_SUBST+= MAKE=${IMAKE_MAKE:Q} USE_TOOLS+= ${IMAKE_TOOLS} -.if ${OPSYS} == "Darwin" +.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-i386) PLIST_SUBST+= IS_DARWIN= USE_TOOLS+= patch .else @@ -100,8 +100,10 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/pkgxmkmf ${DESTDIR}${PREFIX}/bin/pkgxmkmf @case ${OPSYS} in \ Darwin) \ - ${INSTALL_DATA} ${X11BASE}/lib/X11/config/darwin.cf ${DESTDIR}${PREFIX}/lib/X11/config; \ - cd ${DESTDIR}${PREFIX}/lib/X11/config && patch ${PATCH_STRIP} < ${FILESDIR}/darwin.cf.patch; \ + if [ -z "$IS_DARWIN" ]; then \ + ${INSTALL_DATA} ${X11BASE}/lib/X11/config/darwin.cf ${DESTDIR}${PREFIX}/lib/X11/config; \ + cd ${DESTDIR}${PREFIX}/lib/X11/config && patch ${PATCH_STRIP} < ${FILESDIR}/darwin.cf.patch; \ + fi; \ ;; \ IRIX) \ ${INSTALL_DATA} ${X11BASE}/lib/X11/config/sgi.cf ${DESTDIR}${PREFIX}/lib/X11/config; \ |