[arch-commits] Commit in lrs/repos (3 files)
Antonio Rojas
arojas at archlinux.org
Mon Apr 29 12:04:47 UTC 2019
Date: Monday, April 29, 2019 @ 12:04:46
Author: arojas
Revision: 456048
archrelease: copy trunk to community-staging-x86_64
Added:
lrs/repos/community-staging-x86_64/
lrs/repos/community-staging-x86_64/PKGBUILD
(from rev 456047, lrs/trunk/PKGBUILD)
lrs/repos/community-staging-x86_64/lrs-system-cflags.patch
(from rev 456047, lrs/trunk/lrs-system-cflags.patch)
-------------------------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
lrs-system-cflags.patch | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+)
Copied: lrs/repos/community-staging-x86_64/PKGBUILD (from rev 456047, lrs/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-04-29 12:04:46 UTC (rev 456048)
@@ -0,0 +1,29 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=lrs
+pkgver=070
+pkgrel=1
+pkgdesc="C implementation of the reverse search algorithm for vertex enumeration/convex hull problems"
+arch=(x86_64)
+url="http://cgm.cs.mcgill.ca/~avis/C/lrs.html"
+license=(GPL)
+depends=(gmp)
+source=("http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/lrslib-$pkgver.tar.gz"
+ lrs-system-cflags.patch)
+sha256sums=('e9f12b29be89b3ad6984f3a9cf83f5776ac06edc57b0716649e63395e5ac4dfe'
+ '23814d543e458f43b9871f5de6112f3ca331d8ded3449c7e2efa681ca5a6606f')
+
+prepare() {
+ cd lrslib-$pkgver
+ patch -p1 -i ../lrs-system-cflags.patch # Use system CFLAGS/LDFLAGS
+}
+
+build() {
+ cd lrslib-$pkgver
+ make -j1
+}
+
+package() {
+ cd lrslib-$pkgver
+ make DESTDIR="$pkgdir" prefix=/usr install
+}
Copied: lrs/repos/community-staging-x86_64/lrs-system-cflags.patch (from rev 456047, lrs/trunk/lrs-system-cflags.patch)
===================================================================
--- community-staging-x86_64/lrs-system-cflags.patch (rev 0)
+++ community-staging-x86_64/lrs-system-cflags.patch 2019-04-29 12:04:46 UTC (rev 456048)
@@ -0,0 +1,36 @@
+--- lrslib-070/makefile.orig 2019-04-29 11:53:55.707113154 +0000
++++ lrslib-070/makefile 2019-04-29 11:55:36.485187714 +0000
+@@ -35,7 +35,6 @@
+ #INCLUDEDIR = /usr/local/include:/usr/include
+ #LIBDIR = /usr/local/lib:/usr/lib
+
+-CFLAGS = -O3 -Wall
+ SHLIB_CFLAGS = -fPIC
+ mpicxx=mpic++
+
+@@ -204,7 +203,7 @@
+ # Building (linking) the shared library, and relevant symlinks.
+
+ ${SHLIB}: ${SHLIBOBJ}
+- $(CC) -shared -Wl,-soname=$(SONAME) $(SHLIBFLAGS) -o $@ ${SHLIBOBJ} -lgmp
++ $(CC) -shared -Wl,-soname=$(SONAME) $(SHLIBFLAGS) -o $@ ${SHLIBOBJ} -lgmp ${LDFLAGS}
+
+ ${SONAME}: ${SHLIB}
+ ln -sf ${SHLIB} ${SONAME}
+@@ -217,13 +216,13 @@
+ all-shared: ${SHLIBBIN}
+
+ lrs-shared: ${SHLINK} lrs.o
+- $(CC) lrs.o -o $@ -L . -llrs
++ $(CC) lrs.o -o $@ -L . -llrs ${LDFLAGS}
+
+ redund-shared: ${SHLINK} redund.o
+- $(CC) redund.o -o $@ -L . -llrs
++ $(CC) redund.o -o $@ -L . -llrs ${LDFLAGS}
+
+ lrsnash-shared: ${SHLINK} lrsnash.c
+- $(CC) -DGMP -DMA lrsnash.c lrsnashlib.c -I${INCLUDEDIR} -o $@ -L . -llrs -lgmp
++ $(CC) -DGMP -DMA lrsnash.c lrsnashlib.c -I${INCLUDEDIR} -o $@ -L . -llrs -lgmp ${LDFLAGS}
+
+ # build object files for the shared library
+
More information about the arch-commits
mailing list