Moved to slp format
This commit is contained in:
28
Makefile
28
Makefile
@@ -8,25 +8,26 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
DEPENDS =
|
||||
DEPENDS = dash,glibc,util-linux
|
||||
ARCH = x86_64
|
||||
URL = http://e2fsprogs.sourceforge.net/
|
||||
DESC = provides the filesystem utilities for use with the ext2 filesystem. \
|
||||
REPO = core
|
||||
BRIEF = Filesystem utilities for use with ext2/3/4
|
||||
DESC = Provides the filesystem utilities for use with the ext2 filesystem. \
|
||||
It also supports the ext3 and ext4 filesystems.
|
||||
SNAPVER = sr0
|
||||
SLVER = 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')
|
||||
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
||||
PATCHDIR := $(PWD)/SRC/patches
|
||||
BUILDDIR := $(PWD)/BUILD
|
||||
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')$(SNAPVER)
|
||||
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SLVER)
|
||||
|
||||
MAKE = make
|
||||
MAKEINST = make install && make install-libs && make install-doc-libs
|
||||
SNAPHACKS =
|
||||
|
||||
include /usr/share/snap/Makefile.snaplinux
|
||||
include /usr/share/sl/Makefile.snaplinux
|
||||
|
||||
$(SRCDIR)/configure: $(ARCHIVE)
|
||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||
@@ -62,8 +63,7 @@ $(BUILDDIR)/config.log: $(SRCDIR)/configure
|
||||
--target=x86_64-snap-linux-gnu
|
||||
|
||||
$(BUILDDIR)/e2fsck/e2fsck: $(BUILDDIR)/config.log
|
||||
@cd $(BUILDDIR); \
|
||||
$(MAKE)
|
||||
@cd $(BUILDDIR) && make
|
||||
|
||||
$(ROOT): $(BUILDDIR)/e2fsck/e2fsck
|
||||
@if [ -d $(ROOT) ]; then \
|
||||
@@ -72,12 +72,10 @@ $(ROOT): $(BUILDDIR)/e2fsck/e2fsck
|
||||
mkdir -v $(ROOT); \
|
||||
fi
|
||||
|
||||
@cd $(BUILDDIR); \
|
||||
export DESTDIR=$(ROOT); \
|
||||
$(MAKEINST); \
|
||||
unset DESTDIR
|
||||
|
||||
@$(SNAPHACKS)
|
||||
@cd $(BUILDDIR) && \
|
||||
make install DESTDIR=$(ROOT) && \
|
||||
make install-libs DESTDIR=$(ROOT) && \
|
||||
make install-doc-libs DESTDIR=$(ROOT)
|
||||
|
||||
test: $(ROOT)
|
||||
@cd $(BUILDDIR); \
|
||||
@@ -85,7 +83,7 @@ test: $(ROOT)
|
||||
|
||||
clean:
|
||||
@rm -rvf $(ROOT) \
|
||||
$(SNAPINFO) \
|
||||
$(SLINFO) \
|
||||
$(MANIFEST) \
|
||||
$(FILES) \
|
||||
$(SRCDIR) \
|
||||
|
||||
Reference in New Issue
Block a user