Date: Saturday, December 20, 2014 @ 10:25:18 Author: arojas Revision: 124161
Splitting sage-mathematics Added: libcliquer/ libcliquer/trunk/ libcliquer/trunk/Makefile.patch libcliquer/trunk/PKGBUILD ----------------+ Makefile.patch | 46 ++++++++++++++++++++++++++++++++++++++++++++++ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) Added: libcliquer/trunk/Makefile.patch =================================================================== --- libcliquer/trunk/Makefile.patch (rev 0) +++ libcliquer/trunk/Makefile.patch 2014-12-20 09:25:18 UTC (rev 124161) @@ -0,0 +1,46 @@ +diff -ru src/Makefile b/Makefile +--- src/Makefile 2010-01-22 08:53:21.000000000 +0100 ++++ b/Makefile 2014-01-16 14:55:51.977047191 +0100 +@@ -1,24 +1,3 @@ +- +-##### Configurable options: +- +-## Compiler: +-CC=gcc +-#CC=cc +- +-## Compiler flags: +- +-# GCC: (also -march=pentium etc, for machine-dependent optimizing) +-CFLAGS=-Wall -O3 -fomit-frame-pointer -funroll-loops +- +-# GCC w/ debugging: +-#CFLAGS=-Wall -g -DINLINE= +- +-# Compaq C / Digital C: +-#CFLAGS=-arch=host -fast +- +-# SunOS: +-#CFLAGS=-fast +- + ## Program options: + + # Enable long options for cl (eg. "cl --help"), comment out to disable. +@@ -29,14 +8,14 @@ + ##### End of configurable options + + +-all: cl ++all: libcliquer.so + + + testcases: testcases.o cliquer.o graph.o reorder.o + $(CC) $(LDFLAGS) -o $@ testcases.o cliquer.o graph.o reorder.o + +-cl: cl.o cliquer.o graph.o reorder.o +- $(CC) $(LDFLAGS) -o $@ cl.o cliquer.o graph.o reorder.o ++libcliquer.so: cl.o cliquer.o graph.o reorder.o ++ $(CC) $(LDFLAGS) $(SAGESOFLAGS) -o $@ cl.o cliquer.o graph.o reorder.o + + + cl.o testcases.o cliquer.o graph.o reorder.o: cliquer.h set.h graph.h misc.h reorder.h Makefile cliquerconf.h Added: libcliquer/trunk/PKGBUILD =================================================================== --- libcliquer/trunk/PKGBUILD (rev 0) +++ libcliquer/trunk/PKGBUILD 2014-12-20 09:25:18 UTC (rev 124161) @@ -0,0 +1,35 @@ +# Maintainer: Antonio Rojas <[email protected]> + +pkgname=libcliquer +pkgver=1.21 +pkgrel=1 +pkgdesc="A set of C routines for finding cliques in an arbitrary weighted graph" +arch=('i686' 'x86_64') +url="http://users.aalto.fi/~pat/cliquer.html" +license=('GPL') +depends=('glibc') +source=("http://users.aalto.fi/~pat/cliquer/cliquer-$pkgver.tar.gz" 'Makefile.patch') +md5sums=('ac65de2c89134abe2be36542b9465b16' + 'a38360e029771417aca9ff542943d6be') + +prepare() { + cd cliquer-$pkgver + +# build shared lib + patch -i $srcdir/Makefile.patch +} + +build() { + cd cliquer-$pkgver + + export CFLAGS="$CFLAGS -fPIC" + export SAGESOFLAGS="-shared -Wl,-soname,libcliquer.so" + make +} + +package() { + cd cliquer-$pkgver + mkdir -p "$pkgdir"/usr/{lib,include/cliquer} + install -m644 libcliquer.so "$pkgdir"/usr/lib + install -m644 *.h "$pkgdir"/usr/include/cliquer +}
