1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/graphics/mtpaint/Makefile
Chin-San Huang ac468a60e7 - Update to 3.21
- Use NLS macro
2008-09-07 07:09:31 +00:00

47 lines
1.1 KiB
Makefile

# New ports collection makefile for: mtpaint
# Date created: 3 April 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mtpaint
PORTVERSION= 3.21
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple painting program
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
ungif.5:${PORTSDIR}/graphics/libungif \
jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff \
openjpeg.2:${PORTSDIR}/graphics/openjpeg \
freetype.9:${PORTSDIR}/print/freetype2
USE_BZIP2= yes
USE_GNOME= gtk20
HAS_CONFIGURE= yes
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --prefix=${PREFIX} --mandir=${MAN1PREFIX}/man/man1 \
--locale=${PREFIX}/share/locale gif jpeg tiff slow \
gtk2 intl man
MAN1= ${PORTNAME}.1
MANCOMPRESSED= yes
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-o /dev/null|-o `mktemp -t /tmp`|' ${WRKSRC}/configure
.include <bsd.port.mk>