1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/x11-toolkits/plib/Makefile
Baptiste Daroussin 9308f87e99 Remove NEED_ROOT, older automake generate bogus Makefile.in that run RANLIB twice:
one at build time, the second time at install time (which is wrong given the file has a 444 mode)
While here remove check for unsupported versions
2014-01-09 23:02:29 +00:00

38 lines
954 B
Makefile

# Created by: Brian Buchanan <brian@CSUA.Berkeley.EDU>
# $FreeBSD$
PORTNAME= plib
PORTVERSION= 1.8.5
PORTREVISION= 4
CATEGORIES= x11-toolkits
MASTER_SITES= http://plib.sourceforge.net/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= Portable library for joystick/sound/OpenGL GUI/3D math
USES= gmake
USE_XORG= xt xi xmu xext x11
USE_GL= glu
GNU_CONFIGURE= yes
CXXFLAGS+= -fPIC
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
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
@${REINPLACE_CMD} -e '/echo.*RANLIB/,+1d' ${WRKSRC}/src/*/Makefile.in
@${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>