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

Last change on this file since 12697 was 12697, checked in by jkh, 15 years ago

Update to rpm version 4.4.2. At the request of jbj, we're going to consolidate
the rpm ports and try and clean up this mess.
Reviewed by: jbj

  • Property svn:eol-style set to native
File size: 3.5 KB
Line 
1# $Id: Portfile,v 1.15 2005/06/17 02:01:58 jkh Exp $
2
3PortSystem 1.0
4name                    rpm44
5version                 4.4.2
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
17master_sites            ftp://jbj.org/pub/rpm-macosx/
18distfiles               rpm-${version}.tar.gz
19checksums               md5 a2b35ac4ad5595400720d2608734f1a3
20
21depends_lib             lib:libiconv.2:libiconv lib:libintl.3:gettext \
22                        lib:libexpat:expat lib:libreadline:readline \
23                        lib:libbeecrypt.6:beecrypt lib:libneon.24:neon \
24                        lib:libsqlite3.0:sqlite3 \
25                        port:python24
26                       
27                        ###you do *not* want these installed, instead use "/usr":
28                        #lib:libssl:openssl lib:libbz2:bzip2 path:perl:perl5.8
29                        ###zlib should be replaced with the internal rpm version:
30                        #lib:libz:zlib
31                        ###"expat" is for libneon, and "readline" is for rpm lua
32                       
33depends_build           port:libiconv port:gettext
34                        #path:${prefix}/bin/autoconf:autoconf path:${prefix}/bin/automake:automake
35
36                        #"doxygen" is required for building the rpm API docs, default is --without
37                        #bin:doxygen:doxygen
38
39worksrcdir      rpm-${version}
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
45configure.env           __PYTHON="${prefix}/bin/python"
46
47build.type      gnu
48
49
50variant darwin {
51        patchfiles-append \
52                rpm-4.4.1-glob.patch patch-zlib-Makefile.in \
53                patch-file-src-Makefile.in patch-python-Makefile
54
55        post-patch {
56                system "rm -rf \"${worksrcpath}/beecrypt\""
57                system "rm -rf \"${worksrcpath}/neon\""
58                system "rm -rf \"${worksrcpath}/sqlite\""
59                system "rm -rf \"${worksrcpath}/elfutils\""
60#               # we want to use the internal zlib later, when it works...
61#               system "rm -rf \"${worksrcpath}/zlib\""
62        }
63
64#       use_autoconf    yes
65#       use_automake    yes
66
67        pre-configure {
68                system "mkdir -p ${workpath}/librt"
69                system "ln -sf /usr/lib/libSystem.B.dylib \
70                                ${workpath}/librt/librt.dylib"
71
72        #       system "touch ${worksrcpath}/aclocal.m4"
73        #       system "touch ${worksrcpath}/config.h.in"
74        }
75
76        post-configure {
77        #       system "find ${worksrcpath} -name Makefile.in | xargs touch"
78        #       system "find ${worksrcpath} -name Makefile | xargs touch"
79        }
80
81        configure.args-append --disable-optimized --disable-aio \
82                              --with-python=auto --with-lua --with-glob \
83                              --enable-broken-chown --disable-rpath
84
85        # requires doxygen:
86        #configure.args-append --with-apidocs
87
88        configure.args-append   \
89                LDFLAGS="-L${prefix}/lib -L${workpath}/librt" \
90                CFLAGS="-I${prefix}/include" CPPFLAGS="-I${prefix}/include"
91
92        post-destroot {
93                # Delete overlapping files.
94                file delete ${destroot}${prefix}/include/popt.h
95                system "rm -f ${destroot}${prefix}/share/man/man3/popt.3*"
96                system "rm -rf ${destroot}${prefix}/lib/libpopt.*"
97
98                # where the RPM database lives
99                destroot.keepdirs "${destroot}${prefix}/var/lib/rpm"
100                destroot.keepdirs-append "${destroot}${prefix}/src/apple/BUILD"
101                destroot.keepdirs-append "${destroot}${prefix}/src/apple/RPMS"
102                destroot.keepdirs-append "${destroot}${prefix}/src/apple/SOURCES"
103                destroot.keepdirs-append "${destroot}${prefix}/src/apple/SPECS"
104                destroot.keepdirs-append "${destroot}${prefix}/src/apple/SRPMS"
105        }
106}
Note: See TracBrowser for help on using the repository browser.