Add libxmp-lite formula to replace coremod
Closes Homebrew/homebrew#37063. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
d51cd1fbcd
commit
9419c2d3a8
1 changed files with 25 additions and 0 deletions
25
Formula/libxmp-lite.rb
Normal file
25
Formula/libxmp-lite.rb
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
class LibxmpLite < Formula
|
||||||
|
homepage "http://xmp.sourceforge.net"
|
||||||
|
url "https://downloads.sourceforge.net/project/xmp/libxmp/4.3.5/libxmp-lite-4.3.5.tar.gz"
|
||||||
|
sha1 "45ae99bf939f1fe2cb8c75ec76406cbb028a1bf8"
|
||||||
|
|
||||||
|
def install
|
||||||
|
system "./configure", "--prefix=#{prefix}"
|
||||||
|
system "make", "install"
|
||||||
|
end
|
||||||
|
|
||||||
|
test do
|
||||||
|
(testpath/"test.c").write <<-'EOS'.undent
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <libxmp-lite/xmp.h>
|
||||||
|
|
||||||
|
int main(int argc, char* argv[]){
|
||||||
|
printf("libxmp-lite %s/%c%u\n", XMP_VERSION, *xmp_version, xmp_vercode);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EOS
|
||||||
|
|
||||||
|
system ENV.cc, "-I", include, "-L", lib, "-lxmp-lite", "test.c", "-o", "test"
|
||||||
|
system "#{testpath}/test"
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue