1 # Copyright © 2020 Nick Bowler
2 # License GPLv3+: GNU General Public License version 3 or any later version.
3 # This is free software: you are free to change and redistribute it.
4 # There is NO WARRANTY, to the extent permitted by law.
8 inherit toolchain-funcs
10 DESCRIPTION="Simple drag and drop source/target for X"
11 HOMEPAGE="https://github.com/mwh/dragon"
12 SRC_URI="https://github.com/mwh/dragon/archive/v$PV.tar.gz -> $P.tar.gz"
16 KEYWORDS="~amd64 ~x86"
18 DEPEND="x11-libs/gtk+:3"
22 cat >GNUmakefile <<'EOF'
23 GTK_CFLAGS := $(shell pkg-config --cflags gtk+-3.0)
25 ALL_CPPFLAGS := -std=c99 -Wall $(filter -D% -I%,$(GTK_CFLAGS)) $(CPPFLAGS)
26 ALL_CFLAGS := -std=c99 -Wall $(filter-out -D% -I%,$(GTK_CFLAGS)) $(CFLAGS)
27 LIBS := $(shell pkg-config --libs gtk+-3.0)
30 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
33 $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $<