print/openprinting: Fix build with llvm16

- Utilize USES=localbase
- Pet portclippy

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-07-24 20:43:08 +02:00
parent c4f8944e4a
commit 2bb0c72ce5

View file

@ -10,18 +10,19 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Sun's implementation of the OpenPrinting API (PAPI)
WWW= http://openprinting.sourceforge.net/
USES= gettext gmake iconv libtool localbase tar:bzip2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
INSTALL_TARGET= install-strip
WRKSRC= ${WRKDIR}/papi-${PORTVERSION}_beta
USES= gettext gmake iconv libtool tar:bzip2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
MAKE_JOBS_UNSAFE= yes
LIBS+= -lintl
LLD_UNSAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lintl
# TODO: Get mod_ipp to actually work; Sun's example seems to be broken
# under both Apache 1.3/2.0, this could be a papi issue; does not build
# w/Apache 2.2.
@ -34,6 +35,10 @@ LIBS+= -L${LOCALBASE}/lib -lintl
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
# NOTE: This has only been tested with www/apache20, with integrated APR.
.if defined(WITH_MOD_IPP)
IGNORE= no supported apache versions available