2013-03-26 13:56:14 +01:00
|
|
|
# Created by: torstenb@FreeBSD.org
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1995-07-17 03:04:44 +02:00
|
|
|
|
2000-04-09 01:24:42 +02:00
|
|
|
PORTNAME= recode
|
2001-09-09 11:17:09 +02:00
|
|
|
PORTVERSION= 3.6
|
2015-05-06 17:16:53 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2016-12-08 20:23:24 +01:00
|
|
|
PORTREVISION= 13
|
1997-04-27 01:55:25 +02:00
|
|
|
CATEGORIES= converters
|
1995-07-17 03:04:44 +02:00
|
|
|
|
2001-09-09 11:17:09 +02:00
|
|
|
MAINTAINER= demon@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Converts files between character sets and usages
|
1995-07-17 03:04:44 +02:00
|
|
|
|
2014-06-04 14:28:53 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= pinard
|
|
|
|
GH_PROJECT= Recode
|
|
|
|
|
2014-02-18 20:34:04 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2014-08-26 05:11:57 +02:00
|
|
|
USES= gettext iconv libtool perl5
|
2014-02-18 20:34:04 +01:00
|
|
|
USE_PERL5= run build
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2002-04-17 09:16:33 +02:00
|
|
|
CONFIGURE_ARGS= --without-included-gettext
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2013-09-25 00:53:40 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
|
1999-12-29 09:13:15 +01:00
|
|
|
|
2003-08-13 09:23:29 +02:00
|
|
|
INFO= recode
|
1995-07-17 03:04:44 +02:00
|
|
|
|
2014-01-09 14:27:26 +01:00
|
|
|
post-extract:
|
2002-04-29 09:08:02 +02:00
|
|
|
@${CP} ${FILESDIR}/ru.po ${WRKSRC}/i18n
|
2016-10-21 14:51:40 +02:00
|
|
|
@${RM} ${WRKSRC}/doc/${PORTNAME}.info*
|
2001-09-09 11:17:09 +02:00
|
|
|
|
2003-08-13 09:23:29 +02:00
|
|
|
post-patch:
|
2014-02-18 20:34:04 +01:00
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
'/Project-Id-Version/ { \
|
2001-09-09 11:17:09 +02:00
|
|
|
s/3\.[45](r|\.[0-9])?/3.6/; \
|
2014-02-18 20:34:04 +01:00
|
|
|
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
|
2001-09-09 11:17:09 +02:00
|
|
|
|
1995-07-17 03:04:44 +02:00
|
|
|
.include <bsd.port.mk>
|