Ticket #33670: Portfile

File Portfile, 1.5 KB (added by ajdudman, 13 years ago)

new Portfile as a whole

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