2000-08-18 18:44:39 +02:00
|
|
|
# New ports collection makefile for: x48
|
2006-09-05 22:34:24 +02:00
|
|
|
# Date created: Thu Oct 24 13:10:59 CDT 1996
|
|
|
|
# Whom: Eric L. Hernes <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
|
2006-09-05 22:24:10 +02:00
|
|
|
PORTVERSION= 0.4.3
|
2009-06-09 17:33:28 +02:00
|
|
|
PORTREVISION= 3
|
1996-11-12 03:19:40 +01:00
|
|
|
CATEGORIES= emulators
|
2006-09-05 22:24:10 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BERLIOS}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
x48-gxrom-r${EXTRACT_SUFX} x48-sxrom-e${EXTRACT_SUFX}
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1996-10-24 22:41:38 +02:00
|
|
|
|
2004-11-22 13:27:16 +01:00
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
2006-09-05 22:34:24 +02:00
|
|
|
COMMENT= An HP48 SX/GX calculator emulator
|
2003-07-09 09:40:20 +02:00
|
|
|
|
1996-10-24 22:41:38 +02:00
|
|
|
USE_IMAKE= yes
|
2009-06-09 17:33:28 +02:00
|
|
|
USE_XORG= x11 xext
|
1996-10-24 22:41:38 +02:00
|
|
|
NO_INSTALL_MANPAGES= yes
|
2004-11-22 13:27:16 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-09-05 22:24:10 +02:00
|
|
|
post-extract: .SILENT
|
|
|
|
cd ${WRKSRC} && ${TAR} -zxf ${DISTDIR}/x48-gxrom-r${EXTRACT_SUFX}
|
|
|
|
${MV} ${WRKSRC}/.hp48/rom ${WRKSRC}/gxrom-r
|
|
|
|
cd ${WRKSRC} && ${TAR} -zxf ${DISTDIR}/x48-sxrom-e${EXTRACT_SUFX}
|
|
|
|
${MV} ${WRKSRC}/.hp48/rom ${WRKSRC}/sxrom-e
|
|
|
|
|
2003-07-09 09:40:20 +02:00
|
|
|
post-patch:
|
2006-09-05 22:34:24 +02:00
|
|
|
@${REINPLACE_CMD} -e 's+rom.dump+${DATADIR}/gxrom-r+' \
|
2004-11-22 13:27:16 +01:00
|
|
|
${WRKSRC}/src/X48.ad
|
|
|
|
@${REINPLACE_CMD} -e 's+cuaa+cuad+' ${WRKSRC}/src/X48.ad
|
|
|
|
|
2006-09-05 22:24:10 +02:00
|
|
|
do-install:
|
|
|
|
.for p in x48 dump2rom checkrom mkcard
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/${p} ${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/X48.ad ${PREFIX}/lib/X11/app-defaults/X48
|
2006-09-05 22:34:24 +02:00
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/??rom-? ${DATADIR}
|
2000-08-18 18:44:39 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-11-05 10:55:07 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-09-05 22:34:24 +02:00
|
|
|
.for f in README doc/CARDS.doc doc/ROMDump.doc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${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>
|