4a0b2c1ef0
1. Fixed bento error (was not buildable on alpha) 2. Updating 1.4.2 -> 1.4.3 3. Removed RM_INSTALL=${X11BASE} from port makefile, because it was forcing OpenRM makefiles to install things even during port build phase. 4. Fixed calls to pthread_setconcurrency in demo programs. Now they all are buildable. PR: ports/51267 Submitted by: Igor Pokrovsky <igor.pokrovsky@cnrm.meteo.fr>
105 lines
3.3 KiB
Makefile
105 lines
3.3 KiB
Makefile
# New ports collection makefile for: openrm
|
|
# Date created: 8 July 2002
|
|
# Whom: Igor Pokrovsky <tiamat@telegraph.spb.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= openrm
|
|
PORTVERSION= 1.4.3
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
DISTNAME= ${PORTNAME}-devel-${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
.ifdef (WITH_DEMOS)
|
|
DISTFILES= ${PORTNAME}-devel-${PORTVERSION}${EXTRACT_SUFX} \
|
|
${PORTNAME}-demo-${PORTVERSION}${EXTRACT_SUFX}
|
|
.endif
|
|
|
|
MAINTAINER= tiamat@telegraph.spb.ru
|
|
COMMENT= Development environment used to build 2D/3D/stereo graphics
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
|
|
|
WRKSRC= ${WRKDIR}/rm${PORTVERSION:S/.//g}
|
|
.ifdef (WITH_DEMOS)
|
|
WRKSRC2= ${WRKDIR}/rmdemo
|
|
EXTRA_PATCHES= ${PATCHDIR}/makeinclude.diff ${PATCHDIR}/rm2screen.c.diff
|
|
.endif
|
|
|
|
USE_X_PREFIX= yes
|
|
USE_MESA= yes
|
|
USE_REINPLACE= yes
|
|
ALL_TARGET= linux docs
|
|
INSTALLS_SHLIB= yes
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
.if !defined(WITH_DEMOS)
|
|
PLIST_SUB= WITH_DEMOS="@comment "
|
|
.else
|
|
PLIST_SUB= WITH_DEMOS=""
|
|
.endif
|
|
|
|
.ifndef (WITH_DEMOS)
|
|
pre-everything::
|
|
@${ECHO} "You can define WITH_DEMOS=yes to fetch and install available demos"
|
|
.endif
|
|
|
|
.ifdef (WITH_DEMOS)
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g; \
|
|
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g; \
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC2}/makeinclude
|
|
.endif
|
|
|
|
do-install:
|
|
# install libraries
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/librm.so.1 ${PREFIX}/lib
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/librmaux.so.1 ${PREFIX}/lib
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/librmi.so.1 ${PREFIX}/lib
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/librmv.so.1 ${PREFIX}/lib
|
|
${LN} -fs ${PREFIX}/lib/librm.so.1 ${PREFIX}/lib/librm.so
|
|
${LN} -fs ${PREFIX}/lib/librmaux.so.1 ${PREFIX}/lib/librmaux.so
|
|
${LN} -fs ${PREFIX}/lib/librmi.so.1 ${PREFIX}/lib/librmi.so
|
|
${LN} -fs ${PREFIX}/lib/librmv.so.1 ${PREFIX}/lib/librmv.so
|
|
${INSTALL_DATA} ${WRKSRC}/lib/librm.a ${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/lib/librmaux.a ${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/lib/librmi.a ${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/lib/librmv.a ${PREFIX}/lib
|
|
|
|
# install includes
|
|
${INSTALL_DATA} ${WRKSRC}/include/rm.h ${PREFIX}/include
|
|
@${MKDIR} ${PREFIX}/include/rm
|
|
${INSTALL_DATA} ${WRKSRC}/include/rm/*.h ${PREFIX}/include/rm
|
|
@${MKDIR} ${PREFIX}/include/rmaux
|
|
${INSTALL_DATA} ${WRKSRC}/include/rmaux/*.h ${PREFIX}/include/rmaux
|
|
@${MKDIR} ${PREFIX}/include/rmi
|
|
${INSTALL_DATA} ${WRKSRC}/include/rmi/*.h ${PREFIX}/include/rmi
|
|
@${MKDIR} ${PREFIX}/include/rmv
|
|
${INSTALL_DATA} ${WRKSRC}/include/rmv/*.h ${PREFIX}/include/rmv
|
|
|
|
.ifdef (WITH_DEMOS)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC2}/README ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC2}/configure ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC2}/makeinclude ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC2}/Makefile.x11 ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC2}/*.c ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC2}/*.h ${EXAMPLESDIR}
|
|
@${MKDIR} ${EXAMPLESDIR}/data
|
|
${INSTALL_DATA} ${WRKSRC2}/data/* ${EXAMPLESDIR}/data
|
|
.endif
|
|
|
|
.ifndef (NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/FUTUREPLANS ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/RELEASENOTES ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/HTML/*.html ${DOCSDIR}
|
|
@${MKDIR} ${DOCSDIR}/images
|
|
${INSTALL_DATA} ${WRKSRC}/doc/HTML/images/* ${DOCSDIR}/images
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|