source: trunk/dports/sysutils/rpm/Portfile @ 26412

Last change on this file since 26412 was 26412, checked in by afb@…, 13 years ago

missed older Perl module patch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 26412 2007-06-22 00:32:47Z afb@macports.org $
2
3PortSystem 1.0
4
5name                    rpm
6version                 4.4.9
7platforms               darwin
8categories              sysutils archivers
9maintainers             n3npq@mac.com
10description             The RPM package management system.
11long_description        The RPM Package Manager (RPM) is a powerful command line driven \
12                        package management system capable of installing, uninstalling, \
13                        verifying, querying, and updating software packages. Each software \
14                        package consists of an archive of files along with information about \
15                        the package like its version, a description, etc.
16
17homepage                http://rpm5.org
18master_sites            ${homepage}/files/${name}/${name}-4.4
19checksums               md5 210b768006e7d88dd8a3bcd498ea27f6
20
21depends_build           port:expat port:neon \
22                        port:python24 port:popt \
23                        port:readline port:beecrypt \
24                        port:libiconv port:gettext
25
26depends_lib             lib:libhistory.5:readline port:gettext \
27                        lib:libsqlite3.0:sqlite3
28
29depends_run             port:gzip \
30                        port:openssl \
31                        port:bzip2 \
32                        port:perl5.8
33
34build.type              gnu
35
36configure.args          --disable-nls --without-javaglue --without-included-gettext \
37                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
38                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
39                        --with-python=2.4 --sysconfdir=${prefix}/etc/rpm
40                        # needed because it checks for sqlite3_open in sqlite lib...
41configure.env           ac_cv_lib_sqlite_sqlite3_open=yes
42
43patchfiles              patch-macros.in \
44                        patch-configure \
45                        patch-Makefile.PL \
46                        patch-rpmevr.h \
47                        patch-parseBuildInstallClean.c
48
49post-patch {
50        # use external popt library
51        delete ${worksrcpath}/popt
52}
53
54post-destroot {
55        # MacPorts specific changes
56        reinplace "s;%{_usrsrc}/rpm;%{_usrsrc}/macports;" ${destroot}${prefix}/lib/rpm/macros
57
58        xinstall -d -m 755 ${prefix}/etc/rpm
59                     
60        delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
61
62        # where the RPM database lives
63        destroot.keepdirs ${destroot}${prefix}/etc/rpm\
64                          ${destroot}${prefix}/var/lib/rpm\
65                          ${destroot}${prefix}/src/macports/BUILD\
66                          ${destroot}${prefix}/src/macports/RPMS\
67                          ${destroot}${prefix}/src/macports/SOURCES\
68                          ${destroot}${prefix}/src/macports/SPECS\
69                          ${destroot}${prefix}/src/macports/SRPMS
70}
71
72platform darwin {
73        pre-configure {
74                      xinstall -d -m 755 ${workpath}/librt
75                      ln -sf /usr/lib/libSystem.B.dylib ${workpath}/librt/librt.dylib
76        }
77
78        configure.args-append --disable-optimized --disable-aio \
79                              --with-lua --with-glob --enable-broken-chown \
80                              --disable-rpath
81
82        configure.cppflags-append -I${prefix}/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
83        configure.ldflags-append -L${workpath}/librt
84
85        post-destroot {
86                # MacOSX specific changes
87                reinplace "s;\blibtoolize\b;glibtoolize;" ${destroot}${prefix}/lib/rpm/macros
88        }
89}
90
91
92variant docs {
93        depends_run-append bin:doxygen:doxygen 
94        configure.args-append --with-apidocs
95}
Note: See TracBrowser for help on using the repository browser.