build: add pkgsrc rule
This commit is contained in:
parent
4d13fcf481
commit
f1b878cafa
21
Makefile
21
Makefile
@ -207,7 +207,8 @@ docopen: out/doc/api/all.html
|
|||||||
docclean:
|
docclean:
|
||||||
-rm -rf out/doc
|
-rm -rf out/doc
|
||||||
|
|
||||||
VERSION=v$(shell $(PYTHON) tools/getnodeversion.py)
|
RAWVER=$(shell $(PYTHON) tools/getnodeversion.py)
|
||||||
|
VERSION=v$(RAWVER)
|
||||||
RELEASE=$(shell $(PYTHON) tools/getnodeisrelease.py)
|
RELEASE=$(shell $(PYTHON) tools/getnodeisrelease.py)
|
||||||
PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]')
|
PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]')
|
||||||
ifeq ($(findstring x86_64,$(shell uname -m)),x86_64)
|
ifeq ($(findstring x86_64,$(shell uname -m)),x86_64)
|
||||||
@ -235,6 +236,11 @@ BINARYTAR=$(BINARYNAME).tar.gz
|
|||||||
PKG=out/$(TARNAME).pkg
|
PKG=out/$(TARNAME).pkg
|
||||||
packagemaker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
|
packagemaker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
|
||||||
|
|
||||||
|
PKGSRC=nodejs-$(DESTCPU)-$(RAWVER).tgz
|
||||||
|
ifdef NIGHTLY
|
||||||
|
PKGSRC=nodejs-$(DESTCPU)-$(RAWVER)-$(TAG).tgz
|
||||||
|
endif
|
||||||
|
|
||||||
dist: doc $(TARBALL) $(PKG)
|
dist: doc $(TARBALL) $(PKG)
|
||||||
|
|
||||||
PKGDIR=out/dist-osx
|
PKGDIR=out/dist-osx
|
||||||
@ -312,6 +318,19 @@ $(BINARYTAR): release-only
|
|||||||
|
|
||||||
binary: $(BINARYTAR)
|
binary: $(BINARYTAR)
|
||||||
|
|
||||||
|
$(PKGSRC): release-only
|
||||||
|
rm -rf dist out
|
||||||
|
$(PYTHON) configure --prefix=/ --without-snapshot \
|
||||||
|
--dest-cpu=$(DESTCPU) --tag=$(TAG) $(CONFIG_FLAGS)
|
||||||
|
$(MAKE) install DESTDIR=dist
|
||||||
|
(cd dist; find * -type f | sort) > packlist
|
||||||
|
pkg_info -X pkg_install | \
|
||||||
|
egrep '^(MACHINE_ARCH|OPSYS|OS_VERSION|PKGTOOLS_VERSION)' > build-info
|
||||||
|
pkg_create -B build-info -c tools/pkgsrc/comment -d tools/pkgsrc/description \
|
||||||
|
-f packlist -I /opt/local -p dist -U $(PKGSRC)
|
||||||
|
|
||||||
|
pkgsrc: $(PKGSRC)
|
||||||
|
|
||||||
dist-upload: $(TARBALL) $(PKG)
|
dist-upload: $(TARBALL) $(PKG)
|
||||||
ssh node@nodejs.org mkdir -p web/nodejs.org/dist/$(VERSION)
|
ssh node@nodejs.org mkdir -p web/nodejs.org/dist/$(VERSION)
|
||||||
scp $(TARBALL) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARBALL)
|
scp $(TARBALL) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARBALL)
|
||||||
|
1
tools/pkgsrc/comment
Normal file
1
tools/pkgsrc/comment
Normal file
@ -0,0 +1 @@
|
|||||||
|
V8 JavaScript for clients and servers (nodejs.org package)
|
7
tools/pkgsrc/description
Normal file
7
tools/pkgsrc/description
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Node.js is an evented I/O framework for the V8 JavaScript engine. It is
|
||||||
|
intended for writing scalable network programs such as web servers.
|
||||||
|
|
||||||
|
Packaged by nodejs.org
|
||||||
|
|
||||||
|
Homepage:
|
||||||
|
http://nodejs.org/
|
Loading…
x
Reference in New Issue
Block a user