Skip to content

Commit

Permalink
Move lpSolve to external directory and update copyrights
Browse files Browse the repository at this point in the history
  • Loading branch information
vfisikop committed Feb 29, 2024
1 parent 7548826 commit ee66fb4
Show file tree
Hide file tree
Showing 100 changed files with 14 additions and 1,077 deletions.
6 changes: 3 additions & 3 deletions inst/COPYRIGHTS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
All files in src/external are taken from
(i) lpsolve (https://cran.r-project.org/src/contrib/Archive/lpSolveAPI) version 5.5.2.0,
(ii) bnmin1 (https://www.mrao.cam.ac.uk/~bn204/oof/bnmin1.html) version 1.11
All files in src/external are taken from
(i) lpsolve (https://cran.r-project.org/package=lpSolve) version 5.6.20,
(ii) minimum_ellipsoid (or bnmin1) (https://www.mrao.cam.ac.uk/~bn204/oof/bnmin1.html) version 1.11

Copyrights and modification details are explicitly described at the beginning of each of those files.

10 changes: 5 additions & 5 deletions src/Makevars
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PKG_CPPFLAGS=-Ivolesti/external -IlpSolve/src -Ivolesti/external/minimum_ellipsoid -Ivolesti/include -Ivolesti/include/convex_bodies/spectrahedra
PKG_CPPFLAGS=-Ivolesti/external -Iexternal/lpSolve/src -Ivolesti/external/minimum_ellipsoid -Ivolesti/include -Ivolesti/include/convex_bodies/spectrahedra
PKG_CXXFLAGS= -DBOOST_NO_AUTO_PTR -DDISABLE_NLP_ORACLES

PKG_LIBS=-LlpSolve/src -llp_solve -Lvolesti/external/PackedCSparse/qd -lqd $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
PKG_LIBS=-Lexternal/lpSolve/src -llp_solve -Lvolesti/external/PackedCSparse/qd -lqd $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

$(SHLIB): lpSolve/src/liblp_solve.a volesti/external/PackedCSparse/qd/libqd.a
$(SHLIB): external/lpSolve/src/liblp_solve.a volesti/external/PackedCSparse/qd/libqd.a

lpSolve/src/liblp_solve.a:
@(cd lpSolve/src && $(MAKE) liblp_solve.a \
external/lpSolve/src/liblp_solve.a:
@(cd external/lpSolve/src && $(MAKE) liblp_solve.a \
CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
CPICFLAGS="$(CPICFLAGS)" AR="$(AR)" RANLIB="$(RANLIB)")

Expand Down
10 changes: 5 additions & 5 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PKG_CPPFLAGS=-Ivolesti/external -IlpSolve/src -Ivolesti/external/minimum_ellipsoid -Ivolesti/include -Ivolesti/include/convex_bodies/spectrahedra
PKG_CPPFLAGS=-Ivolesti/external -Iexternal/lpSolve/src -Ivolesti/external/minimum_ellipsoid -Ivolesti/include -Ivolesti/include/convex_bodies/spectrahedra
PKG_CXXFLAGS= -lm -ldl -DBOOST_NO_AUTO_PTR -DDISABLE_NLP_ORACLES

PKG_LIBS=-LlpSolve/src -llp_solve -Lvolesti/external/PackedCSparse/qd -lqd $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
PKG_LIBS=-Lexternal/lpSolve/src -llp_solve -Lvolesti/external/PackedCSparse/qd -lqd $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

$(SHLIB): lpSolve/src/liblp_solve.a volesti/external/PackedCSparse/qd/libqd.a
$(SHLIB): external/lpSolve/src/liblp_solve.a volesti/external/PackedCSparse/qd/libqd.a

lpSolve/src/liblp_solve.a:
@(cd lpSolve/src && $(MAKE) liblp_solve.a \
external/lpSolve/src/liblp_solve.a:
@(cd external/lpSolve/src && $(MAKE) liblp_solve.a \
CC="$(CC)" CPPFLAGS="$(CPPFLAGS) -DUSRDLL -DINLINE=static" \
CFLAGS="$(CFLAGS)" CPICFLAGS="$(CPICFLAGS)" AR="$(AR)" \
RANLIB="$(RANLIB)")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lpSolve/src/hbio.c → src/external/lpSolve/src/hbio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,6 @@ void IOHBTerminate(char* message)
{
/* fprintf(stderr,message);
** exit(1); */
error(message);
error("%s", message);
}

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 0 additions & 19 deletions src/lpSolve/DESCRIPTION

This file was deleted.

94 changes: 0 additions & 94 deletions src/lpSolve/MD5

This file was deleted.

3 changes: 0 additions & 3 deletions src/lpSolve/NAMESPACE

This file was deleted.

Loading

0 comments on commit ee66fb4

Please sign in to comment.