openbsd-ports/devel/cpphs/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

61 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.32 2012/10/28 23:26:01 kili Exp $
COMMENT-main = liberalised reimplementation of cpp in Haskell
COMMENT-lib = cpphs library
ONLY_FOR_ARCHS-lib = i386 amd64
DISTNAME = cpphs-1.13.3
PKGNAME-main = ${DISTNAME}
PKGNAME-lib = hs-${DISTNAME}
REVISION-main = 0
REVISION-lib = 0
CATEGORIES = devel
MAINTAINER = Matthias Kilian <kili@openbsd.org>
# LGPL2.1
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MULTI_PACKAGES = -main -lib
WANTLIB-main = ${WANTLIB} c m pthread
SUBST_VARS += DISTNAME
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
# GHC: use cabal to build both the executable and the library.
WANTLIB-main += util
MODULES = lang/ghc converters/libiconv
USE_GROFF = Yes
MODGHC_BUILD = hackage cabal haddock register
LIB_DEPENDS-main = ${LIB_DEPENDS}
RUN_DEPENDS-main =
LIB_DEPENDS-lib =
WANTLIB-lib =
DIST_SUBDIR =
.else
MASTER_SITES = http://hackage.haskell.org/packages/archive/cpphs/${DISTNAME:S/cpphs-//}/
# NHC: use the good old makefile for now (though it *should* be possible
# to build with cabal, too).
BUILD_DEPENDS += devel/hmake \
lang/nhc98
HC = hmake
HC_OPTS = -nhc98 -package base
do-build:
cd ${WRKSRC} && ${HC} ${HC_OPTS} cpphs
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cpphs ${PREFIX}/bin
.endif
post-install:
${INSTALL_MAN} ${WRKSRC}/docs/cpphs.1 ${PREFIX}/man/man1
do-regress:
cd ${WRKSRC}/tests && /bin/sh ./runtests
.include <bsd.port.mk>