[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / emulators / spim

File: [cvs.NetBSD.org] / pkgsrc / emulators / spim / Makefile (download)

Revision 1.42, Thu May 3 09:55:29 2012 UTC (10 years, 9 months ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2
Changes since 1.41: +2 -2 lines

Drop dependency on libXp (from Imake)

* libXp was used by Xaw8, but it had been obsolated, and in pkgsrc,
  x11/libXaw/buildlink3.mk had been switched to pick up Xaw7 by default.
* With x11/xorg-cf-files, libXp was offered with XawClientLibs,
  but updated to 1.0.4, it was removed.
* And pkgsrc had been switched to use always xorg-cf-files and imake from pkgsrc,
  so all platforms should not require libXp from libXaw with Imake.

Bump PKGREVISION.

# $NetBSD: Makefile,v 1.42 2012/05/03 09:55:29 obache Exp $

DISTNAME=	spim-8.0
PKGREVISION=	1
CATEGORIES=	emulators
MASTER_SITES=	http://pages.cs.wisc.edu/~larus/SPIM/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://spimsimulator.sourceforge.net/
COMMENT=	MIPS R2000 Simulator
LICENSE=	modified-bsd

PKG_DESTDIR_SUPPORT=	user-destdir

HAS_CONFIGURE=		yes
CONFIGURE_DIRS=		xspim
BUILD_DIRS=		spim xspim
CONFIGURE_SCRIPT=	./Configure
USE_IMAKE=		yes
USE_TOOLS+=		gzip flex yacc
INSTALL_TARGET=		install

SUBST_CLASSES+=		cpudir
SUBST_STAGE.cpudir=	post-patch
SUBST_MESSAGE.cpudir=	rename CPU_DIR
SUBST_FILES.cpudir=	spim/Makefile xspim/Imakefile
SUBST_SED.cpudir=	-e s:CPU_DIR:CPUDIR:

INSTALLATION_DIRS=	share/doc/${PKGBASE} ${PKGMANDIR}/man1

post-configure:
	cd ${WRKSRC}/spim && ${SETENV} ${_CONFIGURE_SCRIPT_ENV}		\
                ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS}			\
                        ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}

post-install:
	@${ECHO} "Installing spim/xspim documentation"
	${INSTALL_DATA} ${WRKSRC}/Documentation/spim.man \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/spim.1
	${INSTALL_DATA} ${WRKSRC}/Documentation/xspim.man \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xspim.1
	${INSTALL_DATA} ${WRKSRC}/Documentation/TeX/spim.tex \
		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_DATA} ${WRKSRC}/Documentation/TeX/*.id \
		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_DATA} ${WRKSRC}/Documentation/TeX/cycle.ps \
		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}

.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"