1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/converters/recode/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

47 lines
926 B
Makefile

# New ports collection makefile for: recode
# Date created: 14 Jul 1995
# Whom: torstenb@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= recode
PORTVERSION= 3.6
PORTREVISION= 8
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_AUTOTOOLS= libtool
USE_PERL5= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --without-included-gettext
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>