Skip to content

Commit

Permalink
devel/libafterbase: Fix build with lvm15
Browse files Browse the repository at this point in the history
- Pet portclippy
- Adopt port
  • Loading branch information
5u623l20 committed Jun 5, 2023
1 parent ab7d316 commit 8cd54ee
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions devel/libafterbase/Makefile
Expand Up @@ -5,22 +5,30 @@ 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'

post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libAfterBase.so

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit 8cd54ee

Please sign in to comment.