diff options
author | pgj <pgj@FreeBSD.org> | 2010-01-13 05:22:24 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-01-13 05:22:24 +0800 |
commit | 9a75ab87414132e7b5a1227863b96102cdecb1c5 (patch) | |
tree | 1b820760feb2857b237574c3c956635dbcc16e29 /audio/hs-OpenAL | |
parent | 557aa1d75bc182442b3b77d5deecd4bf1cd0faad (diff) | |
download | freebsd-ports-gnome-9a75ab87414132e7b5a1227863b96102cdecb1c5.tar.gz freebsd-ports-gnome-9a75ab87414132e7b5a1227863b96102cdecb1c5.tar.zst freebsd-ports-gnome-9a75ab87414132e7b5a1227863b96102cdecb1c5.zip |
A Haskell binding for the OpenAL cross-platform 3D audio API,
appropriate for use with gaming applications and many other
types of audio applications. For more information about OpenAL.
WWW: http://connect.creativelabs.com/openal/
PR: ports/142478
Submitted by: Jacula Modyun <jacula(at)gmail.com>
Diffstat (limited to 'audio/hs-OpenAL')
-rw-r--r-- | audio/hs-OpenAL/Makefile | 93 | ||||
-rw-r--r-- | audio/hs-OpenAL/distinfo | 3 | ||||
-rw-r--r-- | audio/hs-OpenAL/pkg-descr | 5 | ||||
-rw-r--r-- | audio/hs-OpenAL/pkg-plist | 48 |
4 files changed, 149 insertions, 0 deletions
diff --git a/audio/hs-OpenAL/Makefile b/audio/hs-OpenAL/Makefile new file mode 100644 index 000000000000..209e18952361 --- /dev/null +++ b/audio/hs-OpenAL/Makefile @@ -0,0 +1,93 @@ +# New ports collection makefile for: hs-OpenAL +# Date created: December 20 2009 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= OpenAL +PORTVERSION= 1.4.0.0 +CATEGORIES= audio haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= A Haskell binding to the OpenAL cross-platform 3D audio API + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \ + hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor \ + hs-ObjectName>=1.0.0.0:${PORTSDIR}/devel/hs-ObjectName +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \ + hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor \ + hs-ObjectName>=1.0.0.0:${PORTSDIR}/devel/hs-ObjectName +LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal + +GHC_VERSION= 6.10.4 +HSOPENAL_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +CPPFLAGS+= -I${LOCALBASE}/include + +EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME} +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +HSOPENAL_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + HSOPENAL_VERSION=${HSOPENAL_VERSION} \ + HSOPENAL_LIBDIR_REL=${HSOPENAL_LIBDIR_REL} + +PORTEXAMPLES= * + +.if defined(NOPORTDOCS) +PLIST_SUB+= NOPORTDOCS="" +.else +PLIST_SUB+= NOPORTDOCS="@comment " +.endif + +.if !defined(NOPORTDOCS) + +PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK) +.if !empty(PORT_HADDOCK:M?0) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +.endif +BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour + +HSCOLOUR_VERSION= 1.15 +HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION} + +PORTDOCS= * +.endif + +.SILENT: + +do-configure: + cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \ + && ${SETENV} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"\ + ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} + +do-build: + cd ${WRKSRC} && ${SETUP_CMD} build \ + && ${SETUP_CMD} register --gen-script + +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \ + --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css +.endif + +do-install: + cd ${WRKSRC} && ${SETUP_CMD} install \ + && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSOPENAL_LIBDIR_REL}/register.sh +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR} && cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR} +.endif + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/audio/hs-OpenAL/distinfo b/audio/hs-OpenAL/distinfo new file mode 100644 index 000000000000..5bf8a5ecd7cc --- /dev/null +++ b/audio/hs-OpenAL/distinfo @@ -0,0 +1,3 @@ +MD5 (OpenAL-1.4.0.0.tar.gz) = 21d3e7b48d5c45173b8ca17617239174 +SHA256 (OpenAL-1.4.0.0.tar.gz) = 42d7f1b9acbcac14d0a639708decf39506bd53dc6fa19614aa987fd21ccac9ee +SIZE (OpenAL-1.4.0.0.tar.gz) = 113186 diff --git a/audio/hs-OpenAL/pkg-descr b/audio/hs-OpenAL/pkg-descr new file mode 100644 index 000000000000..58835b85fd1e --- /dev/null +++ b/audio/hs-OpenAL/pkg-descr @@ -0,0 +1,5 @@ +A Haskell binding for the OpenAL cross-platform 3D audio API, +appropriate for use with gaming applications and many other +types of audio applications. For more information about OpenAL. + +WWW: http://connect.creativelabs.com/openal/ diff --git a/audio/hs-OpenAL/pkg-plist b/audio/hs-OpenAL/pkg-plist new file mode 100644 index 000000000000..0df69d603283 --- /dev/null +++ b/audio/hs-OpenAL/pkg-plist @@ -0,0 +1,48 @@ +@comment $FreeBSD$ +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSOpenAL-%%HSOPENAL_VERSION%%.o +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/ALboolean.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Attenuation.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/BasicTypes.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Buffer.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/BufferInternal.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Doppler.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Errors.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Extensions.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Format.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Listener.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/PeekPoke.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/QueryUtils.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Source.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/SourceState.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/String.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/StringQueries.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/ALCboolean.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/BasicTypes.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Capture.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Context.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Device.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Errors.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Extensions.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/QueryUtils.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/String.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/Config.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/Constants.hi +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsOpenAL.h +%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSOpenAL-%%HSOPENAL_VERSION%%.a +%%HSOPENAL_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include +@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC +@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL +@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL +@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound +@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%HSOPENAL_LIBDIR_REL%% +@exec /bin/sh %D/%%HSOPENAL_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister OpenAL +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |