Moved to slp format
This commit is contained in:
13
Makefile
13
Makefile
@@ -12,22 +12,23 @@ export SRCPKG = mpfr
|
|||||||
export DEPENDS = glibc,gmp
|
export DEPENDS = glibc,gmp
|
||||||
export ARCH = x86_64
|
export ARCH = x86_64
|
||||||
export URL = http://www.mpfr.org/
|
export URL = http://www.mpfr.org/
|
||||||
|
REPO = main
|
||||||
BRIEF = C library with improved mathematical precision
|
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 = 4
|
SLVER = 5
|
||||||
|
|
||||||
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
|
||||||
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
||||||
sed 's/^-//')-$(SNAPVER)
|
sed 's/^-//')-$(SLVER)
|
||||||
|
|
||||||
DEV := $(PWD)/mpfr-dev
|
DEV := $(PWD)/mpfr-dev
|
||||||
DEVROOT := $(DEV)/ROOT
|
DEVROOT := $(DEV)/ROOT
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|
||||||
$(SRCDIR)/configure: $(ARCHIVE)
|
$(SRCDIR)/configure: $(ARCHIVE)
|
||||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
@@ -72,7 +73,7 @@ $(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 $(DEV)/SL && \
|
||||||
install -v -d $(DEVROOT) && \
|
install -v -d $(DEVROOT) && \
|
||||||
install -v -d -m 755 $(DEVROOT)/usr/share && \
|
install -v -d -m 755 $(DEVROOT)/usr/share && \
|
||||||
for file in `find $(ROOT)|egrep 'man3\/|\.a$$|\.h$$'`; do \
|
for file in `find $(ROOT)|egrep 'man3\/|\.a$$|\.h$$'`; do \
|
||||||
@@ -82,7 +83,7 @@ $(ROOT): $(SRCDIR)/src/grandom.o
|
|||||||
done && \
|
done && \
|
||||||
mv -v $(ROOT)/usr/share/doc $(DEVROOT)/usr/share/doc && \
|
mv -v $(ROOT)/usr/share/doc $(DEVROOT)/usr/share/doc && \
|
||||||
find $(ROOT) -type d -empty -delete && \
|
find $(ROOT) -type d -empty -delete && \
|
||||||
cd $(DEV) && make -f ../Makefile.mpfr-dev && mv *.snap ../
|
cd $(DEV) && make -f ../Makefile.mpfr-dev && mv *.slp ../
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
@cd $(SRCDIR) && make check
|
@cd $(SRCDIR) && make check
|
||||||
@@ -90,7 +91,7 @@ test: $(ROOT)
|
|||||||
clean:
|
clean:
|
||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(DEV) \
|
$(DEV) \
|
||||||
$(SNAPINFO) \
|
$(SLINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
$(SRCDIR)
|
$(SRCDIR)
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS = mpfr
|
DEPENDS = mpfr
|
||||||
|
REPO = dev
|
||||||
BRIEF = Development files for mpfr
|
BRIEF = Development files for mpfr
|
||||||
DESC = Development files for mpfr
|
DESC = Development files for mpfr
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
Reference in New Issue
Block a user