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

Last change on this file since 2581 was 2581, checked in by fkr, 17 years ago

Bug: #528
Submitted by: ssen@… (Shantonu Sen)
Reviewed by:
Approved by:
Obtained from:

new revision of the portfile, fixes behavior with symlinks and compile failures on some systems.

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1# $Id: Portfile,v 1.3 2003/05/05 08:57:12 fkr Exp $
2
3PortSystem 1.0
4name                    rpm
5version                 4.0.4
6platforms               darwin
7revision                1
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
17configure.args          --disable-nls --with-included-gettext \
18                        --with-glob --with-libiconv-prefix=${prefix}
19
20variant darwin {
21        patchfiles-append \
22                patch-db3-configure.diff        patch-rpmheader.diff \
23                patch-dump.diff                 patch-rpmioc.diff \
24                patch-dumpdb.diff               patch-rpmioh.diff \
25                patch-lib-signature.diff        patch-rpmlead.diff \
26                patch-macros-in.diff            patch-rpmqv.diff \
27                patch-rpm2cpio.diff             patch-rpmsignature.diff \
28                patch-rpmarchive.diff           patch-systemh.diff \
29                patch-rpmrc.diff
30
31        configure.args-append --disable-optimized --disable-aio \
32                              --without-python --without-javaglue \
33                              --enable-broken-chown
34
35        configure.env   LDFLAGS="-L${prefix}/lib -L${workpath}/librt" \
36                        CFLAGS="-I${prefix}/include -no-cpp-precomp" \
37                        CC="gcc -flat_namespace"
38
39        pre-build {
40                system "mkdir -p ${workpath}/librt"
41                system "ln -sf /usr/lib/libSystem.B.dylib \
42                                ${workpath}/librt/librt.dylib"
43        }
44}
Note: See TracBrowser for help on using the repository browser.