1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/x11-toolkits/plib/Makefile
John Marino 0ae327316b 3 ports categories: Remove $PTHREAD_LIBS
Categories: editors, x11, x11-toolkits

approved by:	PTHREAD blanket
2015-03-24 19:37:43 +00:00

40 lines
908 B
Makefile

# Created by: Brian Buchanan <brian@CSUA.Berkeley.EDU>
# $FreeBSD$
PORTNAME= plib
PORTVERSION= 1.8.5
PORTREVISION= 6
CATEGORIES= x11-toolkits
MASTER_SITES= http://plib.sourceforge.net/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= Portable library for joystick/sound/OpenGL GUI/3D math
LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake
USE_XORG= xt xi xmu xext x11
USE_GL= glu
GNU_CONFIGURE= yes
CXXFLAGS+= -fPIC
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
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>