diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2005-02-27 21:33:17 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2005-02-27 21:33:17 +0000 |
commit | e64be73dbfe201e31b118852f4505a00deb9d20d (patch) | |
tree | 31556890d7198297d25b7bd7a773569bbadb30a7 /lang/icon | |
parent | 4aca7c79304351961dbcb3f77f791c97602aa612 (diff) | |
download | pkgsrc-e64be73dbfe201e31b118852f4505a00deb9d20d.tar.gz |
make this work on solaris (pick the correct config name)
Diffstat (limited to 'lang/icon')
-rw-r--r-- | lang/icon/Makefile | 36 |
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 |