Moved to slp format
This commit is contained in:
20
Makefile
20
Makefile
@@ -9,25 +9,27 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
export SRCPKG = expat
|
export SRCPKG = expat
|
||||||
export DEPENDS = glibc
|
export DEPENDS = glibc,libexpat
|
||||||
export ARCH = x86_64
|
export ARCH = x86_64
|
||||||
export URL = http://expat.sourceforge.net/
|
export URL = http://expat.sourceforge.net/
|
||||||
|
REPO = main
|
||||||
|
BRIEF = Expat is an XML parser library written in C.
|
||||||
DESC = Expat is an XML parser library written in C.
|
DESC = Expat is an XML parser library written in C.
|
||||||
SNAPVER = 1
|
SLVER = 2
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
LIB := $(PWD)/libexpat
|
LIB := $(PWD)/libexpat
|
||||||
LIBROOT := $(LIB)/ROOT
|
LIBROOT := $(LIB)/ROOT
|
||||||
DEV := $(PWD)/expat-dev
|
DEV := $(PWD)/expat-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 \
|
||||||
@@ -69,9 +71,9 @@ $(ROOT): $(SRCDIR)/usr/lib/libexpat.so
|
|||||||
install -v -dm755 $(ROOT)/usr/share/doc/expat && \
|
install -v -dm755 $(ROOT)/usr/share/doc/expat && \
|
||||||
install -v -m644 doc/*.{html,png,css} $(ROOT)/usr/share/doc/expat
|
install -v -m644 doc/*.{html,png,css} $(ROOT)/usr/share/doc/expat
|
||||||
|
|
||||||
@install -v -d $(LIB)/SNAP && \
|
@install -v -d $(LIB)/SL && \
|
||||||
install -v -d $(LIBROOT)/usr/lib && \
|
install -v -d $(LIBROOT)/usr/lib && \
|
||||||
install -v -d $(DEV)/SNAP && \
|
install -v -d $(DEV)/SL && \
|
||||||
install -v -d $(DEVROOT) && \
|
install -v -d $(DEVROOT) && \
|
||||||
for file in `find $(ROOT)|egrep 'pkgconfig\/|\.a$$|\.h$$'`; do \
|
for file in `find $(ROOT)|egrep 'pkgconfig\/|\.a$$|\.h$$'`; do \
|
||||||
path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \
|
path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \
|
||||||
@@ -80,8 +82,8 @@ $(ROOT): $(SRCDIR)/usr/lib/libexpat.so
|
|||||||
done && \
|
done && \
|
||||||
mv -v $(ROOT)/usr/lib/libexpat* $(LIBROOT)/usr/lib && \
|
mv -v $(ROOT)/usr/lib/libexpat* $(LIBROOT)/usr/lib && \
|
||||||
find $(ROOT) -type d -empty -delete && \
|
find $(ROOT) -type d -empty -delete && \
|
||||||
cd $(LIB) && make -f ../Makefile.libexpat && mv *.snap ../ && \
|
cd $(LIB) && make -f ../Makefile.libexpat && mv *.slp ../ && \
|
||||||
cd $(DEV) && make -f ../Makefile.expat-dev && mv *.snap ../
|
cd $(DEV) && make -f ../Makefile.expat-dev && mv *.slp ../
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
@cd $(SRCDIR) && make check
|
@cd $(SRCDIR) && make check
|
||||||
@@ -90,7 +92,7 @@ clean:
|
|||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(DEV) \
|
$(DEV) \
|
||||||
$(LIB) \
|
$(LIB) \
|
||||||
$(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 = libexpat
|
DEPENDS = libexpat
|
||||||
|
REPO = dev
|
||||||
BRIEF = Development files for expat
|
BRIEF = Development files for expat
|
||||||
DESC = Development files for expat
|
DESC = Development files for expat
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS = glibc
|
DEPENDS = glibc
|
||||||
|
REPO = main
|
||||||
BRIEF = Runtime library for expat
|
BRIEF = Runtime library for expat
|
||||||
DESC = Runtime library for expat
|
DESC = Runtime library for expat
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
Reference in New Issue
Block a user