openbsd-ports/x11/xmonad/Makefile

52 lines
1.6 KiB
Makefile
Raw Normal View History

2013-03-11 07:35:43 -04:00
# $OpenBSD: Makefile,v 1.40 2013/03/11 11:46:19 espie Exp $
2010-04-22 18:00:45 -04:00
COMMENT-main = tiling window manager
COMMENT-lib = libraries for runtime configuration
DISTNAME = xmonad-0.11
PKGNAME-main = ${DISTNAME}
PKGNAME-lib = ${DISTNAME:S,-,-lib-,}
2010-04-22 18:00:45 -04:00
CATEGORIES = x11
HOMEPAGE = http://www.xmonad.org/
2010-04-22 18:00:45 -04:00
MULTI_PACKAGES = -main -lib
2010-04-22 18:00:45 -04:00
# BSD3
PERMIT_PACKAGE_CDROM = Yes
WANTLIB-main = ${WANTLIB} X11 Xext Xinerama Xrandr c m \
pthread util
2010-11-06 06:18:38 -04:00
WANTLIB-lib =
2010-04-22 18:00:45 -04:00
MODULES = lang/ghc converters/libiconv
MODGHC_BUILD = cabal hackage haddock register nort
BUILD_DEPENDS = ${RUN_DEPENDS-lib}
RUN_DEPENDS-lib = devel/hs-mtl \
devel/hs-syb \
2011-04-11 10:58:20 -04:00
x11/hs-X11>=1.5.0.0
LIB_DEPENDS-main = ${LIB_DEPENDS}
# 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
2013-01-20 12:56:05 -05:00
MODGHC_SETUP_CONF_ARGS += --enable-library-profiling
RUN_DEPENDS-lib += lang/ghc=${MODGHC_VER}
2010-11-22 03:36:47 -05:00
USE_GROFF = Yes
2010-04-22 18:00:45 -04:00
post-install:
@${INSTALL_MAN} ${WRKSRC}/man/xmonad.1 ${PREFIX}/man/man1
@${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/${DISTNAME}
2010-04-22 18:00:45 -04:00
# Needs to be built with different configuration.
2013-03-11 07:35:43 -04:00
NO_TEST = Yes
.include <bsd.port.mk>