[Bug 268133] x11-clocks/wmclockmon: patch to port , change in Makefile to work with gtk20

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 Dec 2022 00:07:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268133

            Bug ID: 268133
           Summary: x11-clocks/wmclockmon: patch to port , change in
                    Makefile to work with gtk20
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: list@understudy.net

Created attachment 238495
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=238495&action=edit
Updated Makefile

Short notes:
replacing gtkconfig w/ gtk20 pkgconfig
linux build against gtk 2 patch 
edit Makefile to gtk20 and added cflags -fcommon
post patch 2 lines

Long Notes
GTK20 was installed separately as port. 
A linux patch from: 
https://salsa.debian.org/wmaker-team/wmclockmon/-/blob/master/debian/patches/build_against_gtk2.patch
was added. 

The Makefile was modified to use gtk20 and we added a CFLAGS=-fcommon
The post patch of the Makefile was added to have this:
post-patch:
        @${REINPLACE_CMD} -e 's|gtk-config|pkgconf gtk+-2.0 --cflags|g'\
                ${WRKSRC}/wmclockmon-config/Makefile.in
         @${REINPLACE_CMD} -e 's|gtk-config|pkgconf gtk+-2.0 --cflags|g'\
                ${WRKSRC}/wmclockmon-cal/Makefile.in

# pwd
/usr/ports/x11-clocks/wmclockmon
# cp ~/Downloads/build_against_gtk2.patch /usr/ports/x11-clocks/wmclockmon/
# cd work/wmclockmon-0.8.1/
# patch -p1 -b < ../../build_against_gtk2.patch
# cd ../
# make makepatch
# cd files
# ls -a
# cd ../
# make VERBOSE=YES MAKE_JOBS_NUMBER=1 WITH_DEBUG=YES build
# make install

The port is still marked as BROKEN because this as I was informed was similar
to getting it to work with bandages and duct tape. Further suggestions for
improvement are welcome. 

Contributions and Thanks to Discord FreeBSD users jsm and Shaw for their
assistance with this.

-- 
You are receiving this mail because:
You are the assignee for the bug.