diff options
Diffstat (limited to 'package/nut/Makefile')
-rw-r--r-- | package/nut/Makefile | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/package/nut/Makefile b/package/nut/Makefile index e01d4dcc0..1239402b9 100644 --- a/package/nut/Makefile +++ b/package/nut/Makefile @@ -6,34 +6,30 @@ include ${TOPDIR}/rules.mk PKG_NAME:= nut PKG_VERSION:= 2.4.1 PKG_RELEASE:= 1 +PKG_MD5SUM:= 609ebaf2123fc7171d25a6c742dd7d66 +PKG_DESCR:= Network UPS Tools +PKG_SECTION:= sys ifneq (${ADK_PACKAGE_NUT_SSL},) +PKG_DEPENDS+= libopenssl PKG_BUILDDEP+= openssl endif ifneq (${ADK_PACKAGE_NUT_USB},) +PKG_DEPENDS+= libusb PKG_BUILDDEP+= libusb endif ifneq (${ADK_PACKAGE_NUT_SNMP},) +PKG_DEPENDS+= libnetsnmp PKG_BUILDDEP+= net-snmp endif -PKG_MD5SUM:= 609ebaf2123fc7171d25a6c742dd7d66 -PKG_DESCR:= Network UPS Tools -PKG_SECTION:= sys PKG_URL:= http://www.networkupstools.org PKG_SITES:= http://www.networkupstools.org/source/2.4/ -include ${TOPDIR}/mk/package.mk - -ifneq (${ADK_PACKAGE_NUT_SNMP},) -PKG_DEPENDS+= libnetsnmp -endif - -ifneq (${ADK_PACKAGE_NUT_USB},) -PKG_DEPENDS+= libusb -endif +PKG_FLAVOURS:= SSL SNMP USB +PKGFD_SSL:= enable SSL support +PKGFD_SNMP:= enable SNMP support +PKGFD_USB:= enable USB support -ifneq (${ADK_PACKAGE_NUT_SSL},) -PKG_DEPENDS+= libopenssl -endif +include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,NUT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) @@ -95,10 +91,12 @@ CONFIGURE_ARGS+= --with-ssl CONFIGURE_ENV+= CPPFLAGS="${TCPPFLAGS} ${TLDFLAGS}" MAKE_FLAGS+= SSL_CFLAGS="${TCPPFLAGS}" SSL_LDFLAGS="${TLDFLAGS} -lssl -lcrypto" endif + BUILD_STYLE:= auto ALL_TARGET:= all INSTALL_STYLE:= auto INSTALL_TARGET:= install + ifneq (${ADK_PACKAGE_NUT_USB},) ALL_TARGET+= usb INSTALL_TARGET+= install-usb |