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
|
2009-04-08 00:17:39 +02:00
|
|
|
PORTREVISION= 9
|
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
|
|
|
|
2009-03-09 22:31:13 +01:00
|
|
|
CONFLICTS= openal-soft-[0-9]*
|
|
|
|
|
2007-01-28 10:07:47 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2003-10-27 10:11:28 +01:00
|
|
|
GNU_CONFIGURE= yes
|
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
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= 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)
|
2007-07-28 14:27:31 +02:00
|
|
|
LIB_DEPENDS+= vorbisfile.5:${PORTSDIR}/audio/libvorbis
|
2005-11-24 07:49:56 +01:00
|
|
|
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
|
|
|
|
|
2009-03-16 23:57:07 +01:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
OPTIONS+= X86_ASM "Enable x86 assembly code" on
|
|
|
|
.if !defined(WITHOUT_X86_ASM)
|
2009-03-17 01:32:41 +01:00
|
|
|
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
2009-03-16 23:57:07 +01:00
|
|
|
.endif
|
|
|
|
.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
|
2009-03-16 23:57:07 +01:00
|
|
|
.if defined(WITHOUT_X86_ASM)
|
2009-03-16 01:54:39 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^NASM=/ s|=.*|=no|' ${WRKSRC}/configure
|
2009-03-16 23:57:07 +01:00
|
|
|
.endif
|
2000-10-17 22:07:25 +02:00
|
|
|
|
2006-08-16 15:27:39 +02:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2005-11-24 07:49:56 +01:00
|
|
|
.include <bsd.port.post.mk>
|