diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2010-01-05 19:42:32 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2010-01-05 19:42:32 +0000 |
commit | 44f152a403e3cc36b7b3e3b43951eee3caa95ed4 (patch) | |
tree | 9d11c4a922d7b5231a1818dc31749e2c9e5dca21 /x11-toolkits | |
parent | 6b35716ec97985a8dbddaace2b4a37dadbf8dec6 (diff) | |
download | ports-44f152a403e3cc36b7b3e3b43951eee3caa95ed4.tar.gz ports-44f152a403e3cc36b7b3e3b43951eee3caa95ed4.zip |
Notes
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/Makefile | 1 | ||||
-rw-r--r-- | x11-toolkits/hs-GLURaw-ghc/Makefile | 82 | ||||
-rw-r--r-- | x11-toolkits/hs-GLURaw-ghc/distinfo | 3 | ||||
-rw-r--r-- | x11-toolkits/hs-GLURaw-ghc/pkg-descr | 5 | ||||
-rw-r--r-- | x11-toolkits/hs-GLURaw-ghc/pkg-plist | 23 | ||||
-rw-r--r-- | x11-toolkits/hs-GLURaw/Makefile | 82 | ||||
-rw-r--r-- | x11-toolkits/hs-GLURaw/distinfo | 3 | ||||
-rw-r--r-- | x11-toolkits/hs-GLURaw/pkg-descr | 5 | ||||
-rw-r--r-- | x11-toolkits/hs-GLURaw/pkg-plist | 23 |
9 files changed, 227 insertions, 0 deletions
diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile index 1096ed74be4a..0cf03f625782 100644 --- a/x11-toolkits/Makefile +++ b/x11-toolkits/Makefile @@ -91,6 +91,7 @@ SUBDIR += gtoolkit SUBDIR += guile-gtk SUBDIR += hippo-canvas + SUBDIR += hs-GLURaw-ghc SUBDIR += hs-OpenGLRaw-ghc SUBDIR += hs-frantk SUBDIR += hs-glut-ghc diff --git a/x11-toolkits/hs-GLURaw-ghc/Makefile b/x11-toolkits/hs-GLURaw-ghc/Makefile new file mode 100644 index 000000000000..a3b4bc759d12 --- /dev/null +++ b/x11-toolkits/hs-GLURaw-ghc/Makefile @@ -0,0 +1,82 @@ +# New ports collection makefile for: hs-GLURaw-ghc +# Date created: December 20 2009 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= GLURaw +PORTVERSION= 1.1.0.0 +CATEGORIES= x11-toolkits haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- +PKGNAMESUFFIX= -ghc + +MAINTAINER= jacula@gmail.com +COMMENT= A raw Haskell binding for the OpenGL Utility Toolkit + +USE_GL= glu + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-OpenGLRaw-ghc>=1.1.0.1:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-OpenGLRaw-ghc>=1.1.0.1:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc + +GHC_VERSION= 6.10.4 +HSGLURAW_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +HSGLURAW_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + HSGLURAW_VERSION=${HSGLURAW_VERSION} \ + HSGLURAW_LIBDIR_REL=${HSGLURAW_LIBDIR_REL} + +.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 \ + && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \ + --extra-include-dirs=${LOCALBASE}/include \ + --extra-lib-dirs=${LOCALBASE}/lib + +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}/${HSGLURAW_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/x11-toolkits/hs-GLURaw-ghc/distinfo b/x11-toolkits/hs-GLURaw-ghc/distinfo new file mode 100644 index 000000000000..22bf343b3227 --- /dev/null +++ b/x11-toolkits/hs-GLURaw-ghc/distinfo @@ -0,0 +1,3 @@ +MD5 (GLURaw-1.1.0.0.tar.gz) = 3f195f73f5c58edc3dd32c5048c5b64e +SHA256 (GLURaw-1.1.0.0.tar.gz) = 4ce5bb03bb7d7822554d4bafb8b82d05ff7379f97d41c4ed9a070bd8f1d49a0e +SIZE (GLURaw-1.1.0.0.tar.gz) = 7670 diff --git a/x11-toolkits/hs-GLURaw-ghc/pkg-descr b/x11-toolkits/hs-GLURaw-ghc/pkg-descr new file mode 100644 index 000000000000..72227ae677a5 --- /dev/null +++ b/x11-toolkits/hs-GLURaw-ghc/pkg-descr @@ -0,0 +1,5 @@ +GLURaw is a raw Haskell binding for the GLU 1.3 OpenGL utility library. +It is basically a 1:1 mapping of GLU's C API, intended as a basis for a +nicer interface. + +WWW: http://www.haskell.org/HOpenGL/ diff --git a/x11-toolkits/hs-GLURaw-ghc/pkg-plist b/x11-toolkits/hs-GLURaw-ghc/pkg-plist new file mode 100644 index 000000000000..fc77609be59b --- /dev/null +++ b/x11-toolkits/hs-GLURaw-ghc/pkg-plist @@ -0,0 +1,23 @@ +@comment $FreeBSD$ +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/APIEntry.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Callbacks.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Functions.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Tokens.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Types.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/TypesInternal.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSGLURaw-%%HSGLURAW_VERSION%%.o +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSGLURaw-%%HSGLURAW_VERSION%%.a +%%HSGLURAW_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw +@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU +@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering +@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics +@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%HSGLURAW_LIBDIR_REL%% +@exec /bin/sh %D/%%HSGLURAW_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister GLURaw +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old diff --git a/x11-toolkits/hs-GLURaw/Makefile b/x11-toolkits/hs-GLURaw/Makefile new file mode 100644 index 000000000000..a3b4bc759d12 --- /dev/null +++ b/x11-toolkits/hs-GLURaw/Makefile @@ -0,0 +1,82 @@ +# New ports collection makefile for: hs-GLURaw-ghc +# Date created: December 20 2009 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= GLURaw +PORTVERSION= 1.1.0.0 +CATEGORIES= x11-toolkits haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- +PKGNAMESUFFIX= -ghc + +MAINTAINER= jacula@gmail.com +COMMENT= A raw Haskell binding for the OpenGL Utility Toolkit + +USE_GL= glu + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-OpenGLRaw-ghc>=1.1.0.1:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-OpenGLRaw-ghc>=1.1.0.1:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc + +GHC_VERSION= 6.10.4 +HSGLURAW_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +HSGLURAW_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + HSGLURAW_VERSION=${HSGLURAW_VERSION} \ + HSGLURAW_LIBDIR_REL=${HSGLURAW_LIBDIR_REL} + +.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 \ + && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \ + --extra-include-dirs=${LOCALBASE}/include \ + --extra-lib-dirs=${LOCALBASE}/lib + +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}/${HSGLURAW_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/x11-toolkits/hs-GLURaw/distinfo b/x11-toolkits/hs-GLURaw/distinfo new file mode 100644 index 000000000000..22bf343b3227 --- /dev/null +++ b/x11-toolkits/hs-GLURaw/distinfo @@ -0,0 +1,3 @@ +MD5 (GLURaw-1.1.0.0.tar.gz) = 3f195f73f5c58edc3dd32c5048c5b64e +SHA256 (GLURaw-1.1.0.0.tar.gz) = 4ce5bb03bb7d7822554d4bafb8b82d05ff7379f97d41c4ed9a070bd8f1d49a0e +SIZE (GLURaw-1.1.0.0.tar.gz) = 7670 diff --git a/x11-toolkits/hs-GLURaw/pkg-descr b/x11-toolkits/hs-GLURaw/pkg-descr new file mode 100644 index 000000000000..72227ae677a5 --- /dev/null +++ b/x11-toolkits/hs-GLURaw/pkg-descr @@ -0,0 +1,5 @@ +GLURaw is a raw Haskell binding for the GLU 1.3 OpenGL utility library. +It is basically a 1:1 mapping of GLU's C API, intended as a basis for a +nicer interface. + +WWW: http://www.haskell.org/HOpenGL/ diff --git a/x11-toolkits/hs-GLURaw/pkg-plist b/x11-toolkits/hs-GLURaw/pkg-plist new file mode 100644 index 000000000000..fc77609be59b --- /dev/null +++ b/x11-toolkits/hs-GLURaw/pkg-plist @@ -0,0 +1,23 @@ +@comment $FreeBSD$ +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/APIEntry.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Callbacks.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Functions.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Tokens.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Types.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/TypesInternal.hi +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSGLURaw-%%HSGLURAW_VERSION%%.o +%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSGLURaw-%%HSGLURAW_VERSION%%.a +%%HSGLURAW_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw +@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU +@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering +@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics +@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%HSGLURAW_LIBDIR_REL%% +@exec /bin/sh %D/%%HSGLURAW_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister GLURaw +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |