openbsd-ports/x11/xmonad/Makefile
kili 2acb3c8385 Move the @exec and @unexec lines running the {,un}register.sh scripts
and the line with the unregister.sh script down to the bottom of
the plist. Silences all the blurb about ".../*.haddock doesn't exist
or isn't a file."
2012-10-28 23:24:28 +00:00

56 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.37 2012/10/28 23:31:50 kili Exp $
COMMENT-main = tiling window manager
COMMENT-lib = libraries for runtime configuration
DISTNAME = xmonad-0.10
PKGNAME-main = ${DISTNAME}
PKGNAME-lib = ${DISTNAME:S,-,-lib-,}
REVISION-main = 1
REVISION-lib = 2
CATEGORIES = x11
HOMEPAGE = http://www.xmonad.org/
MULTI_PACKAGES = -main -lib
# BSD3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB-main = ${WANTLIB} X11 Xext Xinerama Xrandr c m \
pthread util
WANTLIB-lib =
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 \
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
RUN_DEPENDS-lib += lang/ghc=${MODGHC_VER}
USE_GROFF = Yes
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/hs-${DISTNAME}
# Needs to be built with different configuration.
NO_REGRESS = Yes
.include <bsd.port.mk>