pkgsrc/emulators/gxemul/Makefile
minskim d2d7b78901 Update gxemul to 0.4.6.6. Submitted by ISIHARA Takanori in PR pkg/39906.
Changes:
- Applying a patch from Kiyotaka Inaba which causes an ARM UND
  exception to be generated by the instruction word 0xe6000011, which
  is needed by gdb when running inside the emulator.  Also enabling
  ARM UND exceptions for ARM floating point instructions (needed by
  both Linux and NetBSD/arm).
- Fix for a free() bug in bootblock_iso9660.c.  Updating the
  OpenBSD/landisk installation instructions from 4.2 to 4.4, after
  verifying that it works.
2008-11-14 06:42:34 +00:00

49 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.40 2008/11/14 06:42:34 minskim Exp $
#
DISTNAME= gxemul-0.4.6.6
CATEGORIES= emulators
MASTER_SITES= http://gavare.se/gxemul/src/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://gavare.se/gxemul/
COMMENT= Machine emulator
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= pax
USE_LANGUAGES= c
HAS_CONFIGURE= yes
BUILD_TARGET= build
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/${PKGBASE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gxemul ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/gxemul.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.for f in README HISTORY TODO RELEASE.html LICENSE
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
.endfor
cd ${WRKSRC}/doc && pax -rwppm . ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
PKG_OPTIONS_VAR= PKG_OPTIONS.gxemul
PKG_SUPPORTED_OPTIONS= x11
PKG_SUGGESTED_OPTIONS= x11
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mx11)
GLOBAL_LDFLAGS= -L${X11BASE}/lib ${COMPILER_RPATH_FLAG}${X11BASE}/lib
SUBST_CLASSES+= x11
SUBST_STAGE.x11= post-patch
SUBST_FILES.x11= configure
SUBST_SED.x11= -e 's|-L/usr/X11R6/lib|${GLOBAL_LDFLAGS:Q}|g'
SUBST_SED.x11+= -e 's|/usr/X11R6|${X11BASE}|g'
SUBST_MESSAGE.x11= Fixing X linking flags.
.include "../../x11/libX11/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"