59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
# New ports collection makefile for: frodo
|
|
# Date created: 11 Dez 1997
|
|
# Whom: dirk.meyer@dinoex.sub.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= frodo
|
|
PORTVERSION= 4.1a
|
|
CATEGORIES= emulators tk83
|
|
MASTER_SITES= ftp://metalab.unc.edu/pub/micro/commodore/crossplatform/emulators/Frodo/ \
|
|
ftp://ftp.funet.fi/pub/cbm/crossplatform/emulators/Frodo/
|
|
DISTNAME= FrodoV4_1a.Src
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
COMMENT= Emulates a Commodore 64
|
|
|
|
RUN_DEPENDS= wish8.3:${PORTSDIR}/x11-toolkits/tk83
|
|
|
|
USE_X_PREFIX= yes
|
|
ALL_TARGET= Frodo
|
|
WRKSRC= ${WRKDIR}/Frodo/Src
|
|
|
|
ROM= 1541 Basic Char Kernal
|
|
|
|
post-patch:
|
|
@${MV} ${WRKDIR}/Frodo/TkGui.tcl ${WRKDIR}/Frodo/TkGui.tcl.sed
|
|
${SED} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
|
|
${WRKDIR}/Frodo/TkGui.tcl.sed > ${WRKDIR}/Frodo/TkGui.tcl
|
|
|
|
do-configure:
|
|
@(cd ${WRKSRC}; ${SH} ./configure)
|
|
|
|
do-install:
|
|
${SED} -e 's=\$${PREFIX}=${PREFIX}=g' \
|
|
< ${FILESDIR}/frodo > ${WRKDIR}/frodo
|
|
${INSTALL_SCRIPT} ${WRKDIR}/frodo ${PREFIX}/bin
|
|
${MKDIR} ${PREFIX}/libexec/frodo
|
|
${INSTALL_PROGRAM} ${WRKDIR}/Frodo/Frodo ${PREFIX}/libexec/frodo
|
|
.for i in ${ROM}
|
|
${INSTALL_DATA} "${WRKDIR}/Frodo/${i} ROM" ${PREFIX}/libexec/frodo
|
|
.endfor
|
|
${INSTALL_DATA} "${WRKDIR}/Frodo/Frodo Logo" ${PREFIX}/libexec/frodo
|
|
${CP} "${WRKDIR}/Frodo/TkGui.tcl" ${PREFIX}/libexec/frodo
|
|
${MKDIR} ${PREFIX}/libexec/frodo/64prgs
|
|
@${TAR} -C ${WRKDIR}/Frodo/64prgs -cf - . | \
|
|
${TAR} -C ${PREFIX}/libexec/frodo/64prgs -xf -
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for i in CHANGES
|
|
${INSTALL_DATA} ${WRKDIR}/Frodo/${i} ${DOCSDIR}/
|
|
.endfor
|
|
@${TAR} -C ${WRKDIR}/Frodo/Docs -cf - . | ${TAR} -C ${DOCSDIR} -xf -
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|