2011-09-16 08:29:12 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.30 2011/09/16 12:29:18 espie Exp $
|
2007-09-01 18:18:41 -04:00
|
|
|
|
2010-04-22 18:00:45 -04:00
|
|
|
COMMENT-main = tiling window manager
|
|
|
|
COMMENT-lib = libraries for runtime configuration
|
2007-09-01 18:18:41 -04:00
|
|
|
|
2011-04-04 18:40:55 -04:00
|
|
|
DISTNAME = xmonad-0.9.2
|
2010-07-17 09:49:21 -04:00
|
|
|
PKGNAME-main = ${DISTNAME}
|
2011-08-21 13:32:28 -04:00
|
|
|
REVISION-main = 3
|
2010-07-17 09:49:21 -04:00
|
|
|
PKGNAME-lib = ${DISTNAME:S,-,-lib-,}
|
2011-09-16 08:29:12 -04:00
|
|
|
REVISION-lib = 4
|
2010-04-22 18:00:45 -04:00
|
|
|
CATEGORIES = x11
|
|
|
|
HOMEPAGE = http://www.xmonad.org/
|
2007-09-01 18:18:41 -04:00
|
|
|
|
2010-04-22 18:00:45 -04:00
|
|
|
MULTI_PACKAGES = -main -lib
|
2008-01-18 16:51:13 -05:00
|
|
|
|
2010-04-22 18:00:45 -04:00
|
|
|
# BSD3
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2007-09-01 18:18:41 -04:00
|
|
|
|
2010-11-06 06:18:38 -04:00
|
|
|
WANTLIB-main = ${WANTLIB} X11 Xext Xinerama c gmp m pthread util
|
|
|
|
WANTLIB-lib =
|
2007-09-01 18:18:41 -04:00
|
|
|
|
2010-04-22 18:00:45 -04:00
|
|
|
MODULES = lang/ghc converters/libiconv
|
2011-04-04 18:40:55 -04:00
|
|
|
# No documentation for now (haddock thinks that module `xmonad-0.9.2:Main'
|
|
|
|
# is defined in multiple files).
|
2011-06-30 17:41:06 -04:00
|
|
|
MODGHC_BUILD = cabal hackage register nort
|
2008-01-18 16:51:13 -05:00
|
|
|
|
2010-12-04 06:53:57 -05:00
|
|
|
BUILD_DEPENDS = ${RUN_DEPENDS-lib}
|
2011-04-23 10:32:50 -04:00
|
|
|
RUN_DEPENDS-lib = devel/hs-mtl \
|
|
|
|
devel/hs-syb \
|
2011-04-11 10:58:20 -04:00
|
|
|
x11/hs-X11>=1.5.0.0
|
2010-06-15 13:59:24 -04:00
|
|
|
LIB_DEPENDS-main = ${LIB_DEPENDS} \
|
2010-11-22 03:36:47 -05:00
|
|
|
devel/gmp
|
2007-09-01 18:18:41 -04:00
|
|
|
|
2011-06-30 17:41:06 -04:00
|
|
|
# Instead of adding `nort' to MODGHC_BUILD for -main, explicitely set
|
|
|
|
# MODGHC_SETUP_CONF_ARGS and add lang/ghc to RUN_DEPENDS-lib.
|
|
|
|
# Otherwise, we may end up in xmonad configured with `nort', which
|
|
|
|
# causes xmonad-lib to be installed in the wrong place.
|
|
|
|
MODGHC_SETUP_CONF_ARGS += --docdir=\$$datadir/doc/hs-\$$pkgid
|
|
|
|
MODGHC_SETUP_CONF_ARGS += --libsubdir=ghc/\$$pkgid
|
|
|
|
RUN_DEPENDS-lib += lang/ghc=${MODGHC_VER}
|
|
|
|
|
2010-11-22 03:36:47 -05:00
|
|
|
USE_GROFF = Yes
|
2007-09-01 18:18:41 -04:00
|
|
|
|
2010-04-22 18:00:45 -04:00
|
|
|
post-install:
|
2007-09-01 18:18:41 -04:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/xmonad.1 ${PREFIX}/man/man1
|
2010-10-28 09:55:21 -04:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/CONFIG ${PREFIX}/share/doc/hs-${DISTNAME}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/man/xmonad.hs ${PREFIX}/share/doc/hs-${DISTNAME}/xmonad.hs
|
|
|
|
@# Don't know why, but it installs the xmonad.hs into that directory:
|
|
|
|
@rm -rf ${PREFIX}/share/hs-${DISTNAME}
|
2008-01-18 16:51:13 -05:00
|
|
|
|
2010-04-22 18:00:45 -04:00
|
|
|
# Needs to be built with different configuration.
|
|
|
|
NO_REGRESS = Yes
|
2007-09-01 18:18:41 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|