1 | # $Id: Portfile,v 1.2 2003/03/03 21:48:40 michaelm Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name rpm |
---|
5 | version 4.0.4 |
---|
6 | platforms darwin |
---|
7 | revision 1 |
---|
8 | categories sysutils archivers |
---|
9 | maintainers ssen@opendarwin.org |
---|
10 | description RedHat Package Manager |
---|
11 | |
---|
12 | master_sites ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/ |
---|
13 | checksums md5 b0c3093d2f0d850760e59ac1db9bf152 |
---|
14 | |
---|
15 | depends_lib lib:libbz2.1.0:bzip2 lib:libiconv.2:libiconv |
---|
16 | |
---|
17 | configure.args --disable-nls --with-included-gettext --with-glob --with-libiconv-prefix=${prefix} |
---|
18 | |
---|
19 | variant darwin { |
---|
20 | patchfiles-append \ |
---|
21 | patch-db3-configure.diff patch-rpmheader.diff \ |
---|
22 | patch-dump.diff patch-rpmioc.diff \ |
---|
23 | patch-dumpdb.diff patch-rpmioh.diff \ |
---|
24 | patch-lib-signature.diff patch-rpmlead.diff \ |
---|
25 | patch-macros-in.diff patch-rpmqv.diff \ |
---|
26 | patch-rpm2cpio.diff patch-rpmsignature.diff \ |
---|
27 | patch-rpmarchive.diff patch-systemh.diff \ |
---|
28 | patch-rpmrc.diff |
---|
29 | |
---|
30 | configure.args-append --disable-optimized --disable-aio \ |
---|
31 | --without-python --without-javaglue --enable-broken-chown |
---|
32 | |
---|
33 | configure.env LDFLAGS="-L${prefix}/lib -L${workpath}/librt" CFLAGS="-I${prefix}/include -no-cpp-precomp" CC="gcc -flat_namespace" |
---|
34 | |
---|
35 | pre-build { |
---|
36 | system "mkdir -p ${workpath}/librt" |
---|
37 | system "ln -sf /usr/lib/libSystem.B.dylib \ |
---|
38 | ${workpath}/librt/librt.dylib" |
---|
39 | } |
---|
40 | |
---|
41 | } |
---|
42 | |
---|