Ignore:
Timestamp:
Jun 1, 2003, 3:22:29 AM (16 years ago)
Author:
ranger
Message:

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.
Location:
trunk/dports/sysutils/rpm
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/rpm/Portfile

    r2581 r2713  
    1 # $Id: Portfile,v 1.3 2003/05/05 08:57:12 fkr Exp $
     1# $Id: Portfile,v 1.4 2003/06/01 03:22:28 ranger Exp $
    22
    33PortSystem 1.0
     
    55version                 4.0.4
    66platforms               darwin
    7 revision                1
     7revision                2
    88categories              sysutils archivers
    99maintainers             ssen@opendarwin.org
     
    1313checksums               md5 b0c3093d2f0d850760e59ac1db9bf152
    1414
    15 depends_lib             lib:libbz2.1.0:bzip2 lib:libiconv.2:libiconv
     15depends_lib             lib:libbz2.1.0:bzip2 lib:libiconv.2:libiconv \
     16                        bin:python:python
    1617
    1718configure.args          --disable-nls --with-included-gettext \
     
    2728                patch-rpm2cpio.diff             patch-rpmsignature.diff \
    2829                patch-rpmarchive.diff           patch-systemh.diff \
    29                 patch-rpmrc.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        }
    3039
    3140        configure.args-append --disable-optimized --disable-aio \
    32                               --without-python --without-javaglue \
     41                              --with-python=auto --without-javaglue \
    3342                              --enable-broken-chown
    3443
    3544        configure.env   LDFLAGS="-L${prefix}/lib -L${workpath}/librt" \
    3645                        CFLAGS="-I${prefix}/include -no-cpp-precomp" \
    37                         CC="gcc -flat_namespace"
     46                        CC="gcc -flat_namespace" CPPFLAGS=""
    3847
    39         pre-build {
    40                 system "mkdir -p ${workpath}/librt"
    41                 system "ln -sf /usr/lib/libSystem.B.dylib \
    42                                 ${workpath}/librt/librt.dylib"
     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'"
    4352        }
    4453}
Note: See TracChangeset for help on using the changeset viewer.