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

Last change on this file since 26286 was 26286, checked in by jmpp@…, 12 years ago

We only need cppflags.. and prefixed, by the way.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 26286 2007-06-18 13:05:26Z jmpp@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        \
12        The RPM Package Manager (RPM) is a powerful command line driven \
13        package management system capable of installing, uninstalling, \
14        verifying, querying, and updating software packages. Each software \
15        package consists of an archive of files along with information about \
16        the package like its version, a description, etc.
17
18homepage                http://rpm5.org
19master_sites            ${homepage}/files/${name}/${name}-4.4
20checksums               md5 210b768006e7d88dd8a3bcd498ea27f6
21
22depends_build           port:expat port:neon \
23                        port:python24 port:popt \
24                        port:readline port:beecrypt \
25                        port:libiconv port:gettext
26
27depends_lib             lib:libhistory.5:readline port:gettext \
28                        lib:libsqlite3.0:sqlite3
29
30depends_run             port:gzip \
31                        port:openssl \
32                        port:bzip2 \
33                        port:perl5.8
34
35                        ###zlib should be replaced with the internal rpm version:
36                        #lib:libz:zlib
37                        ###"expat" is for libneon, and "readline" is for rpm lua
38                       
39build.type      gnu
40
41configure.args          --disable-nls --without-javaglue --without-included-gettext \
42                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
43                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
44                        --with-python=2.4
45
46configure.cflags-append           __PYTHON="${prefix}/bin/python"
47
48
49platform darwin {
50        patchfiles-append \
51                patch-macros.in \
52                patch-popt-Makefile.in
53
54        post-patch {
55                delete ${worksrcpath}/beecrypt
56                delete ${worksrcpath}/elfutils
57                delete ${worksrcpath}/neon
58                delete ${worksrcpath}/sqlite
59        }
60
61#       use_autoconf    yes
62#       use_automake    yes
63
64        pre-configure {
65                      xinstall -d -m 755 ${workpath}/librt
66                      ln -sf /usr/lib/libSystem.B.dylib \
67                                ${workpath}/librt/librt.dylib
68
69#                     system "touch ${worksrcpath}/aclocal.m4"
70#                     system "touch ${worksrcpath}/config.h.in"
71
72        }
73
74        configure.args-append --disable-optimized --disable-aio \
75                              --with-lua --with-glob --enable-broken-chown \
76                              --disable-rpath
77
78        configure.cppflags-append -I${prefix}/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
79        configure.ldflags-append -L${workpath}/librt
80
81#       post-configure {
82#                      system "find ${worksrcpath} -name Makefile.in | xargs touch"
83#                      system "find ${worksrcpath} -name Makefile | xargs touch"
84#       }
85
86        post-destroot {
87                # Delete overlapping files.
88                delete ${destroot}${prefix}/include/popt.h
89                delete ${destroot}${prefix}/share/man/man3/popt.3*
90                delete ${destroot}${prefix}/lib/libpopt.*
91                delete ${destroot}/System
92                delete ${destroot}/Library
93                delete ${destroot}/usr/local/man/man3/RPM.3pm
94
95                # MacOSX specific changes
96                reinplace "s;%{_usrsrc}/redhat;%{_usrsrc}/apple;" ${destroot}${prefix}/lib/rpm/macros
97
98                # where the RPM database lives
99                destroot.keepdirs ${destroot}${prefix}/var/lib/rpm\
100                                  ${destroot}${prefix}/src/apple/BUILD\
101                                  ${destroot}${prefix}/src/apple/RPMS\
102                                  ${destroot}${prefix}/src/apple/SOURCES\
103                                  ${destroot}${prefix}/src/apple/SPECS\
104                                  ${destroot}${prefix}/src/apple/SRPMS
105        }
106}
107
108variant docs {
109        depends_run-append bin:doxygen:doxygen 
110        configure.args-append --with-apidocs
111}
Note: See TracBrowser for help on using the repository browser.