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@
39 lines
966 B
Makefile
39 lines
966 B
Makefile
# $OpenBSD: Makefile,v 1.10 2021/08/28 09:16:56 cwen Exp $
|
|
|
|
COMMENT = graphical disk map
|
|
DISTNAME = gdmap-0.8.1
|
|
CATEGORIES = sysutils x11
|
|
REVISION = 6
|
|
|
|
HOMEPAGE = http://gdmap.sourceforge.net/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
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 harfbuzz intl m pango-1.0 pangocairo-1.0
|
|
WANTLIB += pangoft2-1.0 pthread xml2 z
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=gdmap/}
|
|
|
|
MODULES = textproc/intltool
|
|
|
|
LIB_DEPENDS = textproc/libxml \
|
|
x11/gtk+2
|
|
RUN_DEPENDS = devel/desktop-file-utils
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
CONFIGURE_STYLE = autoconf
|
|
AUTOCONF_VERSION = 2.61
|
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
|
|
|
|
# Needed for architectures not inlining sqrt(3), like powerpc
|
|
LDFLAGS += -lm
|
|
|
|
.include <bsd.port.mk>
|