1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/converters/recode/Makefile
Baptiste Daroussin 7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00

42 lines
939 B
Makefile

# Created by: torstenb@FreeBSD.org
# $FreeBSD$
PORTNAME= recode
PORTVERSION= 3.6
DISTVERSIONPREFIX= v
PORTREVISION= 14
CATEGORIES= converters
MAINTAINER= demon@FreeBSD.org
COMMENT= Converts files between character sets and usages
USE_GITHUB= yes
GH_ACCOUNT= pinard
GH_PROJECT= Recode
GNU_CONFIGURE= yes
USES= gettext iconv libtool perl5
USE_PERL5= run build
USE_LDCONFIG= yes
CONFIGURE_ARGS= --without-included-gettext
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
INFO= recode
post-extract:
@${CP} ${FILESDIR}/ru.po ${WRKSRC}/i18n
@${RM} ${WRKSRC}/doc/${PORTNAME}.info*
post-patch:
@${REINPLACE_CMD} -E \
'/Project-Id-Version/ { \
s/3\.[45](r|\.[0-9])?/3.6/; \
s/: (Free )?recode/: GNU recode/; }' \
${WRKSRC}/i18n/*.po
@${REINPLACE_CMD} 's,"iconv\.h","${ICONV_PREFIX}/include/iconv.h",' \
${WRKSRC}/src/libiconv.c
@${CP} ${WRKSRC}/lib/error.c ${WRKSRC}/src
.include <bsd.port.mk>