New comment by Duncaen on void-packages repository https://github.com/void-linux/void-packages/pull/44210#issuecomment-1572173879 Comment: With this patch everything including cross builds work, the `gtk+3` dependency is added automatically since it links libgtk. ``` diff --git a/srcpkgs/linux-wifi-hotspot/patches/makefile.patch b/srcpkgs/linux-wifi-hotspot/patches/makefile.patch new file mode 100644 index 0000000000..aab21f83ce --- /dev/null +++ b/srcpkgs/linux-wifi-hotspot/patches/makefile.patch @@ -0,0 +1,24 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -1,7 +1,7 @@ + CC=gcc + PKGCONFIG = $(shell which pkg-config) + +-CFLAGS=`pkg-config --cflags gtk+-3.0` ++CFLAGS_PKGCONF=`pkg-config --cflags gtk+-3.0` + LIBS=`pkg-config --libs gtk+-3.0 --libs x11` -lstdc++ -lpng -lqrencode + + APP_NAME="wihotspot" +@@ -32,10 +32,10 @@ + @$(MAKE) -f $(THIS_FILE) wihotspot-gui + + $(ODIR)/%.o: ui/%.c +- $(CC) -c -o $@ $< $(CFLAGS) ++ $(CC) -c -o $@ $< $(CFLAGS) $(CFLAGS_PKGCONF) + + $(ODIR)/%.o: ui/%.cpp +- g++ -c -o $@ $< ++ $(CXX) -c -o $@ $< $(CFLAGS) + + wihotspot-gui: $(OBJ) + $(CC) -o $(ODIR)/$@ $^ $(CFLAGS) $(LIBS) diff --git a/srcpkgs/linux-wifi-hotspot/template b/srcpkgs/linux-wifi-hotspot/template index 990ff83a7b..a2c03b2682 100644 --- a/srcpkgs/linux-wifi-hotspot/template +++ b/srcpkgs/linux-wifi-hotspot/template @@ -2,11 +2,10 @@ pkgname=linux-wifi-hotspot version=4.5.0 revision=1 -archs="i686 x86_64 x86_64-musl" -build_style=gnu-configure +build_style=gnu-makefile hostmakedepends="pkg-config which glib-devel" makedepends="gtk+3-devel libpng-devel qrencode-devel" -depends="gtk+3 bash dnsmasq hostapd iproute2 iptables iw procps-ng util-linux" +depends="bash dnsmasq hostapd iproute2 iptables iw procps-ng util-linux" short_desc="Feature-rich wifi hotspot creator" maintainer="Bnyro " license="BSD-2-Clause" @@ -15,10 +14,6 @@ distfiles="https://github.com/lakinduakash/linux-wifi-hotspot/archive/refs/tags/ checksum=9e4222b7d3129347b01eef711911ec87c9a04e20efd12d88565f682a14eb91da conflicts="create_ap" -do_configure() { - : -} - post_install() { vlicense LICENSE } ```