summaryrefslogtreecommitdiffstats
path: root/audio/openal/Makefile
blob: 3b404e6372cdd029be2f01852d1030b339692b8d (plain)
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
52
53
54
55
56
57
58
59
# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$

PORTNAME=	openal
PORTVERSION=	20060211
PORTREVISION=	15
CATEGORIES=	audio
MASTER_SITES=	GENTOO
DISTVERSION=	0.0.8

MAINTAINER=	erik@bz.bzflag.bz
COMMENT=	3D positional spatialized sound library

LICENSE=	GPLv2

CONFLICTS=	openal-soft-[0-9]*

GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
CFLAGS+=	-Wno-return-type
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--enable-capture \
		--disable-arts
USES=		pathfix pkgconfig gmake libtool:keepla
USE_LDCONFIG=	yes

OPTIONS_DEFINE=	ESOUND SDL VORBIS SMPEG ALSA
OPTIONS_DEFINE_i386=	ASM
OPTIONS_DEFAULT_i386=	ASM
SMPEG_DESC=	smpeg support

ESOUND_USE=		GNOME=esound
ESOUND_CONFIGURE_ENABLE=esd
SDL_USE=		SDL=sdl
SDL_CONFIGURE_ENABLE=	sdl
VORBIS_LIB_DEPENDS=	libvorbisfile.so:audio/libvorbis
VORBIS_CONFIGURE_ENABLE=vorbis
SMPEG_LIB_DEPENDS=	libsmpeg.so:multimedia/smpeg
SMPEG_CONFIGURE_ENABLE=	mp3
ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
ALSA_CONFIGURE_ENABLE=	alsa
ASM_BUILD_DEPENDS=	nasm:devel/nasm

NOT_FOR_ARCHS=	ia64
NOT_FOR_ARCHS_REASON_ia64=	does not compile

post-patch:
	@${REINPLACE_CMD} -e 's/x86_64\*/amd64\* | \*ia64\*/g; \
		/CPPFLAGS=/ d; s/ \*linux\*)/ \*bsd\*)/' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e '/#include/ s|SDL/||' \
		${WRKSRC}/src/extensions/al_ext_mp3.c
	@${REINPLACE_CMD} -e 's|"mixaudio16_mmx_prk.h"|"arch/i386/mixaudio16_mmx_prk.h"|' \
		${WRKSRC}/src/mixaudio16.h
	@${REINPLACE_CMD} -e 's|@requirements@||' \
		${WRKSRC}/admin/pkgconfig/openal.pc.in
post-patch-ASM-off:
	@${REINPLACE_CMD} -e '/^NASM=/ s|=.*|=no|' ${WRKSRC}/configure

.include <bsd.port.mk>
OpenPOWER on IntegriCloud