3 Commits

Author SHA1 Message Date
Jay Larson
b4db9cae7e Moved to slp format 2020-08-26 16:22:32 -05:00
Jay Larson
6e39f7e9c7 The following changes were made to Makefile:
* corrected BRIEF variable
  * split off separate dev package
2017-04-06 13:59:57 -05:00
Jay Larson
97a214e7e1 The following changes were made:
* Moved .so files to /lib so they'd be available without /usr
2017-03-25 16:42:57 -05:00
3 changed files with 44 additions and 8 deletions

View File

@@ -8,20 +8,27 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
DEPENDS = glibc,gmp
ARCH = x86_64
URL = http://www.mpfr.org/
export SRCPKG = mpfr
export DEPENDS = glibc,gmp
export ARCH = x86_64
export URL = http://www.mpfr.org/
REPO = main
BRIEF = C library with improved mathematical precision
DESC = The MPFR library is a C library for multiple-precision floating-point \
computations with correct rounding.
SNAPVER = 2
SLVER = 5
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
PATCHDIR := $(PWD)/SRC/patches
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER)
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
sed 's/^-//')-$(SLVER)
include /usr/share/snap/Makefile.snaplinux
DEV := $(PWD)/mpfr-dev
DEVROOT := $(DEV)/ROOT
include /usr/share/sl/Makefile.snaplinux
$(SRCDIR)/configure: $(ARCHIVE)
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
@@ -46,7 +53,7 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
@cd $(SRCDIR); \
./configure \
--prefix=/usr \
--disable-static \
--libdir=/lib \
-enable-thread-safe \
--build=x86_64-snap-linux-gnu \
--host=x86_64-snap-linux-gnu \
@@ -66,12 +73,25 @@ $(ROOT): $(SRCDIR)/src/grandom.o
make install-html DESTDIR=$(ROOT) && \
rm -v $(ROOT)/usr/share/info/dir
@install -v -d $(DEV)/SL && \
install -v -d $(DEVROOT) && \
install -v -d -m 755 $(DEVROOT)/usr/share && \
for file in `find $(ROOT)|egrep 'man3\/|\.a$$|\.h$$'`; do \
path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \
mkdir -p $$path; \
mv $$file $$path; \
done && \
mv -v $(ROOT)/usr/share/doc $(DEVROOT)/usr/share/doc && \
find $(ROOT) -type d -empty -delete && \
cd $(DEV) && make -f ../Makefile.mpfr-dev && mv *.slp ../
test: $(ROOT)
@cd $(SRCDIR) && make check
clean:
@rm -rvf $(ROOT) \
$(SNAPINFO) \
$(DEV) \
$(SLINFO) \
$(MANIFEST) \
$(FILES) \
$(SRCDIR)

16
Makefile.mpfr-dev Normal file
View File

@@ -0,0 +1,16 @@
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation here:
# (http://www.gnu.org/licenses/gpl-2.0.html)
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
DEPENDS = mpfr
REPO = dev
BRIEF = Development files for mpfr
DESC = Development files for mpfr
include /usr/share/sl/Makefile.snaplinux