aboutsummaryrefslogtreecommitdiff
path: root/emulators/o2em/Makefile
blob: 8809c6ae295b6bdf48fe2a8e8a555b47a0d26444 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:	o2em
# Date created:				24 June 2005
# Whom:					Gunter Wambaugh <techgunter@yahoo.com>
#
# $FreeBSD$
#

PORTNAME=		o2em
PORTVERSION=		1.17
PORTREVISION=		2
CATEGORIES=		emulators games
MASTER_SITES=		SF/${PORTNAME}/OldFiles:1 \
			http://o2em.sourceforge.net/files/:2
DISTFILES=		o2em117src.zip:1 \
			o2mainsamp.zip:2

MAINTAINER=		techgunter@yahoo.com
COMMENT=		An Odyssey2 / Videopac console emulator

LIB_DEPENDS=		alleg.42:${PORTSDIR}/devel/allegro

WRKSRC=			${WRKDIR}/o2em117src
MAKEFILE=		Makefile.freebsd
USE_ZIP=		yes
USE_GMAKE=		yes
LDFLAGS+=		${PTHREAD_LIBS}

post-extract:
	@${FIND} -E ${WRKDIR} -type f -iregex ".*\.(c|h|txt)" -print0 | \
		${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//'

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/o2em ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/src/dis48 ${PREFIX}/bin
	@${MKDIR} ${PREFIX}/${PORTNAME}
	@${MKDIR} ${PREFIX}/${PORTNAME}/bios
	${INSTALL_DATA} ${WRKSRC}/O2ROM.BIN ${PREFIX}/${PORTNAME}/bios/o2rom.bin
	@${MKDIR} ${PREFIX}/${PORTNAME}/voice
	${INSTALL_DATA} ${WRKDIR}/*.WAV ${PREFIX}/${PORTNAME}/voice/
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/O2EM.txt ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/changelog.txt ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/license.txt ${DOCSDIR}
.endif

post-install:
	${MKDIR} ${PREFIX}/o2em/roms
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>