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

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

Upgrade to rpm-4.4.7.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# $Id: Portfile 26260 2007-06-17 20:49:33Z n3npq@mac.com $
2
3PortSystem 1.0
4name                    rpm
5version                 4.4.7
6platforms               darwin
7categories              sysutils archivers
8maintainers             n3npq@mac.com
9description             The RPM package management system.
10long_description        \
11        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            http://rpm5.org/files/rpm/rpm-4.4/
19distfiles               rpm-${version}.tar.gz
20checksums               md5 d012c81b5169f7377ea4a36607e1445e
21
22depends_lib             lib:libhistory.5:readline port:gettext \
23                        lib:libsqlite3.0:sqlite3
24
25depends_build           port:expat port:neon \
26                        port:python25 port:popt \
27                        port:readline port:beecrypt \
28                        port:libiconv port:gettext
29depends_run             port:gzip \
30                        port:openssl \
31                        port:bzip2 \
32                        port:perl5.8
33
34                        ###zlib should be replaced with the internal rpm version:
35                        #lib:libz:zlib
36                        ###"expat" is for libneon, and "readline" is for rpm lua
37                       
38                        #"doxygen" is required for building the rpm API docs, default is --without
39                        #bin:doxygen:doxygen
40
41worksrcdir      rpm-${version}
42
43configure.args          --disable-nls --without-javaglue --without-included-gettext \
44                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
45                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
46                        --with-python=2.5
47
48configure.env           __PYTHON="${prefix}/bin/python"
49
50build.type      gnu
51
52
53variant darwin {
54        patchfiles-append \
55                patch-file-src-Makefile.in \
56                patch-macros.in
57
58        post-patch {
59                file delete -force ${worksrcpath}/beecrypt
60                file delete -force ${worksrcpath}/elfutils
61                file delete -force ${worksrcpath}/neon
62                file delete -force ${worksrcpath}/sqlite
63        }
64
65#       use_autoconf    yes
66#       use_automake    yes
67
68        pre-configure {
69                xinstall -d -m 755 ${workpath}/librt
70                system "ln -sf /usr/lib/libSystem.B.dylib \
71                                ${workpath}/librt/librt.dylib"
72
73        #       system "touch ${worksrcpath}/aclocal.m4"
74        #       system "touch ${worksrcpath}/config.h.in"
75        }
76
77        post-configure {
78        #       system "find ${worksrcpath} -name Makefile.in | xargs touch"
79        #       system "find ${worksrcpath} -name Makefile | xargs touch"
80        }
81
82        configure.args-append --disable-optimized --disable-aio \
83                              --with-python=2.5 --with-lua --with-glob \
84                              --enable-broken-chown --disable-rpath
85
86        # requires doxygen:
87        #configure.args-append --with-apidocs
88
89        configure.args-append   \
90                LDFLAGS="-L${prefix}/lib -L${workpath}/librt" \
91                CFLAGS="-I/Library/Frameworks/Python.framework/Versions/2.4/include -I${prefix}/include" CPPFLAGS="-I${prefix}/include -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4"
92
93        post-destroot {
94                # Delete overlapping files.
95                file delete ${destroot}${prefix}/include/popt.h
96                system "rm -f ${destroot}${prefix}/share/man/man3/popt.3*"
97                system "rm -rf ${destroot}${prefix}/lib/libpopt.*"
98                system "rm -rf ${destroot}/System"
99                system "rm -rf ${destroot}/Library"
100                system "rm -f ${destroot}/usr/local/man/man3/RPM.3pm"
101
102                # MacOSX specific changes
103                reinplace "s;%{_usrsrc}/redhat;%{_usrsrc}/apple;" ${destroot}${prefix}/lib/rpm/macros
104
105                # where the RPM database lives
106                destroot.keepdirs "${destroot}${prefix}/var/lib/rpm"
107                destroot.keepdirs-append "${destroot}${prefix}/src/apple/BUILD"
108                destroot.keepdirs-append "${destroot}${prefix}/src/apple/RPMS"
109                destroot.keepdirs-append "${destroot}${prefix}/src/apple/SOURCES"
110                destroot.keepdirs-append "${destroot}${prefix}/src/apple/SPECS"
111                destroot.keepdirs-append "${destroot}${prefix}/src/apple/SRPMS"
112        }
113}
Note: See TracBrowser for help on using the repository browser.