summaryrefslogtreecommitdiff
path: root/emulators/mupen64-dummyaudio/Makefile
blob: 642894e47154c459901f189b11303fd4347d169c (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
# New ports collection makefile for:	mupen64-dummyaudio
# Date created:		12.Aug 2004
# Whom:			dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#

PORTNAME=	mupen64
PORTVERSION=	0.4
CATEGORIES+=	emulators
MASTER_SITES=	http://mupen64.emulation64.com/files/${PORTVERSION}/
PKGNAMESUFFIX=	-dummyaudio
DISTNAME=	dummyaudio

MAINTAINER?=	tlp@LiquidX.org
COMMENT=	Dummy audio plugin for Mupen64

USE_BZIP2=	yes
USE_GMAKE=	yes
USE_GCC=	3.4
ONLY_FOR_ARCHS=	i386
WRKSRC=		${WRKDIR}/dummy

PLUGIN_NAME=	dummyaudio
PLIST_FILES=	share/mupen64/plugins/${PLUGIN_NAME}.so
PLIST_DIRS=	share/mupen64/plugins
PLIST_DIRS+=	share/mupen64

do-install:
	@${MKDIR} ${PREFIX}/share/mupen64/plugins
	${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN_NAME}.so \
		${PREFIX}/share/mupen64/plugins/

.include <bsd.port.pre.mk>

CFLAGS+=	-fPIC
CFLAGS+=	-O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -pipe
CFLAGS+=	-DX86 -mcpu=athlon
LDFLAGS+=	-shared -Wl,-Bsymbolic -lc

MAKE_ARGS+=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" LD="${CC}"

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>