From 28196f60188e489cde75fb0f70da662453cc2cff Mon Sep 17 00:00:00 2001 From: bentley Date: Tue, 13 Nov 2012 16:31:40 +0000 Subject: [PATCH] Fix build if imake isn't installed. While here, update license and respect ${CC}. ok kevlo@ (maintainer) --- emulators/spim/Makefile | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/emulators/spim/Makefile b/emulators/spim/Makefile index 0b0188593cc..30d13eacf5b 100644 --- a/emulators/spim/Makefile +++ b/emulators/spim/Makefile @@ -1,19 +1,20 @@ -# $OpenBSD: Makefile,v 1.22 2012/08/20 15:08:44 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.23 2012/11/13 16:31:40 bentley Exp $ COMMENT= MIPS R2000/R3000 simulator DISTNAME= spim-8.0 +REVISION= 0 CATEGORIES= emulators HOMEPAGE= http://www.cs.wisc.edu/~larus/spim.html MAINTAINER= Kevin Lo -# homegrown, to be changed in next release -PERMIT_PACKAGE_CDROM= may not sell -PERMIT_PACKAGE_FTP= may not bundle with commercial product -PERMIT_DISTFILES_CDROM= may not sell -PERMIT_DISTFILES_FTP= may not bundle with commercial product +# BSD +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes WANTLIB += ICE SM X11 Xau Xaw Xdmcp Xext Xmu Xpm Xt c m @@ -21,22 +22,24 @@ MASTER_SITES= http://www.cs.wisc.edu/~larus/SPIM/ BUILD_DEPENDS= devel/bison -XMKMF= xmkmf +WRKSRC= ${WRKDIST}/xspim +CONFIGURE_STYLE= imake -MAKE_FLAGS= PREFIX="${PREFIX}" +MAKE_FLAGS= PREFIX="${PREFIX}" \ + CC="${CC}" NO_REGRESS= Yes do-build: - (cd ${WRKSRC}/spim; ./Configure && ${MAKE_PROGRAM} ${MAKE_FLAGS}) - (cd ${WRKSRC}/xspim; ${XMKMF} && ${MAKE_PROGRAM} ${MAKE_FLAGS}) + (cd ${WRKDIST}/spim; ./Configure && ${MAKE_PROGRAM} ${MAKE_FLAGS}) + (cd ${WRKDIST}/xspim; ${XMKMF} && ${MAKE_PROGRAM} ${MAKE_FLAGS}) do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/spim - ${INSTALL_PROGRAM} ${WRKSRC}/spim/spim ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/xspim/xspim ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/CPU/exceptions.s ${PREFIX}/share/spim - ${INSTALL_MAN} ${WRKSRC}/Documentation/spim.man ${PREFIX}/man/man1/spim.1 - ${INSTALL_MAN} ${WRKSRC}/Documentation/xspim.man ${PREFIX}/man/man1/xspim.1 + ${INSTALL_PROGRAM} ${WRKDIST}/spim/spim ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKDIST}/xspim/xspim ${PREFIX}/bin + ${INSTALL_DATA} ${WRKDIST}/CPU/exceptions.s ${PREFIX}/share/spim + ${INSTALL_MAN} ${WRKDIST}/Documentation/spim.man ${PREFIX}/man/man1/spim.1 + ${INSTALL_MAN} ${WRKDIST}/Documentation/xspim.man ${PREFIX}/man/man1/xspim.1 .include