freebsd-ports/graphics/mtpaint/Makefile
Niclas Zeising 39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00

80 lines
1.9 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= mtpaint
PORTVERSION= 3.40
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple painting program
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
gif.5:${PORTSDIR}/graphics/giflib \
libfreetype.so:${PORTSDIR}/print/freetype2
OPTIONS_DEFINE= LCMS2 OPENJPEG NLS
OPTIONS_DEFAULT= LCMS2 OPENJPEG
OPENJPEG_DESC= Enable OpenJPEG support
USE_BZIP2= yes
USE_GNOME= gtk20
USES= gmake pkgconfig iconv
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
MAN1= ${PORTNAME}.1
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLCMS2}
LIB_DEPENDS+= lcms2.2:${PORTSDIR}/graphics/lcms2
CONFIGURE_ARGS+=lcms2
.else
CONFIGURE_ARGS+=nolcms
.endif
.if ${PORT_OPTIONS:MOPENJPEG}
LIB_DEPENDS+= openjpeg.2:${PORTSDIR}/graphics/openjpeg
CONFIGURE_ARGS+=jp2
.else
LIB_DEPENDS+= jasper.4:${PORTSDIR}/graphics/jasper
CONFIGURE_ARGS+=jasper
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=intl
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} \
${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \
${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.desktop \
${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.png \
${PREFIX}/share/pixmaps
.if ${PORT_OPTIONS:MNLS}
.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} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
${PREFIX}/share/locale/${lang}/LC_MESSAGES/mtpaint.mo
.endfor
.endif
.include <bsd.port.mk>