graphics/plotutils: Fix build with llvm16

- Utilize USES=localbase
- Pet portclippy

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-06-25 14:12:47 +02:00
parent 6237f271f4
commit 0a27454da6

View file

@ -13,16 +13,21 @@ LICENSE= GPLv3
LIB_DEPENDS= libpng.so:graphics/png
USES= gmake libtool xorg # parallel builds are broken with bmake(1)
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-libplotter --enable-libxmi
USES= gmake libtool localbase:ldflags xorg # parallel builds are broken with bmake(1)
USE_LDCONFIG= yes
USE_XORG= ice sm x11 xaw xext xmu xt
TEST_TARGET= check
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-libplotter --enable-libxmi
TEST_TARGET= check
INFO= libxmi plotutils
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CPPFLAGS+= -Dregister=
.endif
.include <bsd.port.mk>