1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/graphics/mtpaint/Makefile
Koop Mast 097c01dd0a Update openjpeg to 2.1.0.
Version 2.x is incompatible with openjpeg 1.5. Preserve it as openjpeg15
and update users.

Approved by:	portmgr (implicit) for NO_STAGE ports
2014-05-26 14:42:44 +00:00

71 lines
1.9 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= mtpaint
PORTVERSION= 3.40
PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple painting program
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
libpng15.so:${PORTSDIR}/graphics/png \
libtiff.so:${PORTSDIR}/graphics/tiff \
libgif.so:${PORTSDIR}/graphics/giflib \
libfreetype.so:${PORTSDIR}/print/freetype2
USE_GNOME= gtk20
USES= desktop-file-utils gmake iconv pkgconfig tar:bzip2
HAS_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
CONFIGURE_ARGS= --prefix=${PREFIX} --mandir=${MAN1PREFIX}/man/man1 \
--localedir=${PREFIX}/share/locale \
gtk2 cflags asneeded ft jpeg tiff man GIF
OPTIONS_DEFINE= LCMS2 OPENJPEG NLS
OPTIONS_DEFAULT= LCMS2 OPENJPEG
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLCMS2}
LIB_DEPENDS+= liblcms2.so:${PORTSDIR}/graphics/lcms2
CONFIGURE_ARGS+=lcms2
.else
CONFIGURE_ARGS+=nolcms
.endif
.if ${PORT_OPTIONS:MOPENJPEG}
LIB_DEPENDS+= libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15
CONFIGURE_ARGS+=jp2
.else
LIB_DEPENDS+= libjasper.so:${PORTSDIR}/graphics/jasper
CONFIGURE_ARGS+=jasper
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=intl
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \
${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.desktop \
${STAGEDIR}${DESKTOPDIR}
${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps
.for lang in cs de es fr gl hu it ja nl pl pt pt_BR ru sk sv tl tr zh_CN zh_TW
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/mtpaint.mo
.endfor
.include <bsd.port.mk>