kanjipad: unbreak with ld.lld on powerpc

powerpc does not inline sqrt(3) unlike other lld archs, so it actually uses
libm and as such the `-lm' linker flag is needed.

While here, refresh WANTLIB.

ok gkoehler@
This commit is contained in:
cwen 2021-08-28 09:03:46 +00:00
parent 1ce337eb15
commit 019b0fdc24

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.20 2019/07/12 21:02:22 sthen Exp $
# $OpenBSD: Makefile,v 1.21 2021/08/28 09:03:46 cwen Exp $
COMMENT= Japanese handwriting recognition
DISTNAME= kanjipad-2.0.0
REVISION= 7
REVISION= 8
CATEGORIES= japanese
HOMEPAGE= https://fishsoup.net/software/kanjipad/
@ -16,13 +16,18 @@ MASTER_SITES= https://fishsoup.net/software/kanjipad/
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender atk-1.0 c cairo fontconfig freetype
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
WANTLIB += gtk-x11-2.0 intl m pango-1.0 pangocairo-1.0 pangoft2-1.0
WANTLIB += z
WANTLIB += gtk-x11-2.0 harfbuzz intl pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 z
# Needed for architectures not inlining sqrt(3), like powerpc
WANTLIB += m
LIB_DEPENDS= devel/gettext,-runtime \
x11/gtk+2
MAKE_FLAGS=OPTIMIZE='${CFLAGS}' PREFIX=${PREFIX}
MAKE_FLAGS=OPTIMIZE="${CFLAGS}" LDFLAGS="${LDFLAGS}" PREFIX="${PREFIX}"
LDFLAGS+= -lm
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kanjipad