-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathrules
More file actions
executable file
·69 lines (54 loc) · 1.67 KB
/
rules
File metadata and controls
executable file
·69 lines (54 loc) · 1.67 KB
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
68
69
#!/usr/bin/make -f
PREFIX=$(BUILDPREFIX)
clean:
dh_testdir
dh_testroot
rm -f *-stamp
dh_clean
# AFAIK it is either i686-w64-mingw32 or x86_64-w64-mingw32
ifeq ($(DEB_HOST_GNU_TYPE),i686-w64-mingw32)
TARGET=mingw
CFENGINE_DIR=C:/Program Files/Cfengine
else
TARGET=mingw64
CFENGINE_DIR=C:/Program Files (x86)/Cfengine
endif
build: build-stamp
build-stamp:
dh_testdir
patch -p1 < $(CURDIR)/0001-Explicitly-define-SIO_UDP_NETRESET-for-MinGW-builds.patch
# Removed "no-psk" from the options, mingw builds breaks with it
CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- ./Configure \
$(TARGET) $$(<config_flags_$$ROLE.txt) \
--prefix=$(PREFIX) --libdir=lib -DOPENSSL_NO_LOCALE
make CPPFLAGS=-DOPENSSLDIR="\"\\\"$(CFENGINE_DIR)/ssl\\\"\"" ### build_crypto build_ssl libcrypto.dll.a libssl.dll.a
touch build-stamp
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install_sw DESTDIR=$(CURDIR)/debian/tmp
$(MAKE) install_ssldirs DESTDIR=$(CURDIR)/debian/tmp
mkdir -p $(CURDIR)/debian/tmp$(PREFIX)/bin
mkdir -p $(CURDIR)/debian/tmp$(PREFIX)/lib
mkdir -p $(CURDIR)/debian/tmp$(PREFIX)/include
cp libcrypto*.dll $(CURDIR)/debian/tmp$(PREFIX)/bin
cp libcrypto.dll.a $(CURDIR)/debian/tmp$(PREFIX)/lib
cp libssl*.dll $(CURDIR)/debian/tmp$(PREFIX)/bin
cp libssl.dll.a $(CURDIR)/debian/tmp$(PREFIX)/lib
cp -RL include/openssl $(CURDIR)/debian/tmp$(PREFIX)/include
binary-indep: build install
binary-arch: build install
dh_testdir
dh_testroot
dh_install --sourcedir=debian/tmp
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure