aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/hs-ALUT/Makefile77
-rw-r--r--audio/hs-ALUT/pkg-plist38
-rw-r--r--audio/hs-OpenAL/Makefile80
-rw-r--r--audio/hs-OpenAL/pkg-plist86
4 files changed, 72 insertions, 209 deletions
diff --git a/audio/hs-ALUT/Makefile b/audio/hs-ALUT/Makefile
index e992ee84298..0edf1d3cef1 100644
--- a/audio/hs-ALUT/Makefile
+++ b/audio/hs-ALUT/Makefile
@@ -9,83 +9,16 @@ PORTNAME= ALUT
PORTVERSION= 2.2.0.0
PORTREVISION= 1
CATEGORIES= audio haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell binding for the OpenAL Utility Toolkit
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-OpenAL>=1.4.0.0:${PORTSDIR}/audio/hs-OpenAL
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-OpenAL>=1.4.0.0:${PORTSDIR}/audio/hs-OpenAL
-
-GHC_VERSION= 6.10.4
-HSALUT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= OpenAL StateVar
USE_OPENAL= al alut
-CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-CPPFLAGS+= -I${LOCALBASE}/include
-
-EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSALUT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSALUT_VERSION=${HSALUT_VERSION} \
- HSALUT_LIBDIR_REL=${HSALUT_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}/${HSALUT_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
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/audio/hs-ALUT/pkg-plist b/audio/hs-ALUT/pkg-plist
index 8c05a491ae2..d0da62656ea 100644
--- a/audio/hs-ALUT/pkg-plist
+++ b/audio/hs-ALUT/pkg-plist
@@ -1,24 +1,24 @@
@comment $FreeBSD$
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSALUT-%%HSALUT_VERSION%%.o
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Config.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Constants.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Errors.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Initialization.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Loaders.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Sleep.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Version.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsALUT.h
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSALUT-%%HSALUT_VERSION%%.a
-%%HSALUT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Config.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Constants.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Errors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Initialization.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Loaders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Sleep.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Version.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsALUT.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
-@dirrm %%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT
-@dirrm %%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound
-@dirrm %%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSALUT_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSALUT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister ALUT
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/audio/hs-OpenAL/Makefile b/audio/hs-OpenAL/Makefile
index e5ed4c0776b..5ed54433326 100644
--- a/audio/hs-OpenAL/Makefile
+++ b/audio/hs-OpenAL/Makefile
@@ -9,86 +9,16 @@ PORTNAME= OpenAL
PORTVERSION= 1.4.0.0
PORTREVISION= 1
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
-
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= ObjectName StateVar Tensor
USE_OPENAL= al
-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
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/audio/hs-OpenAL/pkg-plist b/audio/hs-OpenAL/pkg-plist
index 0df69d60328..fb57d33a2e8 100644
--- a/audio/hs-OpenAL/pkg-plist
+++ b/audio/hs-OpenAL/pkg-plist
@@ -1,48 +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
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/ALboolean.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Attenuation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/BasicTypes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Buffer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/BufferInternal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Doppler.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Errors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Extensions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Format.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Listener.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/PeekPoke.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/QueryUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Source.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/SourceState.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/String.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/StringQueries.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/ALCboolean.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/BasicTypes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Capture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Context.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Device.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Errors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Extensions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/QueryUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/String.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/Config.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/Constants.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsOpenAL.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%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
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister OpenAL
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old