mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# New ports collection makefile for: plib
|
|
# Date created: 26 June 1999
|
|
# Whom: Brian Buchanan <brian@CSUA.Berkeley.EDU>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= plib
|
|
PORTVERSION= 1.8.5
|
|
PORTREVISION= 3
|
|
CATEGORIES= x11-toolkits
|
|
MASTER_SITES= http://plib.sourceforge.net/dist/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A portable library for joystick/sound/OpenGL GUI/3D math
|
|
|
|
USE_XORG= xt xi xmu xext x11
|
|
USE_GL= glu
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
CXXFLAGS+= -fPIC
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 800064
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-js-jsBSD.cxx
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lpthread||g ; \
|
|
s|-ldl||g ; \
|
|
s|-lc_r||g' ${WRKSRC}/configure
|
|
.if ${OSVERSION} >= 800064
|
|
@${ECHO} "JS component is not compiled with new usb stack"
|
|
.endif
|
|
|
|
post-build:
|
|
${CC} ${CFLAGS} -o ${WRKDIR}/plib-jscal ${FILESDIR}/jsBSDCal.c
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKDIR}/plib-jscal ${PREFIX}/bin
|
|
|
|
.include <bsd.port.post.mk>
|