Skip to content

Commit

Permalink
Add advanced_opts set when using -DGPxj flags
Browse files Browse the repository at this point in the history
  • Loading branch information
bartus committed Jul 31, 2021
1 parent 0d0d22f commit 3190e4b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ pkgbase = pcompress-git
source = http://wavpack.com/wavpack-4.70.0.tar.bz2
source = openssl.patch::https://github.com/moinakg/pcompress/pull/55.patch
source = gcc11.patch::https://github.com/moinakg/pcompress/pull/56.patch
source = advance_opts.patch
md5sums = SKIP
md5sums = 4c0186ef0dc8367ce5cd7cc0f398b714
md5sums = 22f1a4e1bf373c6f6b86c49f70ee3be3
md5sums = 16a91b9f94f56a4981d18aa6c7bfdfdd
md5sums = a0ef3e2d8cbcab5582aaa23b433339fc

pkgname = pcompress-git
8 changes: 5 additions & 3 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ makedepends=('git' 'yasm')
source=("git+https://github.com/moinakg/${_pkgname}.git"
"http://wavpack.com/wavpack-${_wavpack_ver}.tar.bz2"
"openssl.patch::https://github.com/moinakg/pcompress/pull/55.patch"
"gcc11.patch::https://github.com/moinakg/pcompress/pull/56.patch")
"gcc11.patch::https://github.com/moinakg/pcompress/pull/56.patch"
"advance_opts.patch")
md5sums=('SKIP'
'4c0186ef0dc8367ce5cd7cc0f398b714'
'22f1a4e1bf373c6f6b86c49f70ee3be3'
'16a91b9f94f56a4981d18aa6c7bfdfdd')
'16a91b9f94f56a4981d18aa6c7bfdfdd'
'a0ef3e2d8cbcab5582aaa23b433339fc')

pkgver() {
cd "$_pkgname"
Expand All @@ -28,7 +30,7 @@ pkgver() {

prepare() {
cd "$_pkgname"
git apply -v ${srcdir}/{openssl,gcc11}.patch
git apply -v ${srcdir}/{openssl,gcc11,advance_opts}.patch
}

build() {
Expand Down
15 changes: 15 additions & 0 deletions advance_opts.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/pcompress.c b/pcompress.c
index 3d22b9b..95884e2 100644
--- a/pcompress.c
+++ b/pcompress.c
@@ -3693,6 +3693,10 @@ init_pc_context(pc_ctx_t *pctx, int argc, char *argv[])
pctx->preprocess_mode = 1;
pctx->enable_analyzer = 1;
}
+ init_filters(&ff);
+ pctx->enable_packjpg = ff.enable_packjpg;
+ pctx->enable_wavpack = ff.enable_wavpack;
+ pctx->exe_preprocess = ff.exe_preprocess;
} else if (pctx->do_uncompress) {
struct filter_flags ff;
/*

0 comments on commit 3190e4b

Please sign in to comment.