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

Last change on this file since 2713 was 2713, checked in by ranger, 17 years ago

Bug: 604
Submitted by:
Reviewed by: ssen@…
Approved by:
Obtained from:
Changes to handle a number of packaging bits work better.

  1. added python module support, so that yum (and maybe others) can be built
  2. added support for generating provides and depends for libraries and other binaries. frameworks show up as just the framework name without paths in the provides/requires lists.
  3. added support for a "fat" architecture, that is allowed to be installed on both i386 and ppc. it can be enabled by setting the BuildArch to "fat" and making sure compilation has fat linking enabled.
  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1# $Id: Portfile,v 1.4 2003/06/01 03:22:28 ranger Exp $
2
3PortSystem 1.0
4name                    rpm
5version                 4.0.4
6platforms               darwin
7revision                2
8categories              sysutils archivers
9maintainers             ssen@opendarwin.org
10description             RedHat Package Manager
11
12master_sites            ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/
13checksums               md5 b0c3093d2f0d850760e59ac1db9bf152
14
15depends_lib             lib:libbz2.1.0:bzip2 lib:libiconv.2:libiconv \
16                        bin:python:python
17
18configure.args          --disable-nls --with-included-gettext \
19                        --with-glob --with-libiconv-prefix=${prefix}
20
21variant darwin {
22        patchfiles-append \
23                patch-db3-configure.diff        patch-rpmheader.diff \
24                patch-dump.diff                 patch-rpmioc.diff \
25                patch-dumpdb.diff               patch-rpmioh.diff \
26                patch-lib-signature.diff        patch-rpmlead.diff \
27                patch-macros-in.diff            patch-rpmqv.diff \
28                patch-rpm2cpio.diff             patch-rpmsignature.diff \
29                patch-rpmarchive.diff           patch-systemh.diff \
30                patch-rpmrc.diff                patch-rpmrc-in.diff \
31                patch-autodeps-darwin-prov.diff patch-autodeps-darwin-req.diff \
32                patch-python-rpmmodule.diff     patch-python-makefile-in.diff
33
34        pre-configure {
35                system "mkdir -p ${workpath}/librt"
36                system "ln -sf /usr/lib/libSystem.B.dylib \
37                                ${workpath}/librt/librt.dylib"
38        }
39
40        configure.args-append --disable-optimized --disable-aio \
41                              --with-python=auto --without-javaglue \
42                              --enable-broken-chown
43
44        configure.env   LDFLAGS="-L${prefix}/lib -L${workpath}/librt" \
45                        CFLAGS="-I${prefix}/include -no-cpp-precomp" \
46                        CC="gcc -flat_namespace" CPPFLAGS=""
47
48        post-install {
49                # where the RPM database to lives
50                system "mkdir -p '${destroot}${prefix}/var/lib/rpm'"
51                system "touch '${destroot}${prefix}/var/lib/rpm/.turd'"
52        }
53}
Note: See TracBrowser for help on using the repository browser.