freebsd-ports/converters/recode/Makefile
Kirill Ponomarev b1786da93a - Fix build on AMD64
Approved by:	maintainer informed
2004-02-08 22:51:27 +00:00

46 lines
941 B
Makefile

# New ports collection makefile for: recode
# Date created: 14 Jul 1995
# Whom: torstenb@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= recode
PORTVERSION= 3.6
PORTREVISION= 4
CATEGORIES= converters
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= recode
MAINTAINER= demon@FreeBSD.org
COMMENT= Converts files between character sets and usages
USE_GETTEXT= yes
USE_LIBTOOL= yes
USE_PERL5= yes
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --without-included-gettext
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CFLAGS+= -fPIC
MAN1= recode.1
INFO= recode
post-extract: copy-po-files remove-info-files
copy-po-files:
@${CP} ${FILESDIR}/ru.po ${WRKSRC}/i18n
remove-info-files:
@${RM} -f ${WRKSRC}/doc/${PORTNAME}.info*
post-patch:
@${PERL} -pi -e '\
if (/Project-Id-Version/) { \
s/3\.[45](r|\.[0-9])?/3.6/; \
s/: (Free )?recode/: GNU recode/; \
} \
' ${WRKSRC}/i18n/*.po
.include <bsd.port.mk>