source: trunk/make/nzbget/nzbget.mk @ 14411

Letzte Änderung dieser Datei seit 14411 war 14411, erstellt von er13 vor 3 Monaten

package Makefiles:

  • use PKG_ADD_EXTRA_FLAGS macro introduced in r14374 as much as possible
Dateigröße: 1.6 KB
Zeile 
1$(call PKG_INIT_BIN, 14.1)
2$(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.gz
3$(PKG)_SOURCE_SHA1:=671c0d0b554643e1b58665004c65519a330766db
4$(PKG)_SITE:=@SF/$(pkg)
5
6$(PKG)_PATCH_POST_CMDS += $(call PKG_ADD_EXTRA_FLAGS,(CXX|LD)FLAGS)
7
8$(PKG)_BINARY:=$($(PKG)_DIR)/$(pkg)
9$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/bin/$(pkg)
10
11$(PKG)_DEPENDS_ON += libxml2 $(STDCXXLIB) zlib
12$(PKG)_DEPENDS_ON += $(if $(FREETZ_PACKAGE_NZBGET_WITH_CURSES),ncurses)
13$(PKG)_DEPENDS_ON += $(if $(FREETZ_PACKAGE_NZBGET_WITH_TLS),openssl)
14
15$(PKG)_REBUILD_SUBOPTS += FREETZ_STDCXXLIB
16$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_NZBGET_WITH_CURSES
17$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_NZBGET_WITH_TLS
18$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_NZBGET_DISABLE_PAR_CHECK
19$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_NZBGET_STATIC
20
21$(PKG)_CONFIGURE_ENV += LIBPREF="$(TARGET_TOOLCHAIN_STAGING_DIR)/usr"
22
23$(PKG)_CONFIGURE_OPTIONS += $(if $(FREETZ_PACKAGE_NZBGET_WITH_CURSES),,--disable-curses)
24$(PKG)_CONFIGURE_OPTIONS += $(if $(FREETZ_PACKAGE_NZBGET_WITH_TLS),--with-tlslib=OpenSSL,--disable-tls)
25$(PKG)_CONFIGURE_OPTIONS += $(if $(FREETZ_PACKAGE_NZBGET_DISABLE_PAR_CHECK),--disable-parcheck,)
26
27$(PKG_SOURCE_DOWNLOAD)
28$(PKG_UNPACKED)
29$(PKG_CONFIGURED_CONFIGURE)
30
31$($(PKG)_BINARY): $(NZBGET_DIR)/.configured
32    $(SUBMAKE) -C $(NZBGET_DIR) \
33        EXTRA_CXXFLAGS="-fpermissive" \
34        EXTRA_LDFLAGS="$(if $(FREETZ_PACKAGE_NZBGET_STATIC),-static)"
35
36$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
37    $(INSTALL_BINARY_STRIP)
38
39$(pkg):
40
41$(pkg)-precompiled: $($(PKG)_TARGET_BINARY)
42
43$(pkg)-clean:
44    -$(SUBMAKE) -C $(NZBGET_DIR) clean
45    $(RM) $(NZBGET_DIR)/.configured
46
47$(pkg)-uninstall:
48    $(RM) $(NZBGET_TARGET_BINARY)
49
50$(PKG_FINISH)
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.