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

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
2
3PortSystem 1.0
4
5name                    rpm
6version                 4.4.9
7revision                17
8platforms               darwin freebsd linux
9license                 GPL-2 LGPL-2
10categories              sysutils archivers
11maintainers             mac.com:n3npq afb
12description             The RPM package management system.
13long_description        The RPM Package Manager (RPM) is a powerful command line driven \
14                        package management system capable of installing, uninstalling, \
15                        verifying, querying, and updating software packages. Each software \
16                        package consists of an archive of files along with information about \
17                        the package like its version, a description, etc.
18
19homepage                http://rpm5.org
20master_sites            ${homepage}/files/${name}/${name}-4.4
21checksums               md5 210b768006e7d88dd8a3bcd498ea27f6
22
23depends_build           port:python27 port:perl5.16
24
25depends_lib             port:gettext \
26                        port:popt port:sqlite3 port:beecrypt \
27                        port:neon port:libiconv
28
29depends_run             path:lib/libssl.dylib:openssl \
30                        bin:gzip:gzip \
31                        bin:bzip2:bzip2 \
32                        bin:unzip:unzip
33
34build.type              gnu
35build.jobs              1
36
37configure.args          --disable-nls --without-javaglue --without-included-gettext \
38                        --with-libintl-prefix=${prefix} --with-libiconv-prefix=${prefix} \
39                        --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
40                        --with-python=2.7 --with-perl=5.16 --without-apidocs \
41                        --sysconfdir=${prefix}/etc
42
43configure.libs-append   -liconv
44
45configure.env           __PYTHON=${prefix}/bin/python2.7 __PERL=${prefix}/bin/perl5.16
46
47                        # needed because it checks for sqlite3_open in sqlite lib...
48configure.env-append    ac_cv_lib_sqlite_sqlite3_open=yes
49
50                        # needed because db3 configure breaks with a two-word CXX...
51configure.ccache        no
52
53patchfiles              patch-neon.diff \
54                        patch-macros.in \
55                        patch-configure \
56                        patch-db3-configure \
57                        patch-zlib-configure \
58                        patch-Makefile.in \
59                        patch-Makefile.PL \
60                        patch-darwin.prov \
61                        patch-fts.c \
62                        patch-rpmdav.c \
63                        patch-rpmsq.c \
64                        patch-rpmevr.h \
65                        patch-parseBuildInstallClean.c \
66                        patch-db-mutex-mut_pthread.c \
67                        patch-scripts-brp-nobuildrootpath
68
69post-patch {
70        # use external popt library
71        delete ${worksrcpath}/popt
72}
73
74post-destroot {
75        # MacPorts specific changes
76        reinplace "s;%{_usrsrc}/rpm;%{_usrsrc}/macports;" ${destroot}${prefix}/lib/rpm/macros
77
78        xinstall -d -m 755 ${prefix}/etc/rpm
79
80        delete [glob ${destroot}${prefix}/lib/perl5/*/*/*/auto/RPM/.packlist]
81        delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
82
83        # where the RPM database lives
84        destroot.keepdirs ${destroot}${prefix}/etc/rpm\
85                          ${destroot}${prefix}/var/lib/rpm\
86                          ${destroot}${prefix}/var/spool/repackage\
87                          ${destroot}${prefix}/src/macports/BUILD\
88                          ${destroot}${prefix}/src/macports/RPMS\
89                          ${destroot}${prefix}/src/macports/SOURCES\
90                          ${destroot}${prefix}/src/macports/SPECS\
91                          ${destroot}${prefix}/src/macports/SRPMS
92}
93
94platform darwin {
95        configure.args-append --disable-optimized --disable-aio \
96                              --with-glob --enable-broken-chown \
97                              --disable-rpath
98
99        configure.cppflags-append -I${frameworks_dir}/Python.framework/Versions/2.7/include/python2.7
100
101        post-destroot {
102                # Mac OS X specific changes
103                reinplace "s;\blibtoolize\b;glibtoolize;" ${destroot}${prefix}/lib/rpm/macros
104        }
105}
106
107platform freebsd {
108        post-configure {
109                reinplace "s;-lrt;;" ${worksrcpath}/lua/Makefile
110        }
111
112        post-destroot {
113                # FreeBSD specific changes
114                reinplace "s;/usr/bin/tar;/usr/local/bin/gtar;" ${destroot}${prefix}/lib/rpm/macros
115                reinplace "s;/usr/bin/make;/usr/local/bin/gmake;" ${destroot}${prefix}/lib/rpm/macros
116        }
117}
118
119platform linux {
120        patchfiles-append      patch-rpmdb-Makefile.am
121
122        post-destroot {
123                # Linux specific changes
124        }
125}
126
127variant docs description "API documentation" {
128        depends_build-append port:doxygen path:bin/dot:graphviz
129        configure.args-delete --without-apidocs
130        configure.args-append --with-apidocs
131}
132
133livecheck.type  regex
134# get the last modified tarball
135livecheck.url   ${master_sites}
136livecheck.regex ${name}-(\[0-9\\.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.