package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
937 B
27 lines
937 B
package("libjpeg") |
|
|
|
set_homepage("http://ijg.org/") |
|
set_description("A widely used C library for reading and writing JPEG image files.") |
|
|
|
set_urls("http://www.ijg.org/files/jpegsrc.$(version).tar.gz") |
|
|
|
add_versions("v9c", "650250979303a649e21f87b5ccd02672af1ea6954b911342ea491f351ceb7122") |
|
add_versions("v9b", "240fd398da741669bf3c90366f58452ea59041cacc741a489b99f2f6a0bad052") |
|
|
|
on_build("windows", function (package) |
|
os.mv("jconfig.vc", "jconfig.h") |
|
os.vrun("nmake -f makefile.vc") |
|
end) |
|
|
|
on_install("windows", function (package) |
|
os.cp("*.h", package:installdir("include")) |
|
os.cp("libjpeg.lib", package:installdir("lib")) |
|
end) |
|
|
|
on_build("macosx", "linux", function (package) |
|
import("package.builder.autoconf").build(package) |
|
end) |
|
|
|
on_install("macosx", "linux", function (package) |
|
import("package.builder.autoconf").install(package) |
|
end)
|
|
|