pkgsrc/emulators/spim/Makefile
joerg d26cf36e57 - fine grained X11 dependencies for packages which have either USE_IMAKE
or USE_X11BASE set, but don't include mk/x11.buildlink3.mk directly or
  via buildlink3.mks
- introduce BUILDLINK_PREFIX.libXpm as alias for BUILDLINK_PREFIX.xpm
  in the !modular case
- fix some cases where the check for libX11 couldn't work at all by using
  C++ for compilation without including the proper headers

Verified using a full X11_TYPE=xorg bulk build without additional
breakage. Discussed with salo@, wiz@ and send to packages@ for feedback.
2006-12-27 13:37:35 +00:00

49 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.32 2006/12/27 13:37:36 joerg Exp $
DISTNAME= spim-7.1
PKGREVISION= 3
CATEGORIES= emulators
MASTER_SITES= http://www.cs.wisc.edu/~larus/SPIM/ \
ftp://ftp.cs.wisc.edu/pub/spim/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.cs.wisc.edu/~larus/spim.html
COMMENT= MIPS R2000 Simulator
RESTRICTED= selling is not allowed
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
#DIST_SUBDIR= ${PKGNAME}
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ./Configure
USE_IMAKE= yes
USE_TOOLS+= gzip lex
XMKMF= ${X11BASE}/bin/xmkmf # don't specify -a option
BUILD_TARGET= y.tab.c depend all
pre-configure:
@${RM} -f ${WRKSRC}/y.tab.*
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/spim
${CHMOD} a+rx ${PREFIX}/share/spim
post-install:
@${ECHO} "Installing spim/xspim documentation"
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/spim \
&& ${CHMOD} a+rx ${PREFIX}/share/doc/spim
${INSTALL_DATA} ${WRKSRC}/Documentation/spim.tex \
${PREFIX}/share/doc/spim
${INSTALL_DATA} ${WRKSRC}/Documentation/*.id \
${PREFIX}/share/doc/spim
${INSTALL_DATA} ${WRKSRC}/Documentation/cycle.ps \
${PREFIX}/share/doc/spim
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXp/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"