freebsd-ports/textproc/meld/Makefile
Pawel Pekala e482e392f6 Convert my ports to current standards
- Switch USE_GMAKE to USES=gmake
- Define supported options so users can see them in config dialogs
- Use OPTIONS_SUB for plist alteration
- Convert to options macros for better readability
- Use PORTDOCS where it makes sense
2013-07-10 19:41:30 +00:00

47 lines
1 KiB
Makefile

# Created by: Pav Lucistnik <pav@oook.cz>
# $FreeBSD$
PORTNAME= meld
PORTVERSION= 1.7.3
CATEGORIES= textproc devel python
MASTER_SITES= GNOME
MAINTAINER= pawel@FreeBSD.org
COMMENT= GNOME 2 visual diff and merge tool
LICENSE= GPLv2
USE_XZ= yes
USE_GNOME= pygnome2
USES= gmake desktop-file-utils
USE_PYTHON= -2.7
MAKE_ARGS= prefix=${PREFIX}
INSTALLS_ICONS= yes
INSTALLS_OMF= yes
OPTIONS_DEFINE= NLS PYGNOMEDESKTOP
OPTIONS_SUB= yes
PYGNOMEDESKTOP_DESC= Code syntax highlighting (many dependencies)
NLS_USES= gettext
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} '/docdir_/d' ${WRKSRC}/Makefile
.if !${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} '/po install/d' ${WRKSRC}/Makefile
.endif
.for file in help/C/Makefile help/es/Makefile help/fr/Makefile
@${REINPLACE_CMD} -e \
's|$$(localstatedir)/lib/scrollkeeper|/var/db/scrollkeeper|g ; \
s|^LANG :=|LANG_ :=|g ; \
s|$$(LANG)|$$(LANG_)|g' ${WRKSRC}/${file}
.endfor
.if ${PORT_OPTIONS:MPYGNOMEDESKTOP}
USE_GNOME+= pygnomedesktop
.endif
.include <bsd.port.mk>