2000-09-26 14:12:49 +02:00
|
|
|
# New ports collection makefile for: openal
|
|
|
|
# Date created: 25 September 2000
|
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= openal
|
2006-04-23 12:14:30 +02:00
|
|
|
PORTVERSION= 20060211
|
2006-04-25 19:04:34 +02:00
|
|
|
PORTREVISION= 2
|
2000-09-26 14:12:49 +02:00
|
|
|
CATEGORIES= audio
|
2006-04-23 12:14:30 +02:00
|
|
|
MASTER_SITES= http://openal.org/openal_webstf/downloads/
|
|
|
|
DISTVERSION= 0.0.8
|
2000-09-26 14:12:49 +02:00
|
|
|
|
2004-05-16 09:30:10 +02:00
|
|
|
MAINTAINER= erik@smluc.org
|
2003-02-21 12:08:38 +01:00
|
|
|
COMMENT= A 3D positional spatialized sound library
|
2002-02-21 02:26:32 +01:00
|
|
|
|
2003-10-27 10:11:28 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2005-11-24 07:49:56 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= --enable-capture
|
2002-04-01 04:01:59 +02:00
|
|
|
USE_GMAKE= yes
|
2006-04-23 12:14:30 +02:00
|
|
|
USE_GNOME= pkgconfig gnomehack
|
2005-11-24 07:49:56 +01:00
|
|
|
WANT_SDL= yes
|
2003-03-31 10:00:45 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
2003-10-04 06:53:13 +02:00
|
|
|
|
2005-11-24 07:49:56 +01:00
|
|
|
OPTIONS= ARTS "aRts backend" off \
|
|
|
|
ESD "esd backend" off \
|
|
|
|
SDL "SDL backend" off \
|
|
|
|
VORBIS "vorbis support" off \
|
|
|
|
SMPEG "smpeg support" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_SMPEG)
|
|
|
|
WITH_SDL= yes # smpeg requires SDL
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ARTS)
|
|
|
|
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
|
|
|
|
CONFIGURE_ARGS+=--enable-arts
|
2006-04-23 12:14:30 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-arts
|
2005-11-24 07:49:56 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ESD)
|
|
|
|
USE_GNOME+= esound
|
|
|
|
CONFIGURE_ARGS+=--enable-esd
|
2006-04-23 12:14:30 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-esd
|
2005-11-24 07:49:56 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SDL)
|
|
|
|
USE_SDL+= sdl
|
|
|
|
CONFIGURE_ENV+= HAVESDL="${SDL_CONFIG}"
|
|
|
|
CONFIGURE_ARGS+=--enable-sdl
|
2006-04-23 12:14:30 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-sdl
|
2005-11-24 07:49:56 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_VORBIS)
|
|
|
|
LIB_DEPENDS+= vorbisfile.4:${PORTSDIR}/audio/libvorbis
|
|
|
|
CONFIGURE_ARGS+=--enable-vorbis
|
2006-04-23 12:14:30 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-vorbis
|
2005-11-24 07:49:56 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SMPEG)
|
|
|
|
LIB_DEPENDS+= smpeg.1:${PORTSDIR}/multimedia/smpeg
|
|
|
|
CONFIGURE_ARGS+=--enable-smpeg
|
2006-04-23 12:14:30 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-smpeg
|
2005-11-24 07:49:56 +01:00
|
|
|
.endif
|
|
|
|
|
2006-07-02 01:47:49 +02:00
|
|
|
NOT_FOR_ARCHS= ia64
|
|
|
|
NOT_FOR_ARCHS_REASON_ia64= does not compile
|
|
|
|
|
2003-10-04 06:53:13 +02:00
|
|
|
post-patch:
|
2005-11-24 07:49:56 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/-pthread/${PTHREAD_LIBS}/; \
|
2006-04-23 21:01:28 +02:00
|
|
|
s/x86_64\*/amd64\* | \*ia64\*/g; \
|
2006-07-05 19:54:22 +02:00
|
|
|
/CPPFLAGS=/ d; s/ \*linux\*)/ \*bsd\*)/' ${WRKSRC}/configure
|
2005-11-24 07:49:56 +01:00
|
|
|
@${REINPLACE_CMD} -e '/#include/ s|SDL/||' \
|
|
|
|
${WRKSRC}/src/extensions/al_ext_mp3.c
|
2006-04-23 21:01:28 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|"mixaudio16_mmx_prk.h"|"arch/i386/mixaudio16_mmx_prk.h"|' \
|
|
|
|
${WRKSRC}/src/mixaudio16.h
|
2006-04-25 19:04:34 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|@requirements@||; \
|
|
|
|
s|Libs: |&${PTHREAD_LIBS} |;\
|
|
|
|
s|Cflags: |&${PTHREAD_CFLAGS} |' \
|
2006-04-23 21:30:20 +02:00
|
|
|
${WRKSRC}/admin/pkgconfig/openal.pc.in
|
2000-10-17 22:07:25 +02:00
|
|
|
|
2005-11-24 07:49:56 +01:00
|
|
|
.include <bsd.port.post.mk>
|