2006-09-09 04:49:32 +02:00
|
|
|
# $NetBSD: Makefile,v 1.8 2006/09/09 02:49:32 obache Exp $
|
2005-01-11 20:48:05 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= adamem
|
|
|
|
PKGNAME= adamem-1.0
|
|
|
|
CATEGORIES= emulators
|
|
|
|
MASTER_SITES= http://www.komkon.org/~dekogel/files/coleco/
|
|
|
|
|
|
|
|
MAINTAINER= xmor61@users.sourceforge.net
|
|
|
|
HOMEPAGE= http://www.komkon.org/~dekogel/adamem.html
|
|
|
|
COMMENT= Emulator for the Colecovision game console and Adam computer system
|
|
|
|
|
2006-09-09 04:49:32 +02:00
|
|
|
MAKE_FILE= Makefile.X
|
2006-01-13 02:19:38 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2005-01-11 20:48:05 +01:00
|
|
|
|
2006-01-13 02:19:38 +01:00
|
|
|
SUBST_CLASSES+= dsp
|
|
|
|
SUBST_STAGE.dsp= post-patch
|
|
|
|
SUBST_MESSAGE.dsp= Adjusting sound device path.
|
|
|
|
SUBST_FILES.dsp= dev_dsp.h
|
|
|
|
SUBST_SED.dsp= -e "s|/dev/dsp|${DEVOSSAUDIO}|"
|
2005-01-11 20:48:05 +01:00
|
|
|
|
2005-11-06 17:00:14 +01:00
|
|
|
SUBST_CLASSES+= adam
|
|
|
|
SUBST_STAGE.adam= pre-configure
|
|
|
|
SUBST_FILES.adam= adam
|
|
|
|
SUBST_SED.adam+= -e 's|<!--ADAMEM_DIR-->|${PREFIX}/share/adamem|g'
|
|
|
|
SUBST_SED.adam+= -e 's|<!--BIN_DIR-->|${PREFIX}/bin|g'
|
|
|
|
|
|
|
|
CPPFLAGS.i386+= -DX86_ASM
|
2005-01-11 20:48:05 +01:00
|
|
|
|
|
|
|
.include "../../mk/endian.mk"
|
|
|
|
.if ${MACHINE_ENDIAN} == "little"
|
2005-03-29 06:57:42 +02:00
|
|
|
CPPFLAGS+= -DLSB_FIRST
|
2005-01-11 20:48:05 +01:00
|
|
|
.endif
|
|
|
|
|
2005-11-06 17:00:14 +01:00
|
|
|
post-extract:
|
2006-01-13 02:19:38 +01:00
|
|
|
${CP} ${FILESDIR:Q}/adam ${WRKSRC:Q}/
|
2005-11-06 17:00:14 +01:00
|
|
|
|
2005-01-11 20:48:05 +01:00
|
|
|
do-install:
|
2006-01-13 02:19:38 +01:00
|
|
|
.for f in adamem cvem z80dasm snapedit
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC:Q}/${f:Q} ${PREFIX:Q}/bin
|
2005-01-11 20:48:05 +01:00
|
|
|
.endfor
|
2006-01-13 02:19:38 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX:Q}/share/adamem
|
|
|
|
${INSTALL_DATA} ${WRKSRC:Q}/adamem.txt ${PREFIX:Q}/share/adamem
|
|
|
|
${INSTALL_DATA} ${WRKSRC:Q}/adamem.snd ${PREFIX:Q}/share/adamem
|
|
|
|
.for f in OS7 EOS WP
|
|
|
|
${INSTALL_DATA} ${WRKSRC:Q}/${f:Q}.rom ${PREFIX:Q}/share/adamem
|
2005-01-11 20:48:05 +01:00
|
|
|
.endfor
|
2006-01-13 02:19:38 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC:Q}/adam ${PREFIX:Q}/bin/adam
|
|
|
|
${RM} -f ${PREFIX:Q}/bin/coleco
|
|
|
|
${LN} -s adam ${PREFIX:Q}/bin/coleco
|
2005-01-11 20:48:05 +01:00
|
|
|
|
|
|
|
.include "../../devel/allegro/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2006-03-09 22:02:03 +01:00
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
2005-06-13 01:51:13 +02:00
|
|
|
.include "../../mk/x11.buildlink3.mk"
|
2005-03-29 06:57:42 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|