diff options
author | tron <tron@pkgsrc.org> | 2007-12-16 12:43:50 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2007-12-16 12:43:50 +0000 |
commit | 6ec9146c39415786a5df9f862728459771fc6b6d (patch) | |
tree | 8e00d5dd6118145996a20b12bdf43759fb4dd003 /pkgtools | |
parent | 0efe5a4def2bd0f8bbd6b64ae6fb8caeb262c581 (diff) | |
download | pkgsrc-6ec9146c39415786a5df9f862728459771fc6b6d.tar.gz |
Fix build on pre-Leopard Mac OS X systems.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/xpkgwedge/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgtools/xpkgwedge/Makefile b/pkgtools/xpkgwedge/Makefile index e7b78b2d0f0..22e4404abdb 100644 --- a/pkgtools/xpkgwedge/Makefile +++ b/pkgtools/xpkgwedge/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.73 2007/12/16 12:29:17 tron Exp $ +# $NetBSD: Makefile,v 1.74 2007/12/16 12:43:50 tron Exp $ DISTNAME= xpkgwedge-1.16 CATEGORIES= pkgtools devel x11 @@ -44,10 +44,12 @@ FILES_SUBST+= FONT_PROGS=${FONT_PROGS:Q} FILES_SUBST+= MAKE=${IMAKE_MAKE:Q} USE_TOOLS+= ${IMAKE_TOOLS} -.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-i386) +.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*) +APPLY_DARWIN_PATCH= ${TRUE} PLIST_SUBST+= IS_DARWIN= USE_TOOLS+= patch .else +APPLY_DARWIN_PATCH= ${FALSE} PLIST_SUBST+= IS_DARWIN="@comment " .endif @@ -100,7 +102,7 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/pkgxmkmf ${DESTDIR}${PREFIX}/bin/pkgxmkmf @case ${OPSYS} in \ Darwin) \ - if [ -z "$IS_DARWIN" ]; then \ + if ${APPLY_DARWIN_PATCH}; 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; \ |