As like as HEAD(14.0-RELEASE) llvm16 was merged in base for 13.2-STABLE with the OSVERSION 1302507. - Utilize USE_CXXSTD=c++14 or similar solution where applicable - Update conditionals to addtionally check for OSVERSION greater than 1302507 and less than 1400000 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
39 lines
902 B
Makefile
39 lines
902 B
Makefile
PORTNAME= plib
|
|
PORTVERSION= 1.8.5
|
|
PORTREVISION= 8
|
|
CATEGORIES= x11-toolkits
|
|
MASTER_SITES= http://plib.sourceforge.net/dist/
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= Portable library for joystick/sound/OpenGL GUI/3D math
|
|
WWW= http://plib.sourceforge.net/
|
|
|
|
LICENSE= LGPL20
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= cpe gl gmake localbase:ldflags xorg
|
|
USE_CXXSTD= c++14
|
|
CPE_VENDOR= ${PORTNAME}_project
|
|
USE_GL= glu
|
|
USE_XORG= xt xi xmu xext x11
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CXXFLAGS+= -fPIC
|
|
LDFLAGS+= -lpthread
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-js-jsBSD.cxx
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lpthread||g ; \
|
|
s|-ldl||g ; \
|
|
s|-lc_r||g' ${WRKSRC}/configure
|
|
@${ECHO} "JS component is not compiled with new usb stack"
|
|
|
|
post-build:
|
|
${CC} ${CFLAGS} -o ${WRKDIR}/plib-jscal ${FILESDIR}/jsBSDCal.c
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKDIR}/plib-jscal ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|