2009-02-13 11:08:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.25 2009/02/13 10:08:40 abs Exp $
|
2000-05-23 00:13:11 +02:00
|
|
|
#
|
|
|
|
|
2006-06-13 15:24:35 +02:00
|
|
|
DISTNAME= xbeeb-0.4.1
|
2006-06-17 08:37:55 +02:00
|
|
|
PKGREVISION= 1
|
2000-05-23 00:13:11 +02:00
|
|
|
CATEGORIES= emulators x11
|
2007-11-12 00:48:19 +01:00
|
|
|
MASTER_SITES= http://bbc.nvg.org/emul/Xbeeb/
|
2000-09-03 12:01:41 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
2000-05-23 00:13:11 +02:00
|
|
|
|
2006-06-13 15:24:35 +02:00
|
|
|
MAINTAINER= dsainty@NetBSD.org
|
2004-05-11 13:58:13 +02:00
|
|
|
HOMEPAGE= http://www.cloud9.co.uk/james/BBCMicro/Xbeeb/
|
2001-02-17 19:38:11 +01:00
|
|
|
COMMENT= Acorn BBC Micro emulator with an X based interface
|
2000-05-23 00:13:11 +02:00
|
|
|
|
|
|
|
USE_IMAKE= yes
|
2007-01-06 16:09:59 +01:00
|
|
|
USE_TOOLS+= bdftopcf xmkmf mkfontdir
|
2000-06-01 22:47:00 +02:00
|
|
|
MAN_PAGE= ${WRKDIR}/xbeeb.1
|
2000-05-23 00:13:11 +02:00
|
|
|
|
|
|
|
XBEEBROOT= share/xbeeb
|
2001-01-29 12:34:21 +01:00
|
|
|
MESSAGE_SUBST+= XBEEBROOT=${XBEEBROOT}
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= XBEEBROOT=${XBEEBROOT:Q}
|
2000-05-23 00:13:11 +02:00
|
|
|
|
2006-02-17 20:27:33 +01:00
|
|
|
FONTS_DIRS.x11= ${PREFIX}/lib/X11/fonts/xbeeb
|
|
|
|
REQD_DIRS= ${PREFIX}/lib/X11/fonts/xbeeb
|
|
|
|
|
2007-01-06 16:09:59 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
2005-06-16 08:57:37 +02:00
|
|
|
|
2009-02-13 11:08:40 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2006-06-13 15:24:35 +02:00
|
|
|
|
2009-02-13 11:08:40 +01:00
|
|
|
.include "options.mk"
|
2006-09-22 15:21:37 +02:00
|
|
|
|
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
|
|
|
|
|
|
|
.if ${OSS_TYPE} != "none"
|
|
|
|
|
2006-06-13 15:24:35 +02:00
|
|
|
SUBST_CLASSES+= dsp
|
|
|
|
SUBST_STAGE.dsp= post-patch
|
2006-09-22 15:21:37 +02:00
|
|
|
SUBST_MESSAGE.dsp= Adjusting sound device path
|
2006-06-13 15:24:35 +02:00
|
|
|
SUBST_FILES.dsp= src/SoundOSS.c
|
|
|
|
SUBST_SED.dsp= -e "s|\"/dev/dsp\"|\"${DEVOSSAUDIO}\"|"
|
|
|
|
|
2006-09-22 15:21:37 +02:00
|
|
|
SUBST_CLASSES+= osslib
|
|
|
|
SUBST_STAGE.osslib= post-patch
|
|
|
|
SUBST_MESSAGE.osslib= Linking OSS library
|
|
|
|
SUBST_FILES.osslib= src/Imakefile
|
|
|
|
SUBST_SED.osslib= -e "s|\\(SYS_LIBRARIES[ ]*=.*\\)|\\1 ${LIBOSSAUDIO}|"
|
|
|
|
|
|
|
|
.else
|
|
|
|
|
|
|
|
SUBST_CLASSES+= nooss
|
|
|
|
SUBST_STAGE.nooss= post-patch
|
|
|
|
SUBST_MESSAGE.nooss= Disabling sound support: No OSS on this platform
|
|
|
|
SUBST_FILES.nooss= src/Config.h
|
|
|
|
SUBST_SED.nooss= -e "s|^\#define\\([ ]*SOUND_OSS.*\\)\$$|\#undef\\1|"
|
|
|
|
|
|
|
|
.endif # OSS_TYPE
|
|
|
|
|
2006-06-13 15:24:35 +02:00
|
|
|
SUBST_CLASSES+= beebroot
|
|
|
|
SUBST_STAGE.beebroot= post-patch
|
2006-09-22 15:21:37 +02:00
|
|
|
SUBST_MESSAGE.beebroot= Adjusting XBEEBROOT path
|
2006-06-13 15:24:35 +02:00
|
|
|
SUBST_FILES.beebroot= src/Config.h
|
2006-09-22 15:21:37 +02:00
|
|
|
SUBST_SED.beebroot= -e "s|^\\(\#define[ ]*XBEEBROOT[ ]*\\)[^ ].*\$$|\\1\"${PREFIX}/${XBEEBROOT}/\"|"
|
2006-06-13 15:24:35 +02:00
|
|
|
|
2007-01-06 16:09:59 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${XBEEBROOT}/roms ${XBEEBROOT}/docs lib/X11/fonts/xbeeb
|
|
|
|
|
2000-05-23 00:13:11 +02:00
|
|
|
# xbeeb build starts in the source directory
|
|
|
|
do-configure:
|
2007-01-06 16:09:59 +01:00
|
|
|
cd ${WRKSRC}/src && xmkmf
|
2000-05-23 00:13:11 +02:00
|
|
|
|
|
|
|
post-patch:
|
2007-01-06 16:09:59 +01:00
|
|
|
sed -e 's+@XBEEBROOT@+${XBEEBROOT}+g' \
|
2000-06-01 22:47:00 +02:00
|
|
|
-e 's+@PREFIX@+${PREFIX}+g' \
|
2001-01-29 12:34:21 +01:00
|
|
|
${FILESDIR}/xbeeb.1 > ${MAN_PAGE}
|
2000-05-23 00:13:11 +02:00
|
|
|
|
|
|
|
do-build:
|
2007-01-06 16:09:59 +01:00
|
|
|
cd ${WRKSRC}/src && env ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} xbeeb
|
|
|
|
set -e; \
|
|
|
|
cd ${WRKSRC}/fonts; \
|
|
|
|
for i in *.bdf; do \
|
|
|
|
bdftopcf "$$i" -o `${BASENAME} "$$i" .bdf`.pcf; \
|
|
|
|
done
|
2000-05-23 00:13:11 +02:00
|
|
|
|
|
|
|
do-install:
|
2009-02-13 11:08:40 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/xbeeb ${DESTDIR}${PREFIX}/bin/xbeeb
|
|
|
|
${INSTALL_MAN} ${MAN_PAGE} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xbeeb.1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/roms/xdfs0.90.rom ${DESTDIR}${PREFIX}/${XBEEBROOT}/roms/xdfs0.90.rom
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${DESTDIR}${PREFIX}/${XBEEBROOT}/docs
|
|
|
|
cd ${WRKSRC}/fonts && ${INSTALL_DATA} *.pcf ${DESTDIR}${PREFIX}/lib/X11/fonts/xbeeb
|
|
|
|
mkfontdir ${DESTDIR}${PREFIX}/lib/X11/fonts/xbeeb
|
2000-05-23 00:13:11 +02:00
|
|
|
|
2007-02-07 19:28:00 +01:00
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
2000-05-23 00:13:11 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|