2000-08-18 18:44:39 +02:00
|
|
|
# New ports collection makefile for: x48
|
|
|
|
# Date created: Thu Oct 24 13:10:59 CDT 1996
|
|
|
|
# Whom: erich@FreeBSD.org
|
1996-10-24 22:41:38 +02:00
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1996-10-24 22:41:38 +02:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:56:17 +02:00
|
|
|
PORTNAME= x48
|
2001-11-05 10:55:07 +01:00
|
|
|
PORTVERSION= 0.4.1e
|
2004-11-22 13:27:16 +01:00
|
|
|
PORTREVISION= 1
|
1996-11-12 03:19:40 +01:00
|
|
|
CATEGORIES= emulators
|
2001-11-05 10:55:07 +01:00
|
|
|
MASTER_SITES= http://www.hpcalc.org/hp48/pc/emulators/
|
2003-07-09 09:40:20 +02:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION:S/.//g}.tgz \
|
2004-11-22 13:27:16 +01:00
|
|
|
gxrom-r.zip sxrom-e.zip
|
2003-07-09 09:40:20 +02:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION:S/.//g}.tgz
|
1996-10-24 22:41:38 +02:00
|
|
|
|
2004-11-22 13:27:16 +01:00
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
2003-07-09 09:40:20 +02:00
|
|
|
COMMENT= A HP48 SX/GX calculator emulator
|
|
|
|
|
|
|
|
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
1996-10-24 22:41:38 +02:00
|
|
|
|
2001-11-05 10:55:07 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/e//}
|
2000-08-18 18:44:39 +02:00
|
|
|
|
1996-10-24 22:41:38 +02:00
|
|
|
USE_IMAKE= yes
|
|
|
|
NO_INSTALL_MANPAGES= yes
|
2003-07-09 09:40:20 +02:00
|
|
|
USE_REINPLACE= yes
|
2004-11-22 13:27:16 +01:00
|
|
|
|
2003-07-09 09:40:20 +02:00
|
|
|
ROMPATH= ${PREFIX}/share/x48
|
1996-10-24 22:41:38 +02:00
|
|
|
|
2004-11-22 13:27:16 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-07-09 09:40:20 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's+rom.dump+${ROMPATH}/gxrom-r+' \
|
2004-11-22 13:27:16 +01:00
|
|
|
${WRKSRC}/src/X48.ad
|
|
|
|
.if ${OSVERSION} > 600004
|
|
|
|
@${REINPLACE_CMD} -e 's+cuaa+cuad+' ${WRKSRC}/src/X48.ad
|
|
|
|
.endif
|
|
|
|
|
1996-10-24 22:41:38 +02:00
|
|
|
post-install:
|
2003-07-09 09:40:20 +02:00
|
|
|
@${MKDIR} ${ROMPATH}
|
2004-11-22 13:27:16 +01:00
|
|
|
${UNZIP_CMD} ${DISTDIR}/${DISTSUBDIR}/gxrom-r -d ${ROMPATH}
|
|
|
|
${UNZIP_CMD} -p ${DISTDIR}/${DISTSUBDIR}/sxrom-e > ${ROMPATH}/sxrom-e
|
2000-08-18 18:44:39 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-11-05 10:55:07 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2000-08-18 18:44:39 +02:00
|
|
|
.for file in README doc/CARDS.doc doc/ROMDump.doc
|
2001-11-05 10:55:07 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
2000-08-18 18:44:39 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
1996-10-24 22:41:38 +02:00
|
|
|
|
2004-11-22 13:27:16 +01:00
|
|
|
.include <bsd.port.post.mk>
|