blob: c7f667eaf00ed326d93fb8310776f2ca981715bd (
plain) (
blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# ex:ts=8
# Ports collection Makefile for: aqsis
# Date created: Sep 12, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= aqsis
PORTVERSION= 1.4.2
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= gahr@FreeBSD.org
COMMENT= A photorealistic rendering system
BUILD_DEPENDS= bjam:${PORTSDIR}/devel/boost \
bison:${PORTSDIR}/devel/bison \
xsltproc:${PORTSDIR}/textproc/libxslt \
fltk-threads>=0:${PORTSDIR}/x11-toolkits/fltk-threads
LIB_DEPENDS= IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
tiff.4:${PORTSDIR}/graphics/tiff \
aprutil-1.3:${PORTSDIR}/devel/apr \
db-4.2.2:${PORTSDIR}/databases/db42
LDFLAGS+= -L${LOCALBASE}/lib
CMAKE_ARGS= -DAQSIS_BOOST_FILESYSTEM_LIBRARY:FILEPATH=${LOCALBASE}/lib/libboost_filesystem.so \
-DAQSIS_BOOST_REGEX_LIBRARY:FILEPATH=${LOCALBASE}/lib/libboost_regex.so \
-DAQSIS_BOOST_THREAD_LIBRARY:FILEPATH=${LOCALBASE}/lib/libboost_thread.so \
-DAQSIS_BOOST_WAVE_LIBRARY:FILEPATH=${LOCALBASE}/lib/libboost_wave.so \
-DAQSIS_FLTK_LIBRARIES:FILEPATH=${LOCALBASE}/lib/libfltk.so
# -DAQSIS_BOOST_FILESYSTEM_LIBRARY_NAME:STRING=boost_filesystem \
# -DAQSIS_BOOST_REGEX_LIBRARY_NAME:STRING=boost_regex \
# -DAQSIS_BOOST_THREAD_LIBRARY_NAME:STRING=boost_thread \
# -DAQSIS_BOOST_WAVE_LIBRARY_NAME:STRING=boost_wave \
# -DAQSIS_FLTK_INCLUDE_DIR:PATH=${LOCALBASE}/include \
# -DAQSIS_FLTK_LIBRARIES_DIR:PATH=${LOCALBSAE}/lib
CMAKE_USE_PTHREAD= yes
USE_LDCONFIG= yes
USE_CMAKE= yes
# Required for off-source building
CMAKE_BUILD_PATH= ${WRKSRC}/build
CMAKE_SOURCE_PATH= ${WRKSRC}/
CONFIGURE_WRKSRC= ${CMAKE_BUILD_PATH}
post-extract:
${MKDIR} ${CMAKE_BUILD_PATH}
post-patch:
${REINPLACE_CMD} -e '47s/$$/ || defined(__sparc64__)/' \
${WRKSRC}/renderer/ddmanager/ndspy.h
post-configure:
${FIND} ${WRKSRC} -name "relink.txt" -o -name "link.txt" \
| ${XARGS} ${REINPLACE_CMD} -i "" -e 's|\-ldl||g'
do-build:
cd ${CMAKE_BUILD_PATH} && ${MAKE}
do-install:
cd ${CMAKE_BUILD_PATH} && ${MAKE} install
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
.include <bsd.port.post.mk>
|