mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
4c46ca73d8
Add USES=xorg and USES=gl to ports in categories starting with 'x' While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
40 lines
916 B
Makefile
40 lines
916 B
Makefile
# Created by: Brian Buchanan <brian@CSUA.Berkeley.EDU>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= plib
|
|
PORTVERSION= 1.8.5
|
|
PORTREVISION= 7
|
|
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= gl gmake xorg
|
|
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>
|