aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/jasper/Makefile
blob: b5d6c6eb09392f0dedaedcdea2ea8d5e189b8479 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
# New ports collection makefile for:    jasper
# Date created:             6 November 1994
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   jasper
PORTVERSION=    1.900.1
PORTREVISION=   9
CATEGORIES= graphics
MASTER_SITES=   http://www.ece.uvic.ca/~mdadams/jasper/software/ \
        ${MASTER_SITE_IMAGEMAGICK}
MASTER_SITE_SUBDIR= ImageMagick/delegates

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    An implementation of the codec specified in the JPEG-2000 standard

LIB_DEPENDS=    jpeg:${PORTSDIR}/graphics/jpeg

LICENSE=    MIT

USE_AUTOTOOLS=  libtool
USE_ZIP=    yes
USE_GNOME=  lthack
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --enable-shared --enable-static
USE_LDCONFIG=   yes

MASTER_SITE_IMAGEMAGICK=    \
    ftp://ftp.imagemagick.org/pub/%SUBDIR%/ \
    ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/&,}

OPTIONS=    OPENGL  "OpenGL support" off \
        UUID    "UUID support (required by GDAL)" off

.include <bsd.port.pre.mk>

.if defined(WITH_OPENGL)
USE_GL= glut
CONFIGURE_ARGS+=--enable-opengl
PLIST_SUB+= OPENGL=""
.else
CONFIGURE_ARGS+=--disable-opengl
PLIST_SUB+= OPENGL="@comment "
.endif

.if defined(WITH_UUID)
EXTRA_PATCHES+= ${FILESDIR}/uuid.patch
.endif

.if !defined(NO_INSTALL_MANPAGES)
MAN1=       imgcmp.1 imginfo.1 jasper.1 jiv.1
.endif

post-install:
.if !defined(NO_INSTALL_MANPAGES)
    @cd ${WRKSRC}/src/appl && make install-man
.endif
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif

.include <bsd.port.post.mk>