36 | | patchfiles patch-lib_tarfn.c \ |
37 | | patch-main_remove.c \ |
38 | | patch-main_archives.c \ |
39 | | patch-scripts-Makefile \ |
40 | | patch-lib_dpkg.h \ |
41 | | ncurses.diff |
42 | | |
43 | | configure.env PERL=${prefix}/bin/perl5 |
44 | | configure.args --without-sgml-doc --with-libintl-prefix=${prefix} \ |
45 | | --with-libiconv-prefix=${prefix} --with-admindir=${prefix}/var/db/dpkg \ |
| 58 | configure.perl ${prefix}/bin/perl5 |
| 59 | configure.pkg_config ${prefix}/bin/pkg-config |
| 60 | configure.env-append TAR=${prefix}/bin/gnutar |
| 61 | configure.args-append \ |
| 62 | --with-libintl-prefix=${prefix} \ |
| 63 | --with-libiconv-prefix=${prefix} \ |
| 64 | --with-admindir=${prefix}/var/db/${name} \ |
| 65 | --with-logdir=${prefix}/var/log \ |
47 | | --with-zlib --with-bz2 \ |
48 | | --disable-linker-optimisations |
| 67 | --with-zlib \ |
| 68 | --with-bz2 \ |
| 69 | --with-liblzma \ |
| 70 | --disable-linker-optimisations \ |
| 71 | --disable-silent-rules \ |
| 72 | --disable-start-stop-daemon |
| 73 | # The start-stop-daemon patch now applies again, but now it leads to build |
| 74 | # errors, so disabling it with a configure flag again (as done above) |
| 75 | |
| 76 | # ccache is trouble |
| 77 | configure.ccache no |
| 78 | |
| 79 | # Older versions of gcc choke with the -Wvla warning flag |
| 80 | configure.cflags-delete -Wvla |
| 81 | configure.cppflags-delete -Wvla |
| 82 | configure.ldflags-delete -Wvla |
| 83 | |
| 84 | post-configure { |
| 85 | reinplace "s|-Wvla||" ${worksrcpath}/Makefile |
| 86 | eval reinplace "s|-Wvla||" [glob ${worksrcpath}/*/Makefile] |
| 87 | eval reinplace "s|-Wvla||" [glob ${worksrcpath}/lib/*/Makefile] |
| 88 | reinplace "s|-Wvla||" ${worksrcpath}/lib/dpkg/test/Makefile |
| 89 | reinplace "s|-Wmissing-declarations||" ${worksrcpath}/dselect/Makefile |
| 90 | } |
| 91 | |
| 92 | compiler.blacklist-append cc gcc-3.3 gcc-4.0 apple-gcc-4.0 |
52 | | set vardpkg ${destroot}${prefix}/var/db/dpkg |
53 | | destroot.keepdirs ${vardpkg} ${vardpkg}/updates ${vardpkg}/info |
| 96 | set vardpkg ${destroot}${prefix}/var/db/${name} |
| 97 | destroot.keepdirs-append \ |
| 98 | ${vardpkg} \ |
| 99 | ${vardpkg}/updates \ |
| 100 | ${vardpkg}/info \ |
| 101 | ${destroot}${prefix}/var/log \ |
| 102 | ${destroot}${prefix}/etc/${name} |
| 103 | |
| 104 | patchfiles-append patch-configure.ac.diff \ |
| 105 | patch-lib_dpkg_dpkg.h.diff \ |
| 106 | patch-lib_dpkg_tarfn.c.diff \ |
| 107 | patch-src_remove.c.diff \ |
| 108 | patch-src_archives.c.diff \ |
| 109 | patch-utils_start-stop-daemon.c.diff |
| 110 | |
| 111 | patch.args-append --backup |
57 | | reinplace s|/etc/dpkg/|${prefix}/etc/dpkg/| \ |
58 | | ${scripts}/dpkg-shlibdeps.pl \ |
59 | | ${scripts}/dpkg-source.pl |
60 | | |
61 | | reinplace s|/etc/alternatives|${prefix}/etc/alternatives|g \ |
62 | | ${scripts}/update-alternatives.pl |
| 115 | reinplace "s|/etc/${name}/|${prefix}/etc/${name}/|" \ |
| 116 | ${scripts}/${name}-shlibdeps.pl \ |
| 117 | ${scripts}/${name}-source.pl |
| 118 | reinplace "s|AC_ERROR|AC_MSG_ERROR|" ${worksrcpath}/m4/dpkg-build.m4 |
| 119 | file copy ${prefix}/share/aclocal/ax_check_gnu_make.m4 ${worksrcpath}/m4 |
| 120 | file copy ${prefix}/share/aclocal/xorg-macros.m4 ${worksrcpath}/m4 |
| 121 | system -W ${worksrcpath} "git init" |
86 | | livecheck.type regex |
87 | | livecheck.url http://ftp.debian.org/debian/pool/main/d/dpkg/ |
| 148 | # This variant sometimes hangs while building... |
| 149 | variant docs description {Build documentation (warning: building documentation takes a long time)} { |
| 150 | depends_build-append port:doxygen \ |
| 151 | path:bin/dot:graphviz \ |
| 152 | port:fontconfig \ |
| 153 | port:freefont-ttf |
| 154 | set docdir ${prefix}/share/doc/${name} |
| 155 | configure.args-append --docdir=${docdir} \ |
| 156 | --htmldir=${docdir}/html \ |
| 157 | --dvidir=${docdir}/dvi \ |
| 158 | --pdfdir=${docdir}/pdf \ |
| 159 | --psdir=${docdir}/ps |
| 160 | build.target-append doc |
| 161 | pre-build { |
| 162 | elevateToRoot "doxygen" |
| 163 | system -W ${worksrcpath}/doc "${prefix}/bin/doxygen -u" |
| 164 | } |
| 165 | post-build { |
| 166 | system -W ${worksrcpath}/doc "${prefix}/bin/doxygen" |
| 167 | dropPrivileges |
| 168 | set destroot_docdir ${destroot}${prefix}/share/doc/${name} |
| 169 | xinstall -d ${destroot_docdir} |
| 170 | copy ${worksrcpath}/doc/doc ${destroot_docdir} |
| 171 | copy ${worksrcpath}/doc/html ${destroot_docdir} |
| 172 | foreach docfile {coding-style.txt triggers.txt README.feature-removal-schedule frontend.txt README.api} { |
| 173 | xinstall -m 644 ${worksrcpath}/doc/${docfile} ${destroot_docdir} |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | # Tests currently fail, this needs to be fixed eventually: |
| 179 | test.run yes |
| 180 | test.target check |
| 181 | |
| 182 | pre-test { |
| 183 | elevateToRoot "test" |
| 184 | } |
| 185 | post-test { |
| 186 | dropPrivileges |
| 187 | } |
| 188 | |
| 189 | # odd-numbered releases are unstable, so ignore them |
| 190 | livecheck.type none |
| 191 | livecheck.url http://ftp.debian.org/debian/pool/main/d/${name}/ |