Skip to content
Permalink
Newer
Older
100755 101 lines (80 sloc) 2.95 KB
1
#!/usr/bin/env beesh
2
3
# BEE_VERSION js-52.2.1gnome1-0
4
5
## this file was created by bee init and should be executed to build a
6
## bee-package. (Additional hints are located at the end of this file.)
7
8
###############################################################################
9
## The source URL(s) define the location of the sources that will be
10
## downloaded. Version variables may be used to simplify reuse of this bee-file.
11
12
SRCURL[0]="http://ftp.gnome.org/pub/gnome/teams/releng/tarballs-needing-help/mozjs/mozjs-${PKGVERSION}.tar.gz"
13
14
###############################################################################
15
## Add URLs/pathes to patch files to the PATCHURL array.
16
## The sources will be patched in the order of the array.
17
18
# PATCHURL+=()
19
20
###############################################################################
21
## Add filename patterns to the EXCLUDE array of files that should not
22
## be added to you package but may be present in the image directory.
23
24
# EXCLUDE+=()
25
26
###############################################################################
27
## Uncomment the next statement, if the software may not be able to be built
28
## outside the source directory and needs to be built inside the source
29
## directory.
30
31
# build_in_sourcedir
32
33
###############################################################################
34
## bee cannot detect buildtypes specified in subdirectories.
35
## Sometimes packages "hide" the real sources in a subdirectory named
36
## 'src' or 'cmake' or ..
37
## use 'sourcesubdir_append' to specify this directory if known.
38
39
sourcesubdir_append js/src
40
41
BEE_BUILDTYPE=autotools
42
43
###############################################################################
44
## Change the default (auto-detected) steps to
45
## extract, patch, configure/setup, build and install the software.
46
## Make sure the mee_install function does install everything to the
47
## image directory "${D}"
48
49
#mee_extract() {
50
# bee_extract "${@}"
51
#}
52
53
#mee_patch() {
54
# bee_patch "${@}"
55
#}
56
57
mee_configure() {
58
bee_configure \
59
--with-intl-api \
60
--with-system-zlib \
61
--with-system-nspr \
62
--with-system-icu \
63
--enable-threadsafe \
64
--enable-readline
65
}
66
67
#mee_build() {
68
# bee_build
69
#}
70
71
#mee_install() {
72
# bee_install
73
#}
74
## by default this may be 'make install DESTDIR="${D}"'
75
April 3, 2018 16:51
76
mee_install_post() {
77
for link in `find ${D}/usr/include/mozjs-38 -type l`; do
78
header=`readlink $link`
79
rm -f $link
80
cp -pv $header $link
81
chmod 644 $link
82
done
83
}
84
85
###############################################################################
86
##
87
## Additional hints:
88
##
89
## The name of this bee-file should follow the following naming convention:
90
## pkgname-pkgversion-pkgrevision.bee
91
##
92
## You may remove all comments as long as SRCURL[0] is set.
93
##
94
## Everything in this file will be executed in a bash environment.
95
##
96
## Build the package by executing
97
## './pkg-version-N.bee' or
98
## 'beesh ./pkg-version-N.bee'
99
##
100
## see http://beezinga.org/
101
##