freebsd-ports/x11-toolkits/plib/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: plib
# Date created: 26 June 1999
# Whom: Brian Buchanan <brian@CSUA.Berkeley.EDU>
#
1999-08-31 05:04:38 +02:00
# $FreeBSD$
#
PORTNAME= plib
PORTVERSION= 1.8.5
PORTREVISION= 3
CATEGORIES= x11-toolkits
MASTER_SITES= http://plib.sourceforge.net/dist/
MAINTAINER= ports@FreeBSD.org
2003-02-20 20:21:36 +01:00
COMMENT= A portable library for joystick/sound/OpenGL GUI/3D math
USE_XORG= xt xi xmu xext x11
USE_GNOME= gnometarget
USE_GL= glu
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
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
2009-04-02 13:10:26 +02:00
.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>