2 Commits

Author SHA1 Message Date
Jay Larson
9a9f0f30b8 Moved to slp format 2020-08-23 08:47:01 -05:00
Jay Larson
2af3bcb841 Removed dependency on self 2018-05-30 17:22:52 -05:00
4 changed files with 11 additions and 11 deletions

View File

@@ -9,7 +9,7 @@
# GNU General Public License for more details. # GNU General Public License for more details.
export ARCH = x86_64 export ARCH = x86_64
export DEPENDS = db,glibc,libgcc,libstdc++ export DEPENDS = glibc,libgcc,libstdc++
export BUILDDEPS = export BUILDDEPS =
export SRCPKG = $(PACKAGE) export SRCPKG = $(PACKAGE)
export URL = https://www.oracle.com/database/berkeley-db/index.html export URL = https://www.oracle.com/database/berkeley-db/index.html
@@ -17,16 +17,16 @@ REPO = main
BRIEF = Berkeley DB database libraries BRIEF = Berkeley DB database libraries
DESC = Berkeley DB is a family of embedded key-value database libraries \ DESC = Berkeley DB is a family of embedded key-value database libraries \
providing scalable high-performance data management services to applications. providing scalable high-performance data management services to applications.
SNAPVER = 1 SLVER = 3
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)
include /usr/share/snap/Makefile.snaplinux include /usr/share/sl/Makefile.snaplinux
DEV := $(PWD)/$(PACKAGE)-dev DEV := $(PWD)/$(PACKAGE)-dev
DEVROOT := $(DEV)/ROOT DEVROOT := $(DEV)/ROOT
@@ -74,9 +74,9 @@ $(ROOT): $(SRCDIR)/build_unix/db_verify.o
@cd $(SRCDIR)/build_unix && make docdir=/usr/share/doc/$(PACKAGE) \ @cd $(SRCDIR)/build_unix && make docdir=/usr/share/doc/$(PACKAGE) \
install DESTDIR=$(ROOT) && \ install DESTDIR=$(ROOT) && \
install -v -d $(DEV)/SNAP && \ install -v -d $(DEV)/SL && \
install -v -d $(DEVROOT) && \ install -v -d $(DEVROOT) && \
install -v -d $(DOC)/SNAP && \ install -v -d $(DOC)/SL && \
install -v -d -m 0755 $(DOCROOT)/usr/share && \ install -v -d -m 0755 $(DOCROOT)/usr/share && \
for file in `find $(ROOT)| \ for file in `find $(ROOT)| \
egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$|\.la$$|\.m4$$|\.pc$$'`; do \ egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$|\.la$$|\.m4$$|\.pc$$'`; do \
@@ -86,14 +86,14 @@ $(ROOT): $(SRCDIR)/build_unix/db_verify.o
done done
@mv -v $(ROOT)/usr/share/doc $(DOCROOT)/usr/share/doc && \ @mv -v $(ROOT)/usr/share/doc $(DOCROOT)/usr/share/doc && \
find $(ROOT) -type d -empty -delete && \ find $(ROOT) -type d -empty -delete && \
cd $(DEV) && make -f ../Makefile.$(PACKAGE)-dev && mv *.snap ../ && \ cd $(DEV) && make -f ../Makefile.$(PACKAGE)-dev && mv *.slp ../ && \
cd $(DOC) && make -f ../Makefile.$(PACKAGE)-doc && mv *.snap ../ cd $(DOC) && make -f ../Makefile.$(PACKAGE)-doc && mv *.slp ../
clean: clean:
@rm -rvf $(ROOT) \ @rm -rvf $(ROOT) \
$(DEV) \ $(DEV) \
$(DOC) \ $(DOC) \
$(SNAPINFO) \ $(SLINFO) \
$(MANIFEST) \ $(MANIFEST) \
$(FILES) \ $(FILES) \
$(SRCDIR) $(SRCDIR)

View File

@@ -13,4 +13,4 @@ REPO = dev
BRIEF = Development files for db BRIEF = Development files for db
DESC = Development files for db DESC = Development files for db
include /usr/share/snap/Makefile.snaplinux include /usr/share/sl/Makefile.snaplinux

View File

@@ -13,4 +13,4 @@ REPO = dev
BRIEF = Documentation for db BRIEF = Documentation for db
DESC = Documentation for db DESC = Documentation for db
include /usr/share/snap/Makefile.snaplinux include /usr/share/sl/Makefile.snaplinux