mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
app-text/llpp: respect PKG_CONFIG
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -10,8 +10,8 @@ LIBDIR ?= /usr/lib
|
||||
# includes and libs
|
||||
PKGCONF_DEPS := freetype2 harfbuzz libopenjp2 libjpeg mupdf x11 zlib
|
||||
CPPFLAGS += -D_GNU_SOURCE -DFFP
|
||||
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wshadow $(shell pkg-config --cflags $(PKGCONF_DEPS))
|
||||
LDLIBS = -L$(LIBDIR) -lpthread -ljbig2dec $(shell pkg-config --libs $(PKGCONF_DEPS))
|
||||
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wshadow $(shell ${PKG_CONFIG} --cflags $(PKGCONF_DEPS))
|
||||
LDLIBS = -L$(LIBDIR) -lpthread -ljbig2dec $(shell ${PKG_CONFIG} --libs $(PKGCONF_DEPS))
|
||||
|
||||
# ocaml
|
||||
CAMLOPT = ocamlopt
|
||||
|
||||
@@ -10,8 +10,8 @@ LIBDIR ?= /usr/lib
|
||||
# includes and libs
|
||||
PKGCONF_DEPS := freetype2 harfbuzz libopenjp2 libjpeg mupdf x11 zlib
|
||||
CPPFLAGS += -D_GNU_SOURCE -DFFP
|
||||
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wshadow $(shell pkg-config --cflags $(PKGCONF_DEPS))
|
||||
LDLIBS = -L$(LIBDIR) -lpthread -ljbig2dec $(shell pkg-config --libs $(PKGCONF_DEPS))
|
||||
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wshadow $(shell ${PKG_CONFIG} --cflags $(PKGCONF_DEPS))
|
||||
LDLIBS = -L$(LIBDIR) -lpthread -ljbig2dec $(shell ${PKG_CONFIG} --libs $(PKGCONF_DEPS))
|
||||
|
||||
# ocaml
|
||||
CAMLOPT = ocamlopt
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
@@ -51,6 +51,7 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export PKG_CONFIG
|
||||
emake -j1 VERSION=${PV} CC="$(tc-getCC)" LIBDIR="/usr/$(get_libdir)"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user