2001-11-15 11:07:32 +01:00
|
|
|
# New ports collection makefile for: jasper
|
|
|
|
# Date created: 6 November 1994
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= jasper
|
2007-02-08 23:35:00 +01:00
|
|
|
PORTVERSION= 1.900.1
|
2010-02-05 12:46:55 +01:00
|
|
|
PORTREVISION= 9
|
2001-11-15 11:07:32 +01:00
|
|
|
CATEGORIES= graphics
|
2002-09-22 12:36:11 +02:00
|
|
|
MASTER_SITES= http://www.ece.uvic.ca/~mdadams/jasper/software/ \
|
|
|
|
${MASTER_SITE_IMAGEMAGICK}
|
|
|
|
MASTER_SITE_SUBDIR= ImageMagick/delegates
|
2001-11-15 11:07:32 +01:00
|
|
|
|
2009-07-05 11:50:02 +02:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= An implementation of the codec specified in the JPEG-2000 standard
|
2001-11-15 11:07:32 +01:00
|
|
|
|
2007-06-12 17:47:04 +02:00
|
|
|
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg
|
2001-11-15 11:07:32 +01:00
|
|
|
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2001-11-15 11:07:32 +01:00
|
|
|
USE_ZIP= yes
|
2004-04-02 21:04:43 +02:00
|
|
|
USE_GNOME= gnometarget lthack
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-03-24 17:21:59 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2001-11-15 11:07:32 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2004-02-08 14:17:57 +01:00
|
|
|
CONFIGURE_ARGS= --enable-shared --enable-static
|
2006-08-15 01:06:39 +02:00
|
|
|
USE_LDCONFIG= yes
|
2004-02-08 14:17:57 +01:00
|
|
|
|
|
|
|
MASTER_SITE_IMAGEMAGICK= \
|
|
|
|
ftp://ftp.imagemagick.org/pub/%SUBDIR%/ \
|
|
|
|
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/&,}
|
2001-11-15 11:07:32 +01:00
|
|
|
|
2007-07-08 10:02:51 +02:00
|
|
|
OPTIONS= OPENGL "OpenGL support" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-07-09 12:29:29 +02:00
|
|
|
.if defined(WITH_OPENGL)
|
2007-07-08 10:02:51 +02:00
|
|
|
USE_GL= glut
|
|
|
|
CONFIGURE_ARGS+=--enable-opengl
|
|
|
|
PLIST_SUB+= OPENGL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-opengl
|
|
|
|
PLIST_SUB+= OPENGL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-02-08 23:35:00 +01:00
|
|
|
.if !defined(NO_INSTALL_MANPAGES)
|
|
|
|
MAN1= imgcmp.1 imginfo.1 jasper.1 jiv.1
|
|
|
|
.endif
|
|
|
|
|
2001-11-15 11:07:32 +01:00
|
|
|
post-install:
|
2007-02-08 23:35:00 +01:00
|
|
|
.if !defined(NO_INSTALL_MANPAGES)
|
|
|
|
@cd ${WRKSRC}/src/appl && make install-man
|
|
|
|
.endif
|
2001-11-15 11:07:32 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2007-07-08 10:02:51 +02:00
|
|
|
.include <bsd.port.post.mk>
|