pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/icon make this work on solaris (pick the correct ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0fac4574df73
branches:  trunk
changeset: 489873:0fac4574df73
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Sun Feb 27 21:33:17 2005 +0000

description:
make this work on solaris (pick the correct config name)

diffstat:

 lang/icon/Makefile |  36 +++++++++++++++++++++++++++++++-----
 1 files changed, 31 insertions(+), 5 deletions(-)

diffs (63 lines):

diff -r 1f7e729b35f5 -r 0fac4574df73 lang/icon/Makefile
--- a/lang/icon/Makefile        Sun Feb 27 17:40:10 2005 +0000
+++ b/lang/icon/Makefile        Sun Feb 27 21:33:17 2005 +0000
@@ -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 @@
 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 @@
        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



Home | Main Index | Thread Index | Old Index