source: trunk/make/isc-dhcp/isc-dhcp.mk @ 13648

Letzte Änderung dieser Datei seit 13648 war 13648, erstellt von er13 vor 22 Monaten

packages using autoreconf:

  • don't "swallow" autoreconf related errors, do fail if autoreconf fails
  • refs this thread
Dateigröße: 1.4 KB
Zeile 
1$(call PKG_INIT_BIN, 4.3.3-P1)
2$(PKG)_SOURCE:=dhcp-$($(PKG)_VERSION).tar.gz
3$(PKG)_SOURCE_SHA256:=c11e896dffa1bfbc49462965d3f6dec45534e34068603546d9a236f2aa669921
4$(PKG)_SITE:=http://ftp.isc.org/isc/dhcp/$($(PKG)_VERSION)
5$(PKG)_DIR:=$($(PKG)_SOURCE_DIR)/dhcp-$($(PKG)_VERSION)
6
7$(PKG)_BINARY:=$($(PKG)_DIR)/server/dhcpd
8$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/sbin/isc-dhcpd
9
10$(PKG)_DEPENDS_ON += bind
11
12$(PKG)_CONFIGURE_PRE_CMDS += $(AUTORECONF)
13$(PKG)_CONFIGURE_PRE_CMDS += $(call PKG_PREVENT_RPATH_HARDCODING,./configure)
14
15# add EXTRA_CFLAGS, EXTRA_LDFLAGS variables to all Makefile.in's
16$(PKG)_CONFIGURE_PRE_CMDS += $(SED) -i -r -e 's,^((C|LD)FLAGS)[ \t]*=[ \t]*@\1@,& $$$$(EXTRA_\1),' `find . -name Makefile.in`;
17
18$(PKG)_MAKE_OPTIONS := -C $($(PKG)_DIR)
19# reduce binary size by setting appropriate CFLAGS/LDFLAGS
20$(PKG)_MAKE_OPTIONS += EXTRA_CFLAGS="-ffunction-sections -fdata-sections"
21$(PKG)_MAKE_OPTIONS += EXTRA_LDFLAGS="-Wl,--gc-sections"
22
23$(PKG)_CONFIGURE_ENV += ac_cv_file__dev_random=yes
24$(PKG)_CONFIGURE_OPTIONS += --with-libbind="$(BIND_EXPORT_LIB_DIR)/usr"
25
26$(PKG_SOURCE_DOWNLOAD)
27$(PKG_UNPACKED)
28$(PKG_CONFIGURED_CONFIGURE)
29
30$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
31    $(SUBMAKE) $(ISC_DHCP_MAKE_OPTIONS)
32
33$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
34    $(INSTALL_BINARY_STRIP)
35
36$(pkg):
37
38$(pkg)-precompiled: $($(PKG)_TARGET_BINARY)
39
40$(pkg)-clean:
41    -$(SUBMAKE) $(ISC_DHCP_MAKE_OPTIONS) clean
42
43$(pkg)-uninstall:
44    $(RM) $(ISC_DHCP_TARGET_BINARY)
45
46$(PKG_FINISH)
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.