Debianize scripts
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: If168763ced7c37a5816cb10b9cd934dfac1dab87
diff --git a/debian/aml-amaudioutils-dev.install b/debian/aml-amaudioutils-dev.install
new file mode 100644
index 0000000..3523f34
--- /dev/null
+++ b/debian/aml-amaudioutils-dev.install
@@ -0,0 +1,6 @@
+include/audio_utils/*.h /usr/include/audio_utils/
+include/IpcBuffer/*.h /usr/include/IpcBuffer/
+include/cutils/bitops.h /usr/include/cutils/
+include/cutils/list.h /usr/include/cutils/
+include/cutils/str_parms.h /usr/include/cutils/
+include/cutils/native_handle.h /usr/include/cutils/
diff --git a/debian/aml-amaudioutils.install b/debian/aml-amaudioutils.install
new file mode 100644
index 0000000..6dc0ff1
--- /dev/null
+++ b/debian/aml-amaudioutils.install
@@ -0,0 +1,2 @@
+libamaudioutils.so /usr/lib/${DEB_HOST_MULTIARCH}/
+libcutils.so /usr/lib/${DEB_HOST_MULTIARCH}/
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a36944c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+aml-amaudioutils (2024.09) stable; urgency=medium
+
+ * Initial release. (Closes: #XXXXXX)
+
+ -- Dongjin Kim <tobetter@gmail.com> Tue, 21 Nov 2023 22:17:12 +0000
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..15c1d26
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: aml-amaudioutils
+Priority: optional
+Maintainer: Dongjin Kim <tobetter@gmail.com>
+Uploaders: Dongjin Kim <tobetter@gmail.com>
+Build-Depends: debhelper-compat (= 13), pkg-config,
+ libboost1.74-dev,
+ liblog1-dev
+Standards-Version: 4.6.0
+
+Package: aml-amaudioutils
+Section: misc
+Architecture: linux-any
+Depends: ${misc:Depends}
+Multi-Arch: same
+Description: ...
+
+Package: aml-amaudioutils-dev
+Section: misc
+Architecture: linux-any
+Depends:
+Description: ...
diff --git a/debian/not-installed b/debian/not-installed
new file mode 100644
index 0000000..5b0644d
--- /dev/null
+++ b/debian/not-installed
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/*.la
diff --git a/debian/patches/0001-Fix-compile-error.patch b/debian/patches/0001-Fix-compile-error.patch
new file mode 100644
index 0000000..b93a05c
--- /dev/null
+++ b/debian/patches/0001-Fix-compile-error.patch
@@ -0,0 +1,17 @@
+diff --git a/Makefile b/Makefile
+index b8c1f5d..056bbf9 100644
+--- a/Makefile
++++ b/Makefile
+@@ -13,9 +13,9 @@ CUTILS_SRCPPS = src/cutils/hashmap.cpp \
+
+ #Allow to configure NEON support of SPEEX
+ TOOLCHAIN_NEON_SUPPORT ?= y
+-ifeq ($(TOOLCHAIN_NEON_SUPPORT),y)
+-TOOLCHAIN_NEON_FLAGS = -mfpu=neon -D_USE_NEON
+-endif
++#ifeq ($(TOOLCHAIN_NEON_SUPPORT),y)
++#TOOLCHAIN_NEON_FLAGS = -mfpu=neon -D_USE_NEON
++#endif
+
+ CFLAGS+=-fPIC -O2 -I./include -I./include/speex -I./include/IpcBuffer -I. -I./src $(TOOLCHAIN_NEON_FLAGS) -DNDEBUG -DFIXED_POINT -DRESAMPLE_FORCE_FULL_SINC_TABLE -DEXPORT=
+ LDFLAGS+=-llog -ldl -lrt -lpthread -lstdc++
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6f21187
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-compile-error.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b6079ca
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+override_dh_auto_clean:
+ true
+
+override_dh_auto_configure:
+ true
+
+override_dh_auto_build:
+ make
+
+override_dh_auto_install:
+ true
+
+%:
+ dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)