aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/hs-hgl/Makefile
blob: ed059d7bd2341d59a321685d91ced42fc985e029 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# New ports collection makefile for:    hgl
# Date created:     22 January 2002
# Whom:         octaphial
#
# $FreeBSD$
#

PORTNAME=   hgl
PORTVERSION=    2.0.4
PORTREVISION=   2
CATEGORIES= graphics haskell
MASTER_SITES=   http://haskell.org/graphics/downloads/
PKGNAMEPREFIX=  hs-
DISTNAME=   graphics-${PORTVERSION}.src

MAINTAINER= octaphial@yahoo.com
COMMENT=    Graphics library for Hugs98, an implementation of Haskell 98

RUN_DEPENDS=    hugs:${PORTSDIR}/lang/hugs

WRKSRC=     ${WRKDIR}/graphics-${PORTVERSION}
USE_GMAKE=  yes
USE_XLIB=   yes

HGL_LIBS=   ${PREFIX}/lib/hugs/x11
HGL_DOCS=   ${PREFIX}/share/doc/hs-hgl

BUILD_WRKSRC=   ${WRKSRC}/lib/x11
MAKE_ENV=   system=FreeBSD \
        hugs_install=${HGL_LIBS}
ALL_TARGET= all

do-install:
    ${MKDIR} ${HGL_LIBS}
    ${MKDIR} ${HGL_LIBS}/demos
    ${INSTALL_DATA} ${WRKSRC}/lib/x11/*.hs ${HGL_LIBS}
    ${INSTALL_PROGRAM} ${WRKSRC}/lib/x11/*.o ${HGL_LIBS}
    ${INSTALL_PROGRAM} ${WRKSRC}/lib/x11/*.so ${HGL_LIBS}
    ${INSTALL_DATA} ${WRKSRC}/demos/* ${HGL_LIBS}/demos
    ${INSTALL_DATA} ${WRKSRC}/test/* ${HGL_LIBS}/demos

post-install:
    ${MKDIR} ${HGL_DOCS}
    ${INSTALL_DATA} ${WRKSRC}/doc/* ${HGL_DOCS}
    ${INSTALL_DATA} ${WRKSRC}/License ${HGL_DOCS}
    ${INSTALL_DATA} ${WRKSRC}/Readme ${HGL_DOCS}
    ${INSTALL_DATA} ${WRKSRC}/Version ${HGL_DOCS}
    ${INSTALL_DATA} ${WRKSRC}/Version-2.0.4 ${HGL_DOCS}
    @${ECHO} ''
    @${CAT} ${PKGMESSAGE}
    @${ECHO} ''

.include <bsd.port.mk>