git: 8cd54ee84d15 - main - devel/libafterbase: Fix build with lvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Jun 2023 18:09:17 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8cd54ee84d1553c9a32fa0c71255b3706e28f386
commit 8cd54ee84d1553c9a32fa0c71255b3706e28f386
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-05 18:07:56 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-05 18:09:02 +0000
devel/libafterbase: Fix build with lvm15
- Pet portclippy
- Adopt port
---
devel/libafterbase/Makefile | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/devel/libafterbase/Makefile b/devel/libafterbase/Makefile
index 88f55f007c63..5083ac46b608 100644
--- a/devel/libafterbase/Makefile
+++ b/devel/libafterbase/Makefile
@@ -5,17 +5,25 @@ CATEGORIES= devel
MASTER_SITES= SF/afterstep/libAfterBase/${PORTVERSION}
DISTNAME= libAfterBase-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= bofh@FreeBSD.org
COMMENT= AfterStep basic functionality library
LICENSE= LGPL21+
USES= desthack
+USE_LDCONFIG= yes
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-staticlibs --enable-sharedlibs --with-x
-USE_LDCONFIG= yes
+
PLIST_SUB= STATIC="@comment "
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=int-conversion
+.endif
+
post-patch:
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
's|<malloc.h>|<stdlib.h>|g'
@@ -23,4 +31,4 @@ post-patch:
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libAfterBase.so
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>