Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6e39f7e9c7 | ||
|
|
97a214e7e1 |
31
Makefile
31
Makefile
@@ -8,18 +8,24 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS = glibc,gmp
|
export SRCPKG = mpfr
|
||||||
ARCH = x86_64
|
export DEPENDS = glibc,gmp
|
||||||
URL = http://www.mpfr.org/
|
export ARCH = x86_64
|
||||||
|
export URL = http://www.mpfr.org/
|
||||||
|
BRIEF = C library with improved mathematical precision
|
||||||
DESC = The MPFR library is a C library for multiple-precision floating-point \
|
DESC = The MPFR library is a C library for multiple-precision floating-point \
|
||||||
computations with correct rounding.
|
computations with correct rounding.
|
||||||
SNAPVER = 2
|
SNAPVER = 4
|
||||||
|
|
||||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
||||||
PATCHDIR := $(PWD)/SRC/patches
|
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/^-//')-$(SNAPVER)
|
||||||
|
|
||||||
|
DEV := $(PWD)/mpfr-dev
|
||||||
|
DEVROOT := $(DEV)/ROOT
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|
||||||
@@ -46,7 +52,7 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
|
|||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR); \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--disable-static \
|
--libdir=/lib \
|
||||||
-enable-thread-safe \
|
-enable-thread-safe \
|
||||||
--build=x86_64-snap-linux-gnu \
|
--build=x86_64-snap-linux-gnu \
|
||||||
--host=x86_64-snap-linux-gnu \
|
--host=x86_64-snap-linux-gnu \
|
||||||
@@ -66,11 +72,24 @@ $(ROOT): $(SRCDIR)/src/grandom.o
|
|||||||
make install-html DESTDIR=$(ROOT) && \
|
make install-html DESTDIR=$(ROOT) && \
|
||||||
rm -v $(ROOT)/usr/share/info/dir
|
rm -v $(ROOT)/usr/share/info/dir
|
||||||
|
|
||||||
|
@install -v -d $(DEV)/SNAP && \
|
||||||
|
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 *.snap ../
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
@cd $(SRCDIR) && make check
|
@cd $(SRCDIR) && make check
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
|
$(DEV) \
|
||||||
$(SNAPINFO) \
|
$(SNAPINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
|
|||||||
15
Makefile.mpfr-dev
Normal file
15
Makefile.mpfr-dev
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# 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
|
||||||
|
BRIEF = Development files for mpfr
|
||||||
|
DESC = Development files for mpfr
|
||||||
|
|
||||||
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
Reference in New Issue
Block a user