1999-07-03 08:38:39 +02:00
|
|
|
# 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$
|
1999-07-03 08:38:39 +02:00
|
|
|
#
|
|
|
|
|
2000-12-12 16:01:16 +01:00
|
|
|
PORTNAME= plib
|
2008-05-30 15:43:35 +02:00
|
|
|
PORTVERSION= 1.8.5
|
2010-03-15 15:35:32 +01:00
|
|
|
PORTREVISION= 3
|
2000-12-12 16:01:16 +01:00
|
|
|
CATEGORIES= x11-toolkits
|
|
|
|
MASTER_SITES= http://plib.sourceforge.net/dist/
|
1999-07-03 08:38:39 +02:00
|
|
|
|
2008-04-29 07:11:44 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:21:36 +01:00
|
|
|
COMMENT= A portable library for joystick/sound/OpenGL GUI/3D math
|
1999-07-03 08:38:39 +02:00
|
|
|
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_XORG= xt xi xmu xext x11
|
2008-05-30 15:43:35 +02:00
|
|
|
USE_GNOME= gnometarget
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_GL= glu
|
2000-12-12 16:01:16 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2008-05-30 15:43:35 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
|
2005-12-18 15:47:42 +01:00
|
|
|
CXXFLAGS+= -fPIC
|
2008-05-30 15:43:35 +02:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
|
2009-03-25 22:15:26 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 800064
|
2009-09-08 04:25:36 +02:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-js-jsBSD.cxx
|
2009-03-25 22:15:26 +01:00
|
|
|
.endif
|
|
|
|
|
2008-05-30 15:43:35 +02:00
|
|
|
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
|
2005-12-07 11:07:28 +01:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
${CC} ${CFLAGS} -o ${WRKDIR}/plib-jscal ${FILESDIR}/jsBSDCal.c
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/plib-jscal ${PREFIX}/bin
|
1999-07-03 08:38:39 +02:00
|
|
|
|
2009-03-25 22:15:26 +01:00
|
|
|
.include <bsd.port.post.mk>
|