1 | # $Id: Portfile 85757 2011-10-16 05:01:19Z dports@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup muniversal 1.0 |
---|
5 | |
---|
6 | name liboil |
---|
7 | version 0.3.17 |
---|
8 | revision 1 |
---|
9 | description A library of simple functions that are optimized for various CPUs. |
---|
10 | long_description ${description} |
---|
11 | maintainers landonf |
---|
12 | categories devel |
---|
13 | license BSD |
---|
14 | platforms darwin |
---|
15 | homepage http://www.freedesktop.org/wiki/ |
---|
16 | master_sites http://liboil.freedesktop.org/download/ |
---|
17 | |
---|
18 | checksums md5 47dc734f82faeb2964d97771cfd2e701 \ |
---|
19 | sha1 f9d7103a3a4a4089f56197f81871ae9129d229ed \ |
---|
20 | rmd160 de286350687a5d49868b0a45d4db007526220fec |
---|
21 | |
---|
22 | patchfiles patch-configure.ac.diff patch-liboil_liboilcpu-x86.c.diff |
---|
23 | |
---|
24 | depends_build port:pkgconfig path:share/automake-1.11/config.guess:automake |
---|
25 | depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 |
---|
26 | |
---|
27 | # Must update the old "./config.guess" |
---|
28 | use_autoreconf yes |
---|
29 | autoreconf.args -fvi |
---|
30 | |
---|
31 | # Have icky inline asm; clang doesn't want to touch it, but we can force it. |
---|
32 | if {${configure.compiler} == "clang"} { |
---|
33 | configure.cflags-append -fheinous-gnu-extensions |
---|
34 | } |
---|
35 | |
---|
36 | # With muniversal configure needs help with AS_HOST_DEFINES in m4/as-host-defines.m4. |
---|
37 | platform darwin { |
---|
38 | lappend merger_configure_args(i386) --host=i686-apple-${os.platform}${os.version} |
---|
39 | } |
---|
40 | |
---|
41 | variant doc description {Install documentation} { |
---|
42 | depends_build-append port:gtk-doc |
---|
43 | configure.args-append --enable-gtk-doc |
---|
44 | } |
---|
45 | |
---|
46 | test.run yes |
---|
47 | test.target check |
---|
48 | |
---|
49 | livecheck.type regex |
---|
50 | livecheck.url [lindex ${master_sites} 0] |
---|
51 | livecheck.regex ${name}-(\[-0-9._\]+)${extract.suffix} |
---|