Commit 777d5c85 authored by anton's avatar anton Committed by frainz
Browse files

media-video/bmusb: add patch to respect cflags/ldflags

Package-Manager: Portage-3.0.20, Repoman-3.0.2
parent 9fb1d466
AUX bmusb-0.7.4-makefile.patch 997 BLAKE2B c109ecc91db70e65956d7587e3a3efff70970a84921414b31f1eae6fd32ebfaa0fe94dbaaeba9882edaf713feabeb48fc2f028469d91438f29ab2be0f6cda018 SHA512 d7152320c7deb49c486557d3098229c53f71cca1e393dfe8859a974bb1ed599a5de6f9a64d72063addb9e5abaefffdfb64e9bc437a8253722525021ba5368cf6
EBUILD bmusb-0.7.6.ebuild 592 BLAKE2B c17a34e5afb9aa1f80b03001cb8f1a46d439338a6595fb2fe16f42d28118b8f593e51ac7591a88aa2c9b674855ac6a0baca6c8bbe49f23981309dec235806614 SHA512 91a9714ed3ee1c4b673cd0165333e0b0d91b9f13a3cca86c664ec56505acdd64440ad27e4248db81c4695c3d8731a95b54b5dc6a2c54a7f82db16da4e5418444
AUX bmusb-0.7.6-respect-cflags-ldflags.patch 510 BLAKE2B 82f46b2eb16710409ddecb2e7d01c47f6270bea2f80fabbf88a2111ba1de0ee22bd4ceedd1c47f04d12bc6e4defb59b1c6bb1433fd1b67244dd28e614c71b192 SHA512 86ccc0cc22047fabf550f6f688fcfe2370c71ca301e87ca3dd5b35998c925ec3da390e1c452c96f0cb24d70fcaccb655025ddf962fd4cb7c35cd4ba435e46d74
EBUILD bmusb-0.7.6.ebuild 609 BLAKE2B d46578cfde1d21d2584fce7a3482a498227e382220dc109a265ee5a7bd67d27af319daddd4088f8f96c3992f4347ce0a30ec62a33cf4df6c330ebdce6ed4a04d SHA512 715f2dceaa975bbf2888655d85c5a938128d12d3f7b7e65bb6cdd7ed09040f2bc994c2792719343e6fe3640200a059787cf969106f030226d45994de952f3990
MISC metadata.xml 216 BLAKE2B 98b55d77f4255ca20a41fef0a66299cf6baec1df788810e210ecad6a6352c642ca652c2d404e24ff181f3c34cee7ef750d7985d7826e9c6ee7765dd657dc765c SHA512 6eacf7815e19e9e770cad73069181bdd082df3996c1cba2c1eead43fff8d001390152049f0f50d8bab7b3554873918f2ffeb972bbd2698243e5a0ffd33a6af1b
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
......@@ -19,10 +19,10 @@ IUSE=""
DEPEND=">=virtual/libusb-1-r2"
RDEPEND="${DEPEND}"
#src_prepare() {
# eapply_user
# eapply "${FILESDIR}/${P}-makefile.patch"
#}
src_prepare() {
eapply_user
eapply "${FILESDIR}/bmusb-0.7.6-respect-cflags-ldflags.patch"
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" install
......
diff --git a/Makefile b/Makefile
index 989ed8c..e387695 100644
--- a/Makefile
+++ b/Makefile
@@ -32,12 +32,12 @@ clean:
install: all
$(INSTALL) -m 755 -o root -g root -d \
- $(DESTDIR)$(PREFIX)/lib \
- $(DESTDIR)$(PREFIX)/lib/pkgconfig \
+ $(DESTDIR)$(PREFIX)/lib64 \
+ $(DESTDIR)$(PREFIX)/lib64/pkgconfig \
$(DESTDIR)$(PREFIX)/include/bmusb
- $(INSTALL) -m 755 -o root -g root $(LIB) $(SOLIB) $(DESTDIR)$(PREFIX)/lib
- $(LN) -sf $(SOLIB) $(DESTDIR)$(PREFIX)/lib/$(SONAME)
- $(LN) -sf $(SOLIB) $(DESTDIR)$(PREFIX)/lib/$(SODEV)
+ $(INSTALL) -m 755 -o root -g root $(LIB) $(SOLIB) $(DESTDIR)$(PREFIX)/lib64
+ $(LN) -sf $(SOLIB) $(DESTDIR)$(PREFIX)/lib64/$(SONAME)
+ $(LN) -sf $(SOLIB) $(DESTDIR)$(PREFIX)/lib64/$(SODEV)
$(INSTALL) -m 755 -o root -g root bmusb/bmusb.h bmusb/fake_capture.h $(DESTDIR)$(PREFIX)/include/bmusb
- $(INSTALL) -m 644 -o root -g root bmusb.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig
+ $(INSTALL) -m 644 -o root -g root bmusb.pc $(DESTDIR)$(PREFIX)/lib64/pkgconfig
diff --git a/Makefile b/Makefile
index 5160e83..c962572 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
PKG_CONFIG ?= pkg-config
-CXXFLAGS := -std=gnu++14 -O2 -Wall -I. -g $(shell $(PKG_CONFIG) libusb-1.0 --cflags) -pthread
-LDFLAGS := $(shell $(PKG_CONFIG) libusb-1.0 --libs) -pthread
+CXXFLAGS := -std=gnu++14 -O2 -Wall -I. -g $(shell $(PKG_CONFIG) libusb-1.0 --cflags) -pthread $(CXXFLAGS)
+LDFLAGS := $(shell $(PKG_CONFIG) libusb-1.0 --libs) -pthread $(LDFLAGS)
AR := ar
LN := ln
RANLIB := ranlib
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment