freebsd-ports/converters/recode/Makefile

42 lines
939 B
Makefile
Raw Normal View History

# Created by: torstenb@FreeBSD.org
1999-08-25 07:28:01 +02:00
# $FreeBSD$
PORTNAME= recode
PORTVERSION= 3.6
DISTVERSIONPREFIX= v
PORTREVISION= 13
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}
2003-08-13 09:23:29 +02:00
INFO= recode
2014-01-09 14:27:26 +01:00
post-extract:
@${CP} ${FILESDIR}/ru.po ${WRKSRC}/i18n
@${RM} ${WRKSRC}/doc/${PORTNAME}.info*
2003-08-13 09:23:29 +02:00
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>