summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2005-02-27 21:33:17 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2005-02-27 21:33:17 +0000
commite64be73dbfe201e31b118852f4505a00deb9d20d (patch)
tree31556890d7198297d25b7bd7a773569bbadb30a7 /lang
parent4aca7c79304351961dbcb3f77f791c97602aa612 (diff)
downloadpkgsrc-e64be73dbfe201e31b118852f4505a00deb9d20d.tar.gz
make this work on solaris (pick the correct config name)
Diffstat (limited to 'lang')
-rw-r--r--lang/icon/Makefile36
1 files changed, 31 insertions, 5 deletions
diff --git a/lang/icon/Makefile b/lang/icon/Makefile
index 3d21dc943cc..6178dee106c 100644
--- a/lang/icon/Makefile
+++ b/lang/icon/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2004/12/03 15:15:00 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2005/02/27 21:33:17 dmcmahill Exp $
DISTNAME= icon.v942src
PKGNAME= icon-9.4.2
@@ -16,15 +16,41 @@ CONFIGURE_TARGET= X-Configure
BUILD_TARGET= All
TEST_TARGET= Test
-.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "i386") || \
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
+
+.if ${OPSYS} == "NetBSD"
+NAME= netbsd
+. if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "i386") || \
(${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_ARCH} == "mipseb") || (${MACHINE_ARCH} == "mipsel") || \
(${MACHINE_ARCH} == "m68k") || (${MACHINE_ARCH} == "vax")
-.else
+. else
PTHREAD_OPTS+= require native
-.include "../../mk/pthread.buildlink3.mk"
+. include "../../mk/pthread.buildlink3.mk"
+. endif
+
+.elseif ${OPSYS} == "SunOS"
+
+. if !empty(CC_VERSION:M*gcc*)
+NAME= sun_gcc
+. elseif !empty(CC_VERSION:MSun)
+NAME= sun_sunc
+. else
+PKG_FAIL_REASON= "${PKGNAME} does not know about ${CC_VERSION}"
+. endif
+
+. if ${MACHINE_ARCH} == "sparc"
+. else
+PTHREAD_OPTS+= require native
+. include "../../mk/pthread.buildlink3.mk"
+. endif
+
+.else
+PKG_FAIL_REASON= "${PKGNAME} does not have the correct config name for this system"
.endif
+
pre-build:
${MKDIR} ${WRKSRC}/lib/icon
@@ -32,7 +58,7 @@ do-configure:
cd ${WRKSRC}/config/netbsd; \
${SED} -e 's:@X11BASE@:${X11BASE}:g' define.h.in \
> define.h
- cd ${WRKSRC}; ${MAKE} ${CONFIGURE_TARGET} name=netbsd
+ cd ${WRKSRC}; ${MAKE} ${CONFIGURE_TARGET} name=${NAME}
do-install:
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} dest=${PREFIX} Install