source: trunk/dports/textproc/recode-devel/Portfile

Last change on this file was 153042, checked in by ryandesign@…, 10 months ago

recode, recode-devel: fix build failure

Recent clang fails to build recode:

error: width of bit-field 'ignore' (2 bits) exceeds width of its type (1 bit)

Fixed using Debian's patch.

Resolves #52312

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 153042 2016-09-22 17:22:17Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           github 1.0
5
6github.setup        pinard Recode 3.7-beta2 v
7name                recode-devel
8conflicts           recode
9categories          textproc
10maintainers         nomaintainer
11platforms           darwin
12description         charset conversion program
13
14long_description \
15        This recode program has the purpose of converting files between \
16        various character sets and usages. When exact transliterations \
17        are not possible, as it is often the case, the program may get \
18        rid of the offending characters or fall back on approximations.
19
20homepage            http://recode.progiciels-bpi.ca/
21distname            recode-${version}
22dist_subdir         recode
23
24checksums           rmd160  9d6c8d9eaf5262d5b35e7bef3fbaba223cd4f871 \
25                    sha256  ba3eec3e6a223b84c7f0d3e177ef62d12c65e90323e8691b45a41e350017e528
26
27depends_lib         port:libtool port:gettext port:libiconv
28
29# src/libiconv.c patch from Debian,
30# http://packages.debian.org/stable/text/recode
31# patchfiles          patch-lib_Makefile.in.diff patch-src_libiconv.c.diff
32patchfiles          patch-src-recodext.h.diff
33
34pre-configure {
35    xinstall -m 644 -W ${prefix}/share/libtool/build-aux config.guess config.sub ${worksrcpath}
36}
37
38configure.ldflags-append \
39                    -lintl -liconv
40
41configure.args      --infodir=${prefix}/share/info \
42                    --mandir=${prefix}/share/man \
43                    --with-libiconv-prefix=${prefix} \
44                    --with-libintl-prefix=${prefix}
45
46post-destroot {
47    set docdir ${prefix}/share/doc/${name}-${version}
48    xinstall -d ${destroot}${docdir}
49    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README THANKS \
50        TODO ${destroot}${docdir}
51}
52
53test.run        yes
54test.target     check
Note: See TracBrowser for help on using the repository browser.