summaryrefslogtreecommitdiff
path: root/graphics/tgif/Makefile
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2003-11-09 21:26:06 +0000
committerdmcmahill <dmcmahill>2003-11-09 21:26:06 +0000
commit62f09a4fecd4e861ee575e86346fac8b9c90a8b5 (patch)
tree887ed827c33890a2d42f076854b7d9c51c90e7d8 /graphics/tgif/Makefile
parent8bdcd4a598c7a9382556620f71d7a3f2a308586b (diff)
downloadpkgsrc-62f09a4fecd4e861ee575e86346fac8b9c90a8b5.tar.gz
use ${LOWER_OPSYS} rather than "netbsd" when locating the Imake template
file to use. Also, on Solaris, avoid passing "-a" to xmkmf which will cause the openwindows makedepend to be called which in turn will fail as it was compiled with MAXFILES set too low. These changes fix compilation on Solaris.
Diffstat (limited to 'graphics/tgif/Makefile')
-rw-r--r--graphics/tgif/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/graphics/tgif/Makefile b/graphics/tgif/Makefile
index 84bc2fdce6a..c8c662e1460 100644
--- a/graphics/tgif/Makefile
+++ b/graphics/tgif/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2003/08/19 09:19:37 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.43 2003/11/09 21:26:06 dmcmahill Exp $
#
DISTNAME= tgif-4.1.43
@@ -15,9 +15,18 @@ USE_X11= yes
PTHREAD_OPTS+= require
+# avoid "xmkmf -a" on Solaris which runs makedepend because the
+# openwindows makedepend program can't handle the number of
+# files. We should probably have a replacement makedepend in
+# pkgsrc.
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS"
+XMKMF= ${XMKMF_CMD}
+.endif
+
post-patch::
@${RM} -f ${WRKSRC}/Tgif.tmpl
- @${CP} ${WRKSRC}/Tgif.tmpl-netbsd ${WRKSRC}/Tgif.tmpl
+ @${CP} ${WRKSRC}/Tgif.tmpl-${LOWER_OPSYS} ${WRKSRC}/Tgif.tmpl
.include "../../graphics/jpeg/buildlink2.mk"
.include "../../mk/pthread.buildlink2.mk"