Change-Id: I27fc4abd0c87f7949bbf8ea06e69573389ac88af
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
#set(CMAKE_VERBOSE_MAKEFILE ON)
#comment or remove the above line before release
+if ("${ARCH}" MATCHES "aarch64")
+MESSAGE(${ARCH})
+set(LIB_SUFFIX "64")
+else ("${ARCH}" MATCHES "aarch64")
+MESSAGE(${ARCH})
+endif ("${ARCH}" MATCHES "aarch64")
+
add_definitions (-DZINT_VERSION=\"${ZINT_VERSION}\" -Wno-unused-variable -Wall )
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
Name: zint
Version: 2.4.3
-Release: 10
+Release: 11
Summary: Barcode generator library
License: BSD-2.0
URL: http://www.zint.org.uk
%prep
%setup -q
-
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+
+%ifarch aarch64 x86_64
+ARCH=aarch64
+%else
+ARCH=arm
+%endif
+
+cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=${ARCH}
make VERBOSE=1