blob: aa07f82c1c6274ef59ff6f3ac344e3f3bc54e1e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# $FreeBSD$
MASTER_SITES= http://www.openscenegraph.org/downloads/snapshots/
DISTNAME= OSG_OP_OT-1.2
MD5_FILE= ${.CURDIR}/../../graphics/osg/distinfo
USE_ZIP= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
MAKEFILE= GNUmakefile
MAKE_ARGS= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
CXX="${CXX}" \
INST_LOCATION="${PREFIX}" \
INST_EXAMPLES="${EXAMPLESDIR}/bin" \
INST_SRC="${EXAMPLESDIR}/src" \
INST_EXAMPLE_SRC="${EXAMPLESDIR}/src" \
INSTBINCMD="${INSTALL_PROGRAM}" \
INSTXCMD="${INSTALL_PROGRAM}" \
INSTDEVCMD="${INSTALL_DATA}" \
INSTRCMD="${INSTALL_DATA}"
ALL_TARGET= opt
post-patch: osg-post-patch
osg-post-patch:
@${REINPLACE_CMD} -Ee 's|-O2|${CXXFLAGS}|; \
s|(-I\|-L\|-rpath )/usr/local|\1${LOCALBASE}|; \
s|(-I\|-L\|-rpath )/usr/X11R6|\1${LOCALBASE}|' \
${WRKSRC}/Make/makedefs
@${REINPLACE_CMD} -e 's|DOF=$$(OPTF)|DOF="$$(OPTF)"|' \
${WRKSRC}/Make/makerules
|