1 # Copyright 2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Simple drag and drop source/target for X"
9 HOMEPAGE="https://github.com/mwh/dragon"
10 SRC_URI="https://github.com/mwh/dragon/archive/v$PV.tar.gz -> $P.tar.gz"
14 KEYWORDS="~amd64 ~x86"
16 DEPEND="x11-libs/gtk+:3"
20 cat >GNUmakefile <<'EOF'
21 GTK_CFLAGS := $(shell pkg-config --cflags gtk+-3.0)
23 ALL_CPPFLAGS := -std=c99 -Wall $(filter -D% -I%,$(GTK_CFLAGS)) $(CPPFLAGS)
24 ALL_CFLAGS := -std=c99 -Wall $(filter-out -D% -I%,$(GTK_CFLAGS)) $(CFLAGS)
25 LIBS := $(shell pkg-config --libs gtk+-3.0)
28 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
31 $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $<