From 1de45afd3fc40b2cb8d18f05ae24dac3bf1daa91 Mon Sep 17 00:00:00 2001 From: jasper Date: Mon, 14 Jun 2010 07:15:10 +0000 Subject: [PATCH] - fix build on mips64 --- math/colamd/Makefile | 11 +++++++++-- math/colamd/pkg/PFRAG.no_mips64 | 2 ++ math/colamd/pkg/PLIST | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 math/colamd/pkg/PFRAG.no_mips64 diff --git a/math/colamd/Makefile b/math/colamd/Makefile index 10f97ec72c6..8a06583e207 100644 --- a/math/colamd/Makefile +++ b/math/colamd/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.1.1.1 2010/05/11 17:11:32 pirofti Exp $ +# $OpenBSD: Makefile,v 1.2 2010/06/14 07:15:10 jasper Exp $ COMMENT = library for column approximate minimum degree ordering DISTNAME = COLAMD-2.7.2 -PKGNAME = ${DISTNAME:L} +PKGNAME = ${DISTNAME:L}p0 SHARED_LIBS += colamd 0.0 CATEGORIES = math @@ -32,6 +32,13 @@ FAKE_FLAGS = LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no MAKE_FILE= ${FILESDIR}/Makefile +# See bsd.lib.mk:162 +.if ${MACHINE_ARCH:Mmips64*} +PKG_ARGS+= -Dno_mips64=0 +.else +PKG_ARGS+= -Dno_mips64=1 +.endif + post-install: ${INSTALL_DATA_DIR} ${PREFIX}/include/colamd ${INSTALL_DATA} ${WRKDIST}/Include/colamd.h ${PREFIX}/include/colamd diff --git a/math/colamd/pkg/PFRAG.no_mips64 b/math/colamd/pkg/PFRAG.no_mips64 new file mode 100644 index 00000000000..d5bc102befd --- /dev/null +++ b/math/colamd/pkg/PFRAG.no_mips64 @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.no_mips64,v 1.1 2010/06/14 07:15:10 jasper Exp $ +lib/libcolamd_pic.a diff --git a/math/colamd/pkg/PLIST b/math/colamd/pkg/PLIST index f9f8bbd5a6f..2bc70eb2a30 100644 --- a/math/colamd/pkg/PLIST +++ b/math/colamd/pkg/PLIST @@ -1,8 +1,8 @@ -@comment $OpenBSD: PLIST,v 1.1.1.1 2010/05/11 17:11:32 pirofti Exp $ +@comment $OpenBSD: PLIST,v 1.2 2010/06/14 07:15:10 jasper Exp $ %%SHARED%% include/colamd/ include/colamd/UFconfig.h include/colamd/colamd.h lib/libcolamd.a lib/libcolamd_p.a -lib/libcolamd_pic.a +%%no_mips64%%