The binding is a direct translation of the C binding; for documentation of these calls, refer to The Xlib Programming Manual, available online at http://tronche.com/gui/x/xlib/
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2007/05/18 12:28:30 emil_s Exp $
|
|
#
|
|
|
|
DISTNAME= X11-${VERSION}
|
|
PKGNAME= hs-x11-${VERSION}
|
|
CATEGORIES= x11
|
|
MASTER_SITES= http://hackage.haskell.org/packages/archive/X11/
|
|
|
|
MAINTAINER= emil@math.su.se
|
|
HOMEPAGE= http://hackage.haskell.org/packages/archive/X11/
|
|
COMMENT= Haskell binding to the X11 graphics library
|
|
|
|
#GNU_CONFIGURE= yes
|
|
|
|
GHCVERSION_cmd= ${PREFIX}/bin/ghc -V | ${CUT} -d ' ' -f 8
|
|
GHCVERSION= ${GHCVERSION_cmd:sh}
|
|
FILES_SUBST+= PREFIX=${PREFIX:Q}
|
|
FILES_SUBST+= GHCVERSION=${GHCVERSION:Q}
|
|
FILES_SUBST+= PKGVERSION=${PKGVERSION:Q}
|
|
PLIST_SUBST+= GHCVERSION=${GHCVERSION:Q}
|
|
|
|
CHECK_FILES_SKIP+= lib/ghc-${GHCVERSION}/package.conf.old
|
|
|
|
VERSION= 1.2
|
|
|
|
do-configure:
|
|
cd ${WRKSRC:Q} && \
|
|
runhaskell -cpp Setup.hs configure \
|
|
--ghc \
|
|
--prefix=${PREFIX:Q} \
|
|
--with-compiler=${PREFIX:Q}/bin/ghc \
|
|
--with-hc-pkg=${PREFIX:Q}/bin/ghc-pkg
|
|
|
|
do-build:
|
|
cd ${WRKSRC:Q} && runhaskell -cpp Setup.hs build
|
|
|
|
do-install:
|
|
cd ${WRKSRC:Q} && runhaskell -cpp Setup.hs copy
|
|
|
|
|
|
|
|
.include "../../lang/ghc/buildlink3.mk"
|
|
.include "../../mk/x11.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|