Debianize scripts
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: If168763ced7c37a5816cb10b9cd934dfac1dab87
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..89b1900
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,11 @@
+gst-plugin-video-sink (2025.01) stable; urgency=medium
+
+ * Apply Amlogic BSP (v2025.01)
+
+ -- Dongjin Kim <tobetter@gmail.com> Mon, 20 Jan 2025 10:11:46 +0000
+
+gst-plugin-video-sink (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..7b8416f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: gst-plugin-video-sink
+Priority: optional
+Maintainer: Dongjin Kim <tobetter@gmail.com>
+Uploaders: Dongjin Kim <tobetter@gmail.com>
+Build-Depends: debhelper-compat (= 13), pkg-config,
+ aml-mediahal-sdk,
+ aml-mediahal-sdk-dev,
+ gstdrmbufferpool,
+ gstdrmbufferpool-dev,
+ libdrm-meson-dev,
+ libge2d-dev,
+ libgstreamer-plugins-base1.0-dev,
+ libgstreamer1.0-dev
+Standards-Version: 4.6.0
+
+Package: gst-plugin-video-sink
+Section: misc
+Architecture: linux-any
+Depends:
+ ${misc:Depends}
+Multi-Arch: same
+Description: ...
+
+Package: gst-plugin-video-sink-dev
+Section: misc
+Architecture: linux-any
+Depends:
+ gst-plugin-video-sink
+Description: ...
diff --git a/debian/gst-plugin-video-sink-dev.install b/debian/gst-plugin-video-sink-dev.install
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/gst-plugin-video-sink-dev.install
diff --git a/debian/gst-plugin-video-sink.install b/debian/gst-plugin-video-sink.install
new file mode 100644
index 0000000..9b97323
--- /dev/null
+++ b/debian/gst-plugin-video-sink.install
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/gstreamer-1.0/libgstamlvideosink.so
diff --git a/debian/not-installed b/debian/not-installed
new file mode 100644
index 0000000..62ed0b0
--- /dev/null
+++ b/debian/not-installed
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/gstreamer-1.0/*.la
diff --git a/debian/patches/0001-Fix-compiler-error.diff b/debian/patches/0001-Fix-compiler-error.diff
new file mode 100644
index 0000000..20e3b0d
--- /dev/null
+++ b/debian/patches/0001-Fix-compiler-error.diff
@@ -0,0 +1,35 @@
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 8aa2125..3757a77 100755
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -16,8 +16,8 @@ plugin_LTLIBRARIES = libgstamlvideosink.la
+ # sources used to compile this plug-in
+ libgstamlvideosink_la_SOURCES = gstamlvideosink.c ge2drotation.c
+ # compiler and linker flags used to compile this plugin, set in configure.ac
+-libgstamlvideosink_la_CFLAGS = $(GST_CFLAGS)
+-libgstamlvideosink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
++libgstamlvideosink_la_CFLAGS = $(GST_CFLAGS) $(DRM_CFLAGS)
++libgstamlvideosink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(DRM_LDFLAGS)
+
+ libgstamlvideosink_la_LIBADD = $(GST_LIBS)
+ libgstamlvideosink_la_LIBADD += -L$(TARGET_DIR)/usr/lib -lmediahal_videorender -lge2d
+diff --git a/src/ge2drotation.c b/src/ge2drotation.c
+index c6e3964..a337ec2 100644
+--- a/src/ge2drotation.c
++++ b/src/ge2drotation.c
+@@ -23,12 +23,12 @@
+ #include <stdbool.h>
+ #include <sys/utsname.h>
+ #include "resourcemanage.h"
+-#include "meson_drm.h"
++#include <libdrm_meson/meson_drm.h>
+ #include <errno.h>
+ #include <sys/mman.h>
+ #include <sys/ioctl.h>
+ #include <stdio.h>
+-#include <drm/drm_fourcc.h>
++#include <libdrm_meson/drm_fourcc.h>
+ #include "ge2drotation.h"
+ //#include <gst/gstdrmbufferpool.h>
+ #include <gst/allocators/gstdmabuf.h>
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e70a9da
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-compiler-error.diff
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7f3ab4e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+#override_dh_auto_configure:
+# dh_auto_configure -- --enable-mediasync=yes
+
+#override_dh_auto_build:
+# dh_auto_build --sourcedirectory=libs/gst-plugin-video-sink
+
+%:
+ 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)