-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile
67 lines (54 loc) · 1.85 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2016 Joyent, Inc.
#
VER = wget-1.18
include ../Makefile.defs
UNPACK_SENTINEL = configure.ac
AUTOCONF_ENV += \
LD_OPTIONS="-M $(BASE)/mapfile_noexstk" \
PERL=/usr/perl5/5.12/bin/perl \
POD2MAN=/usr/perl5/5.12/bin/pod2man \
DESTDIR="$(DESTDIR)" \
CTFMERGE="$(CTFMERGE)" \
CTFCONVERT="$(CTFCONVERT)" \
ALTCTFCONVERT="$(ALTCTFCONVERT)"
AUTOCONF_OPTS += \
--sysconfdir=/etc \
--with-ssl=openssl \
--infodir=/usr/share/info \
--disable-rpath
CFLAGS += -O2 -gdwarf-2 \
-fno-inline-functions \
-fno-inline-functions-called-once \
-fno-inline-small-functions
CTF_PROGRAMS = /usr/bin/wget
PATCHES = Patches/*
include ../Makefile.targ
all: all_autoconf
#
# This version of the wget configure.ac script requires m4 macros from
# pkg-config in order to correctly generate configure via autoreconf. Rather
# than require pkg-config be installed on the build machine, as we do not
# intend to _run_ it, we drop an appropriate copy of "pkg.m4" in the right
# place here.
#
$(VER.32)/configure: $(VER.32)/configure.ac
test -f $(VER.32)/m4/pkg.m4 || cp pkg.m4 $(VER.32)/m4/pkg.m4
cd $(VER.32) && env - PATH=$(PATH) $(AUTOCONF_ENV) autoreconf
install: all
mkdir -p $(DESTDIR)/usr/bin
ginstall -m 0555 $(BASE)/$(VER.32)/src/wget $(DESTDIR)/usr/bin/wget
mkdir -p $(DESTDIR)/usr/share/man/man1
ginstall -m 0444 $(BASE)/$(VER.32)/doc/wget.1 \
$(DESTDIR)/usr/share/man/man1
env - $(AUTOCONF_ENV) $(MAKE_CTF.32) $(CTF_PROGRAMS)