1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/converters/recode/Makefile
Matthias Andree b6da34d1dc converters/recode: fix info file, add LICENCE, quiet portlint/portclippy
This has been broken for almost 10 months, and again 3 months of silence
from the maintainer, so let me step in to just fix it for the nonce.

- Add LICENSE=GPLv2+
- Add USES=makeinfo to fix .info file in clean-room builds (poudriere) [1]
- Reshuffle a few lines to please portclippy and portlint
- Bump PORTREVISION to flush out the broken packages and force rebuild

- Add DISABLED example to strip library in order to also please
  stage-qa with DEVELOPER=yes (would require maintainer approval),
  in post-install (just remove @: and the comment line to enable).

PR:		241879 [1]
Submitted by:	Victor Sudakov <vas@sibptus.ru> [1]
Approved by:	portmgr@ (blanket, see MFH below)
MFH:		2020Q3 (blanket LICENSE, dependencies to unbreak, modernization)
2020-09-04 15:58:00 +00:00

50 lines
1.1 KiB
Makefile

# Created by: torstenb@FreeBSD.org
# $FreeBSD$
PORTNAME= recode
PORTVERSION= 3.6
DISTVERSIONPREFIX= v
PORTREVISION= 15
CATEGORIES= converters
MAINTAINER= demon@FreeBSD.org
COMMENT= Converts files between character sets and usages
LICENSE= GPLv2+
USES= gettext iconv libtool makeinfo perl5
USE_GITHUB= yes
GH_ACCOUNT= pinard
GH_PROJECT= Recode
USE_LDCONFIG= yes
USE_PERL5= run build
GNU_CONFIGURE= 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
# to enable, remove this line and the leading @: from the STRIP_CMD line
post-install:
@: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librecode.so.*.*.*
.include <bsd.port.mk>