ports/textproc/diffutils/Makefile
Baptiste Daroussin e7b0f97788 Fix a long standing bug of lib/charset.alias being overwritten, modified, and badly tracked by ports.
Make lib/charset.alias a file only provided by converters/libiconv
Create a new USES: charsetfix, that will modify in post patch the Makefile.in to prevent a port from modifying/overwritting the charset.alias file during make install.
Prevent devel/gettext from installing that files.
Fix a couple of ports that actually touch charset.alias during the build phase.

Based on a patch by ale (http://lists.freebsd.org/pipermail/freebsd-gnome/2012-October/027747.html)

Approved by:	kwm (gnome)
Exp-run by:	miwi
2013-03-18 11:40:04 +00:00

32 lines
629 B
Makefile

# Created by: Garrett Rooney <rooneg@electricjellyfish.net>
# $FreeBSD$
PORTNAME= diffutils
PORTVERSION= 3.2
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= diffutils
MAINTAINER= johans@FreeBSD.org
COMMENT= The GNU diff utilities
LIB_DEPENDS= sigsegv:${PORTSDIR}/devel/libsigsegv
USES= charsetfix
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-prefix=g
INFO= diffutils
MAN1= gcmp.1 gdiff.1 gdiff3.1 gsdiff.1
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.include <bsd.port.mk>