Skip to content

Commit

Permalink
x11-toolkits/xmhtml: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Pet portclippy
- Adopt port

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jun 24, 2023
1 parent a41dcca commit e3e88f2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions x11-toolkits/xmhtml/Makefile
Expand Up @@ -3,7 +3,7 @@ PORTVERSION= 1.1.10
CATEGORIES= x11-toolkits www
MASTER_SITES= SF/${PORTNAME:tl}

MAINTAINER= ports@FreeBSD.org
MAINTAINER= bofh@FreeBSD.org
COMMENT= Motif widget set for displaying HTML 3.2 documents
WWW= https://sourceforge.net/projects/xmhtml/

Expand All @@ -13,14 +13,21 @@ LICENSE_FILE= ${WRKSRC}/COPYING.LIB
LIB_DEPENDS= libpng.so:graphics/png

USES= gmake jpeg libtool:build motif pkgconfig tar:tgz xorg
USE_XORG= xft xmu xpm xt
USE_LDCONFIG= yes
USE_XORG= xft xmu xpm xt

LIBTOOL= libtool
MAKE_ENV= LIBTOOL=${LIBTOOL}

OPTIONS_DEFINE= DOCS EXAMPLES

LIBTOOL= libtool

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif

do-install:
(cd ${WRKSRC}/lib && ${LIBTOOL} --mode=install ${INSTALL_DATA} \
libXmHTML.la ${STAGEDIR}${PREFIX}/lib)
Expand Down

0 comments on commit e3e88f2

Please sign in to comment.