-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vcpkg] Add vcpkg_from_sourceforge (1/2) (#11899)
- Loading branch information
Showing
83 changed files
with
528 additions
and
502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# vcpkg_from_sourceforge | ||
|
||
Download and extract a project from sourceforge. | ||
|
||
## Usage: | ||
```cmake | ||
vcpkg_from_sourceforge( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO <cunit/CUnit> | ||
[REF <2.1-3>] | ||
SHA512 <547b417109332...> | ||
FILENAME <CUnit-2.1-3.tar.bz2> | ||
[DISABLE_SSL] | ||
[NO_REMOVE_ONE_LEVEL] | ||
[PATCHES <patch1.patch> <patch2.patch>...] | ||
) | ||
``` | ||
|
||
## Parameters: | ||
### OUT_SOURCE_PATH | ||
Specifies the out-variable that will contain the extracted location. | ||
|
||
This should be set to `SOURCE_PATH` by convention. | ||
|
||
### REPO | ||
The organization or user and repository (optional) on sourceforge. | ||
|
||
### REF | ||
A stable version number that will not change contents. | ||
|
||
### FILENAME | ||
The local name for the file. Files are shared between ports, so the file may need to be renamed to make it clearly attributed to this port and avoid conflicts. | ||
|
||
For example, we can get the download link: | ||
https://sourceforge.net/settings/mirror_choices?projectname=mad&filename=libmad/0.15.1b/libmad-0.15.1b.tar.gz&selected=nchc | ||
So the REPO is `mad/libmad`, the REF is `0.15.1b`, and the FILENAME is `libmad-0.15.1b.tar.gz` | ||
|
||
For some special links: | ||
https://sourceforge.net/settings/mirror_choices?projectname=soxr&filename=soxr-0.1.3-Source.tar.xz&selected=nchc | ||
The REPO is `soxr`, REF is not exist, and the FILENAME is `soxr-0.1.3-Source.tar.xz` | ||
|
||
### SHA512 | ||
The SHA512 hash that should match the archive. | ||
|
||
### PATCHES | ||
A list of patches to be applied to the extracted sources. | ||
|
||
Relative paths are based on the port directory. | ||
|
||
### DISABLE_SSL | ||
Disable ssl when downloading source. | ||
|
||
### NO_REMOVE_ONE_LEVEL | ||
Specifies that the default removal of the top level folder should not occur. | ||
|
||
## Examples: | ||
|
||
* [cunit](https://github.com/Microsoft/vcpkg/blob/master/ports/cunit/portfile.cmake) | ||
* [polyclipping](https://github.com/Microsoft/vcpkg/blob/master/ports/polyclipping/portfile.cmake) | ||
* [tinyfiledialogs](https://github.com/Microsoft/vcpkg/blob/master/ports/tinyfiledialogs/portfile.cmake) | ||
|
||
## Source | ||
[scripts/cmake/vcpkg_from_sourceforge.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_from_sourceforge.cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Source: argtable2 | ||
Version: 2.13-4 | ||
Version: 2.13-5 | ||
Homepage: http://argtable.sourceforge.net | ||
Description: Argtable is an ANSI C library for parsing GNU style command line options with a minimum of fuss. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: cunit | ||
Version: 2.1.3-3 | ||
Version: 2.1.3-4 | ||
Homepage: https://sourceforge.net/projects/cunit/ | ||
Description: CUnit is a lightweight system for writing, administering, and running unit tests in C. It provides C programmers a basic testing functionality with a flexible variety of user interfaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
diff --git a/makefile.vc b/makefile.vc | ||
index cd0fc5a..7ce6861 100644 | ||
--- a/makefile.vc | ||
+++ b/makefile.vc | ||
@@ -32,6 +32,12 @@ epsilon.lib: $(LIBOBJ) | ||
|
||
$(EPSILON_DLL): epsilon_i.lib | ||
|
||
+!IFNDEF DEBUG | ||
+POPTLIB=$(LIBPATH)popt.lib | ||
+!ELSE | ||
+POPTLIB=$(LIBPATH)poptd.lib | ||
+!ENDIF | ||
+ | ||
epsilon_i.lib: $(LIBOBJ) | ||
link /debug /dll /def:libepsilon.def /out:$(EPSILON_DLL) \ | ||
/implib:epsilon_i.lib $(LIBOBJ) | ||
@@ -48,8 +54,8 @@ $(EPSILON_EXE): $(EPSILON_DLL) src\epsilon.obj \ | ||
src\cmd_truncate_file.obj src\cmd_decode_file.obj \ | ||
src\cmd_encode_file.obj src\misc.obj \ | ||
src\psi.obj src\pbm.obj \ | ||
- ..\popt\lib\libpopt.lib | ||
- /Fe$(EPSILON_EXE) | ||
+ $(POPTLIB) \ | ||
+ /Fe"$(EPSILON_EXE)" | ||
if exist $(EPSILON_EXE).manifest mt -manifest \ | ||
$(EPSILON_EXE).manifest -outputresource:$(EPSILON_EXE);1 | ||
|
||
@@ -71,8 +77,9 @@ install: all | ||
-mkdir $(INSTDIR)\bin | ||
-mkdir $(INSTDIR)\lib | ||
-mkdir $(INSTDIR)\include | ||
+ -mkdir $(INSTDIR)\tools | ||
copy *.dll $(INSTDIR)\bin | ||
copy *.lib $(INSTDIR)\lib | ||
- copy *.exe $(INSTDIR)\bin | ||
+ copy *.exe $(INSTDIR)\tools | ||
copy lib\epsilon.h $(INSTDIR)\include | ||
|
||
diff --git a/src/misc.h b/src/misc.h | ||
index 9023dce..d8ce602 100644 | ||
--- a/src/misc.h | ||
+++ b/src/misc.h | ||
@@ -30,7 +30,7 @@ extern "C" { | ||
#endif | ||
|
||
/* Use _snprintf instead of snprintf under MSVC compiler */ | ||
-#if defined(_WIN32) && !defined(__MINGW32__) | ||
+#if 0 | ||
#define snprintf _snprintf | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Source: epsilon | ||
Version: 0.9.2-1 | ||
Version: 0.9.2-2 | ||
Homepage: https://sourceforge.net/projects/epsilon-project/ | ||
Description: EPSILON is an Open Source wavelet image compressor, that is aimed on parallel and robust image processing. | ||
Description: EPSILON is an Open Source wavelet image compressor, that is aimed on parallel and robust image processing. | ||
Build-Depends: libpopt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: freeglut | ||
Version: 3.2.1-1 | ||
Version: 3.2.1-2 | ||
Homepage: https://sourceforge.net/projects/freeglut/ | ||
Description: Open source implementation of GLUT with source and binary backwards compatibility. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Source: freeimage | ||
Version: 3.18.0-9 | ||
Version: 3.18.0-10 | ||
Build-Depends: zlib, libpng, libjpeg-turbo, tiff, openjpeg, libwebp (!uwp), libraw, jxrlib, openexr | ||
Homepage: https://sourceforge.net/projects/freeimage/ | ||
Description: Support library for graphics image formats |
Oops, something went wrong.