aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ocaml-images/Makefile
blob: 3760f66e75a3a4be7d2a6c8075162e58c9c31996 (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
54
55
# ex:ts=8
# Ports collection makefile for:    ocaml-images
# Date created:         Feb 7, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   images
PORTVERSION=    2.11
PORTREVISION=   0
CATEGORIES= graphics
MASTER_SITES=   ftp://ftp.inria.fr/INRIA/caml-light/bazar-ocaml/
PKGNAMEPREFIX=  ocaml-
DISTNAME=   camlimages-${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Objective Caml image processing library

USE_GHOSTSCRIPT=    yes

BUILD_DEPENDS=  ocamlc:${PORTSDIR}/lang/ocaml \
        lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk
RUN_DEPENDS=    ocamlc:${PORTSDIR}/lang/ocaml \
        lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk
LIB_DEPENDS=    ungif.5:${PORTSDIR}/graphics/libungif \
        png.5:${PORTSDIR}/graphics/png \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        tiff.4:${PORTSDIR}/graphics/tiff

USE_XPM=    yes
USE_FREETYPE=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  \
    CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
    LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
USE_GMAKE=  yes

PKGDEINSTALL=   ${PKGINSTALL}

pre-everything::
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
    @${ECHO_MSG} ""
    @${ECHO_MSG} "      Define WITH_GHOSTSCRIPT_AFPL=yes to use"
    @${ECHO_MSG} "      AFPL Postscript interpreter instead of GNU one"
    @${ECHO_MSG} ""
.endif

post-install:
    @${FIND} ${PREFIX}/lib/ocaml/camlimages -type f | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${ECHO_CMD} "@dirrm lib/ocaml/camlimages" >> ${TMPPLIST}

.include <bsd.port.mk>