freebsd-ports/misc/gimp-help-en/Makefile
Max Brazhnikov a6383cf6b5 - Update gimp-help ports to 2.8.1. Polish translation has been removed, new
translations have been added (ca, da, el, en_GB, sl, pt_BR)
- Add stage support
- Update maintainer address

PR:		based on ports/179681
Submitted by:	RyoTa SimaMoto (maintainer)
2014-02-01 12:49:26 +00:00

51 lines
1.4 KiB
Makefile

# Created by: SimaMoto,RyoTa <liangtai.s4@gmail.com>
# $FreeBSD$
PORTNAME= gimp-help
PORTVERSION= 2.8.1
CATEGORIES?= misc graphics
MASTER_SITES= ftp://ftp.gimp.org/pub/%SUBDIR%/ \
http://gimp.mirrors.hoobly.com/%SUBDIR%/ \
http://ftp.gwdg.de/pub/misc/grafik/gimp/%SUBDIR%/ \
http://www.mirrorservice.org/sites/ftp.gimp.org/pub/%SUBDIR%/ \
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/%SUBDIR%,}
MASTER_SITE_SUBDIR= gimp/help
PKGNAMEPREFIX?= ${DOCLANG}-
PKGNAMESUFFIX= -html
MAINTAINER= liangtai.s16@gmail.com
COMMENT?= GIMP User Manual in English
LICENSE= GFDL
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2 \
${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl
USES= gettext:build gmake perl5 pkgconfig shebangfix
USE_BZIP2= yes
USE_GNOME= libxslt:build
USE_PERL5= build
USE_PYTHON= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-gimp
CONFIGURE_ENV= ALL_LINGUAS=${DOCLANG}
DOCLANG?= en
PORTDATA= *
DATADIR= ${PREFIX}/share/gimp
SHEBANG_FILES= tools/xml2po.py
python_OLD_CMD= /usr/bin/env python
python_CMD= ${PYTHON_CMD}
post-patch:
# Install to the same directory as when configuring --with-gimp
${REINPLACE_CMD} '/gimpdatadir=.*\/2.0/s,/2\.0,,' \
${WRKSRC}/configure
.if ${DOCLANG:Mru}
${REINPLACE_CMD} -e '/glossary\.xml:1596/{; n; n; s/xref/link/g; }' \
${WRKSRC}/po/ru/glossary.po
.endif
.include <bsd.port.mk>