Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
--- /dev/null
+--- a/Makefile
++++ b/Makefile
+@@ -13,18 +13,13 @@
+ # files in the program, then also delete it here.
+
+ VERSION=1.3
+-CFLAGS+=-Wall -O2 -DVERSION=\"$(VERSION)\"
+-LDFLAGS=
++CFLAGS+=-Wall
++CPPFLAGS+=-DVERSION=\"$(VERSION)\"
+
+ OBJS=setpwc.o
+
+ all: setpwc
+
+-setpwc: $(OBJS)
+- $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o setpwc
+- #
+- # Oh, blatant plug: http://keetweej.vanheusden.com/wishlist.html
+-
+ install: setpwc
+ cp setpwc /usr/bin
+
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
+EAPI=7
+
inherit toolchain-funcs
DESCRIPTION="Control various aspects of Philips (and compatible) webcams"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ppc x86"
-IUSE=""
-RDEPEND=""
DEPEND="sys-kernel/linux-headers"
-src_prepare() {
- sed -i -e '/CFLAGS/s: -O2::' Makefile || die
-}
+PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch )
-src_compile() {
+src_configure() {
tc-export CC
- emake LDFLAGS="${LDFLAGS}"
}
src_install() {