source: trunk/dports/devel/liboil/Portfile

Last change on this file was 142698, checked in by landonf@…, 2 years ago

Drop maintainership of (almost) all my ports, as I'm no longer using Mac OS X as my desktop OS.

The dict port here dates back to ~2002; it was the first port used as a test case when we were developing MacPorts.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 142698 2015-11-20 16:55:09Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5PortGroup  muniversal 1.0
6
7name            liboil
8version         0.3.17
9revision        1
10description     A library of simple functions that are optimized for various CPUs.
11long_description        ${description}
12maintainers     nomaintainer
13categories      devel
14license         BSD
15platforms       darwin
16homepage        http://liboil.freedesktop.org/
17master_sites    http://liboil.freedesktop.org/download/
18checksums           md5     47dc734f82faeb2964d97771cfd2e701 \
19                    sha1    f9d7103a3a4a4089f56197f81871ae9129d229ed \
20                    rmd160  de286350687a5d49868b0a45d4db007526220fec
21
22patchfiles      patch-liboil_liboilcpu-x86.c.diff automake.patch
23
24depends_build   port:pkgconfig
25depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2
26
27variant doc description {Install documentation} {
28    depends_build-append   port:gtk-doc
29    configure.args-append  --enable-gtk-doc
30}
31
32use_autoreconf  yes
33autoreconf.args -fvi
34
35if {[variant_isset universal]} {
36    set merger_host(i386) i686-apple-${os.platform}${os.major}
37    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
38} elseif {${build_arch} eq "i386"} {
39    configure.args-append \
40        --host=i686-apple-${os.platform}${os.major}
41} elseif {${build_arch} eq "x86_64"} {
42    configure.args-append \
43        --host=${build_arch}-apple-${os.platform}${os.major}
44}
45
46# icky inline asm... clang doesn't want to touch it, but we can force it
47if {[string match *clang* ${configure.compiler}]} {
48        configure.cflags-append -fheinous-gnu-extensions
49}
50
51test.run                yes
52test.target             check
53
54livecheck.type          regex
55livecheck.url           [lindex ${master_sites} 0]?C=M&O=D
56livecheck.regex         ${name}-(\\d(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.