2007-10-29 08:33:00 +01:00
|
|
|
# New ports collection makefile for: xmonad
|
|
|
|
# Date created: 2007-10-25
|
|
|
|
# Whom: Matthieu Guegan <matt.guegan@free.fr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xmonad
|
2008-11-08 05:56:42 +01:00
|
|
|
PORTVERSION= 0.8
|
2007-10-29 08:33:00 +01:00
|
|
|
CATEGORIES= x11-wm haskell
|
|
|
|
MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad/${PORTVERSION}/
|
|
|
|
|
|
|
|
MAINTAINER= matt.guegan@free.fr
|
|
|
|
COMMENT= Xmonad is a minimalist and tiling window manager for X
|
|
|
|
|
2008-02-20 02:10:09 +01:00
|
|
|
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
|
|
|
|
hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
|
|
|
|
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4
|
|
|
|
|
- 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_XORG= x11
|
2007-10-29 08:33:00 +01:00
|
|
|
|
|
|
|
CABALCMD= ${LOCALBASE}/bin/runghc Setup.lhs
|
2008-07-18 22:05:17 +02:00
|
|
|
GHC_VERSION= 6.8.3
|
2008-02-20 02:10:09 +01:00
|
|
|
SUBDIR= lib/${PORTNAME}-${PORTVERSION}
|
2008-11-23 09:25:03 +01:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
|
2008-02-20 02:10:09 +01:00
|
|
|
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
|
2008-04-05 12:47:59 +02:00
|
|
|
PORTVERSION=${PORTVERSION} \
|
2008-02-20 02:10:09 +01:00
|
|
|
SUBDIR=${SUBDIR}
|
2007-10-29 08:33:00 +01:00
|
|
|
|
|
|
|
MAN1= xmonad.1
|
|
|
|
|
2008-11-23 09:25:03 +01:00
|
|
|
.ifndef (NOPORTDOCS)
|
|
|
|
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
|
|
|
|
.endif
|
|
|
|
|
2007-10-29 08:33:00 +01:00
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX}
|
|
|
|
|
|
|
|
do-build:
|
2008-02-20 02:10:09 +01:00
|
|
|
cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} register --gen-script
|
2008-11-23 09:25:03 +01:00
|
|
|
.ifndef (NOPORTDOCS)
|
|
|
|
cd ${WRKSRC} && ${CABALCMD} haddock
|
|
|
|
.endif
|
2007-10-29 08:33:00 +01:00
|
|
|
|
|
|
|
do-install:
|
2008-02-20 02:10:09 +01:00
|
|
|
cd ${WRKSRC} && ${CABALCMD} install
|
2007-10-29 08:33:00 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/xmonad.1 ${MAN1PREFIX}/man/man1
|
2008-02-20 02:10:09 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh
|
2007-10-29 08:33:00 +01:00
|
|
|
|
2008-02-20 02:10:09 +01:00
|
|
|
.include <bsd.port.mk>
|