diff options
author | Sam James <sam@gentoo.org> | 2021-04-19 07:54:25 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-19 20:10:16 +0100 |
commit | d0dc6343df597392a2fcc24adcb05849a852954f (patch) | |
tree | 83f512b11865819738b044fe4ff85dbdc3e19b6e /sys-apps/pcsc-slb-rf72-drv | |
parent | sci-visualization/spectromatic: respect PKG_CONFIG (diff) | |
download | gentoo-d0dc6343df597392a2fcc24adcb05849a852954f.tar.gz gentoo-d0dc6343df597392a2fcc24adcb05849a852954f.tar.bz2 gentoo-d0dc6343df597392a2fcc24adcb05849a852954f.zip |
sys-apps/pcsc-slb-rf72-drv: respect PKG_CONFIG
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/pcsc-slb-rf72-drv')
-rw-r--r-- | sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-openct.patch | 13 | ||||
-rw-r--r-- | sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild | 1 |
2 files changed, 3 insertions, 11 deletions
diff --git a/sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-openct.patch b/sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-openct.patch index c7ddb87a5a7f..03e0a9589c98 100644 --- a/sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-openct.patch +++ b/sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-openct.patch @@ -4,13 +4,6 @@ Date: Fri, 17 Jun 2016 18:58:05 +0300 Subject: [PATCH] build: use openct instead of embedded binary ctapi Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> ---- - Makefile | 4 ++-- - ifdhandler.c | 2 +- - 2 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/Makefile b/Makefile -index cdba2b6..319449a 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ clean: @@ -18,13 +11,11 @@ index cdba2b6..319449a 100644 lib: $(OBJ) - $(LD) -G ifdhandler.o lib/libctapi.a -o libslb_rf72.so -+ $(CC) $(LDFLAGS) -shared `pkg-config --libs-only-L libopenct` -lopenctapi ifdhandler.o -o libslb_rf72.so ++ $(CC) $(LDFLAGS) -shared `${PKG_CONFIG} --libs-only-L libopenct` -lopenctapi ifdhandler.o -o libslb_rf72.so ifdhandler.o: ifdhandler.h ifdhandler.c - $(CC) $(CFLAGS) -c ifdhandler.c $(INCLUDES) -+ $(CC) $(CFLAGS) `pkg-config --cflags libopenct` -fPIC -DHAVE_PTHREAD_H -c ifdhandler.c $(INCLUDES) -diff --git a/ifdhandler.c b/ifdhandler.c -index cbb3a65..256605e 100644 ++ $(CC) $(CFLAGS) `${PKG_CONFIG} --cflags libopenct` -fPIC -DHAVE_PTHREAD_H -c ifdhandler.c $(INCLUDES) --- a/ifdhandler.c +++ b/ifdhandler.c @@ -29,7 +29,7 @@ diff --git a/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild b/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild index 8d14bd4b919f..6f8c631b16db 100644 --- a/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild +++ b/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild @@ -29,6 +29,7 @@ PATCHES=( ) src_compile() { + tc-export PKG_CONFIG emake CC="$(tc-getCC)" LD="$(tc-getLD)" } |