mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
mail/milter-manager: Fix build with llvm16
- Utilize USES=localbase Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
cfb9f43f84
commit
4ead580be1
@ -16,8 +16,8 @@ LIB_DEPENDS= libev.so:devel/libev
|
||||
RUN_DEPENDS= rubygem-gio2>0:devel/rubygem-gio2 \
|
||||
rubygem-rexml>0:textproc/rubygem-rexml
|
||||
|
||||
USES= compiler:c++11-lang gettext gmake gnome libtool pathfix \
|
||||
pkgconfig ruby
|
||||
USES= compiler:c++11-lang gettext gmake gnome libtool localbase \
|
||||
pathfix pkgconfig ruby
|
||||
USE_GNOME= glib20 intltool
|
||||
USE_LDCONFIG= yes
|
||||
USE_RC_SUBR= milter-manager
|
||||
@ -30,18 +30,22 @@ CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
CFLAGS+= -fdeclspec
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LIBS+= -L${LOCALBASE}/lib
|
||||
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
|
||||
CFLAGS+= -Wno-error=incompatible-function-pointer-types
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${FIND} ${WRKSRC} -type f -name Makefile.in -exec \
|
||||
${REINPLACE_CMD} -e "s#\$$(datadir)/@PACKAGE@#${DATADIR}#" \
|
||||
-e "s#\$$(datarootdir)/\$$(PACKAGE)#${DATADIR}#" {} +
|
||||
@${REINPLACE_CMD} -e "s#\\\\\$$(pkgdatadir)/sample#${EXAMPLESDIR}#" ${WRKSRC}/configure
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user