Moved to slp format
This commit is contained in:
20
Makefile
20
Makefile
@@ -9,25 +9,27 @@
|
||||
# GNU General Public License for more details.
|
||||
|
||||
export SRCPKG = expat
|
||||
export DEPENDS = glibc
|
||||
export DEPENDS = glibc,libexpat
|
||||
export ARCH = x86_64
|
||||
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.
|
||||
SNAPVER = 1
|
||||
SLVER = 2
|
||||
|
||||
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
|
||||
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
||||
sed 's/^-//')-$(SNAPVER)
|
||||
sed 's/^-//')-$(SLVER)
|
||||
|
||||
LIB := $(PWD)/libexpat
|
||||
LIBROOT := $(LIB)/ROOT
|
||||
DEV := $(PWD)/expat-dev
|
||||
DEVROOT := $(DEV)/ROOT
|
||||
|
||||
include /usr/share/snap/Makefile.snaplinux
|
||||
include /usr/share/sl/Makefile.snaplinux
|
||||
|
||||
$(SRCDIR)/configure: $(ARCHIVE)
|
||||
@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 -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 $(DEV)/SNAP && \
|
||||
install -v -d $(DEV)/SL && \
|
||||
install -v -d $(DEVROOT) && \
|
||||
for file in `find $(ROOT)|egrep 'pkgconfig\/|\.a$$|\.h$$'`; do \
|
||||
path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \
|
||||
@@ -80,8 +82,8 @@ $(ROOT): $(SRCDIR)/usr/lib/libexpat.so
|
||||
done && \
|
||||
mv -v $(ROOT)/usr/lib/libexpat* $(LIBROOT)/usr/lib && \
|
||||
find $(ROOT) -type d -empty -delete && \
|
||||
cd $(LIB) && make -f ../Makefile.libexpat && mv *.snap ../ && \
|
||||
cd $(DEV) && make -f ../Makefile.expat-dev && mv *.snap ../
|
||||
cd $(LIB) && make -f ../Makefile.libexpat && mv *.slp ../ && \
|
||||
cd $(DEV) && make -f ../Makefile.expat-dev && mv *.slp ../
|
||||
|
||||
test: $(ROOT)
|
||||
@cd $(SRCDIR) && make check
|
||||
@@ -90,7 +92,7 @@ clean:
|
||||
@rm -rvf $(ROOT) \
|
||||
$(DEV) \
|
||||
$(LIB) \
|
||||
$(SNAPINFO) \
|
||||
$(SLINFO) \
|
||||
$(MANIFEST) \
|
||||
$(FILES) \
|
||||
$(SRCDIR)
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
# GNU General Public License for more details.
|
||||
|
||||
DEPENDS = libexpat
|
||||
REPO = dev
|
||||
BRIEF = 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.
|
||||
|
||||
DEPENDS = glibc
|
||||
REPO = main
|
||||
BRIEF = 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