2000-09-03 12:01:41 +02:00
|
|
|
# $NetBSD: Makefile,v 1.4 2000/09/03 10:01:41 wiz Exp $
|
2000-05-23 00:13:11 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= xbeeb-0.3.6
|
|
|
|
CATEGORIES= emulators x11
|
|
|
|
MASTER_SITES= ftp://ftp.netcom.net.uk/pub/Micros/BBC/Emulators/Xbeeb/
|
2000-09-03 12:01:41 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
2000-05-23 00:13:11 +02:00
|
|
|
|
|
|
|
MAINTAINER= skrll@netbsd.org
|
|
|
|
HOMEPAGE= http://www.netcomuk.co.uk/~james/BBCMicro/Xbeeb/index.html
|
|
|
|
|
|
|
|
USE_IMAKE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/xbeeb
|
2000-06-01 22:47:00 +02:00
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
|
|
MESSAGE_FILE= ${WRKDIR}/MESSAGE
|
|
|
|
MAN_PAGE= ${WRKDIR}/xbeeb.1
|
2000-05-23 00:13:11 +02:00
|
|
|
|
|
|
|
XBEEBROOT= share/xbeeb
|
|
|
|
|
|
|
|
# xbeeb build starts in the source directory
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC}/src && ${XMKMF}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
(cd ${WRKSRC}/src && \
|
|
|
|
${MV} Config.h Config.h.dist && \
|
|
|
|
${SED} 's+^\(#define[ ]*XBEEBROOT[ ]*\)[^ ].*$$+\1"${PREFIX}/${XBEEBROOT}/"+' Config.h.dist > Config.h)
|
|
|
|
${SED} 's+#XBEEBROOT#+${XBEEBROOT}+g' ${PKGDIR}/PLIST > ${PLIST_SRC}
|
2000-06-01 22:47:00 +02:00
|
|
|
${SED} -e 's+@XBEEBROOT@+${XBEEBROOT}+g' \
|
|
|
|
-e 's+@PREFIX@+${PREFIX}+g' \
|
|
|
|
${PKGDIR}/xbeeb.1 > ${MAN_PAGE}
|
2000-05-23 00:13:11 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
(cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} xbeeb)
|
|
|
|
(cd ${WRKSRC}/fonts && \
|
|
|
|
for i in *.bdf ; \
|
|
|
|
do \
|
|
|
|
bdftopcf $$i -o `basename $$i .bdf`.pcf ; \
|
|
|
|
done)
|
|
|
|
${ECHO} > ${MESSAGE_FILE} "You must copy the BBC \"BASIC2\" ROM image to"
|
2000-06-01 22:47:00 +02:00
|
|
|
${ECHO} >> ${MESSAGE_FILE} ""
|
|
|
|
${ECHO} >> ${MESSAGE_FILE} " ${PREFIX}/${XBEEBROOT}/roms/BASIC2.rom"
|
|
|
|
${ECHO} >> ${MESSAGE_FILE} ""
|
2000-05-23 00:13:11 +02:00
|
|
|
${ECHO} >> ${MESSAGE_FILE} "and the BBC \"OS1.2\" ROM image to"
|
2000-06-01 22:47:00 +02:00
|
|
|
${ECHO} >> ${MESSAGE_FILE} ""
|
|
|
|
${ECHO} >> ${MESSAGE_FILE} " ${PREFIX}/${XBEEBROOT}/roms/OS1.2.rom"
|
|
|
|
${ECHO} >> ${MESSAGE_FILE} ""
|
|
|
|
${SED} -e 's#@PREFIX@#${PREFIX}#g' <${PKGDIR}/MESSAGE.post >>${MESSAGE_FILE}
|
2000-05-23 00:13:11 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/xbeeb ${PREFIX}/bin/xbeeb
|
2000-06-01 22:47:00 +02:00
|
|
|
${INSTALL_MAN} ${MAN_PAGE} ${PREFIX}/man/man1/xbeeb.1
|
2000-05-23 00:13:11 +02:00
|
|
|
${MKDIR} ${PREFIX}/${XBEEBROOT}
|
|
|
|
${MKDIR} ${PREFIX}/${XBEEBROOT}/roms
|
|
|
|
${MKDIR} ${PREFIX}/${XBEEBROOT}/docs
|
2000-06-01 22:47:00 +02:00
|
|
|
${MKDIR} ${PREFIX}/lib/X11/fonts/xbeeb
|
2000-05-23 00:13:11 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/roms/xdfs0.70.rom ${PREFIX}/${XBEEBROOT}/roms/xdfs0.70.rom
|
|
|
|
for docfile in ${WRKSRC}/doc/*; do \
|
|
|
|
${INSTALL_DATA} $$docfile ${PREFIX}/${XBEEBROOT}/docs; \
|
|
|
|
done
|
|
|
|
${CP} ${WRKSRC}/fonts/*.pcf ${PREFIX}/lib/X11/fonts/xbeeb
|
|
|
|
mkfontdir ${PREFIX}/lib/X11/fonts/xbeeb
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|