aboutsummaryrefslogtreecommitdiff
path: root/emulators/adamem/Makefile
diff options
context:
space:
mode:
authorAlex Kozlov <ak@FreeBSD.org>2014-04-11 12:03:51 +0000
committerAlex Kozlov <ak@FreeBSD.org>2014-04-11 12:03:51 +0000
commitb53b0f3b43b714ea6b94c72cde897e7570189563 (patch)
tree3bd3d55bc0425fa4234aa5640fd8f3cb771b0915 /emulators/adamem/Makefile
parentd047235c7ddd363ddc20222e775a9a95c13b162f (diff)
downloadports-b53b0f3b43b714ea6b94c72cde897e7570189563.tar.gz
ports-b53b0f3b43b714ea6b94c72cde897e7570189563.zip
Notes
Diffstat (limited to 'emulators/adamem/Makefile')
-rw-r--r--emulators/adamem/Makefile30
1 files changed, 16 insertions, 14 deletions
diff --git a/emulators/adamem/Makefile b/emulators/adamem/Makefile
index 94be5be3f4cd..3c1195c1c347 100644
--- a/emulators/adamem/Makefile
+++ b/emulators/adamem/Makefile
@@ -3,7 +3,7 @@
PORTNAME= adamem
PORTVERSION= 1.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= emulators
MASTER_SITES= http://www.komkon.org/~dekogel/files/coleco/
DISTNAME= ${PORTNAME}
@@ -13,22 +13,24 @@ COMMENT= ADAMEm is a portable Coleco ADAM and ColecoVision emulator
NO_WRKSUBDIR= yes
USE_XORG= sm x11 xau xext xfixes xi xrandr
+
+MAKE_ARGS= CC=${CC} LD=${CC}
ALL_TARGET= x
-PROGDIR= ${PREFIX}/${PORTNAME}
+OPTIONS_DEFINE= DOCS
+
+post-patch:
+ @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/ADAMEm.c \
+ ${WRKSRC}/Coleco.c
-NO_STAGE= yes
do-install:
- ${MKDIR} ${PROGDIR}
- ${INSTALL_PROGRAM} ${WRKSRC}/adamem ${PROGDIR}
- ${LN} -s adamem ${PROGDIR}/cvem
- ${INSTALL_DATA} ${WRKSRC}/adamem.snd ${PROGDIR}
- ${INSTALL_DATA} ${WRKSRC}/OS7.rom ${PROGDIR}
- ${INSTALL_DATA} ${WRKSRC}/WP.rom ${PROGDIR}
- ${INSTALL_DATA} ${WRKSRC}/EOS.rom ${PROGDIR}
-.ifndef(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/adamem.txt ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/adamem ${STAGEDIR}${PREFIX}/bin
+ ${LN} -s adamem ${STAGEDIR}${PREFIX}/bin/cvem
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+.for f in adamem.snd OS7.rom WP.rom EOS.rom
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
+.endfor
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/adamem.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>