Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= osg |
4 |
PORTNAME= osg |
5 |
PORTVERSION= 3.3.9 |
5 |
PORTVERSION= 3.5.1 |
6 |
PORTREVISION= 2 |
|
|
7 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
8 |
MASTER_SITES= http://trac.openscenegraph.org/downloads/developer_releases/ \ |
7 |
MASTER_SITES= http://trac.openscenegraph.org/downloads/developer_releases/ \ |
9 |
http://mirror.amdmi3.ru/distfiles/ |
8 |
http://mirror.amdmi3.ru/distfiles/ |
Lines 29-35
Link Here
|
29 |
USE_LDCONFIG= yes |
28 |
USE_LDCONFIG= yes |
30 |
|
29 |
|
31 |
PLIST_SUB= OSG_VERSION=${PORTVERSION} \ |
30 |
PLIST_SUB= OSG_VERSION=${PORTVERSION} \ |
32 |
OSG_SHLIBVER=123 \ |
31 |
OSG_SHLIBVER=141 \ |
33 |
OPENTHREADS_VERSION=3.3.0 \ |
32 |
OPENTHREADS_VERSION=3.3.0 \ |
34 |
OPENTHREADS_SHLIBVER=20 |
33 |
OPENTHREADS_SHLIBVER=20 |
35 |
|
34 |
|
Lines 36-196
Link Here
|
36 |
PORTSCOUT= limitw:1,odd |
35 |
PORTSCOUT= limitw:1,odd |
37 |
|
36 |
|
38 |
OPTIONS_DEFINE= CURL FFMPEG FREETYPE GDAL GIF GSTREAMER GTA INVENTOR \ |
37 |
OPTIONS_DEFINE= CURL FFMPEG FREETYPE GDAL GIF GSTREAMER GTA INVENTOR \ |
39 |
JASPER LIBLAS LUA NVTT OPENEXR PDF QT4 SDL \ |
38 |
JASPER LIBLAS LUA NVTT OPENEXR PDF SDL \ |
40 |
SVG VNC XINE XRANDR |
39 |
SVG VNC XINE XRANDR |
41 |
OPTIONS_DEFAULT=FREETYPE GIF FFMPEG XRANDR |
40 |
OPTIONS_RADIO= QT |
|
|
41 |
OPTIONS_RADIO_QT=QT4 QT5 |
42 |
OPTIONS_DEFAULT=FFMPEG FREETYPE GIF XRANDR |
42 |
|
43 |
|
43 |
LIBLAS_DESC= liblas support |
|
|
44 |
GDAL_DESC= GDAL support |
44 |
GDAL_DESC= GDAL support |
|
|
45 |
GTA_DESC= GTA file format support |
45 |
INVENTOR_DESC= SGI OpenInventor support |
46 |
INVENTOR_DESC= SGI OpenInventor support |
46 |
GTA_DESC= GTA file format support |
47 |
LIBLAS_DESC= liblas support |
|
|
48 |
NVTT_DESC= Use NVidia texture tools |
49 |
QT_DESC= QT toolkit support (optional) |
50 |
SDL_DESC= Use SDL (joystick support in present3d) |
47 |
VNC_DESC= LibVNCServer support |
51 |
VNC_DESC= LibVNCServer support |
48 |
SDL_DESC= Use SDL (joystick support in present3d) |
|
|
49 |
NVTT_DESC= Use NVidia texture tools |
50 |
LUA_DESC= Lua script engine support |
51 |
|
52 |
|
52 |
OPTIONS_SUB= yes |
53 |
OPTIONS_SUB= yes |
53 |
|
54 |
|
54 |
CURL_LIB_DEPENDS= libcurl.so:ftp/curl |
55 |
CURL_LIB_DEPENDS= libcurl.so:ftp/curl |
55 |
LIBLAS_LIB_DEPENDS= liblas.so:devel/liblas |
56 |
CURL_VARS= FORCE_REQUIRE+=CURL |
|
|
57 |
CURL_VARS_OFF= FORCE_IGNORE+=CURL |
58 |
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg |
59 |
FFMPEG_VARS= FORCE_REQUIRE+=FFmpeg |
60 |
FFMPEG_VARS_OFF= FORCE_IGNORE+=FFmpeg |
56 |
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 |
61 |
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 |
|
|
62 |
FREETYPE_VARS= FORCE_REQUIRE+=Freetype |
63 |
FREETYPE_VARS_OFF= FORCE_IGNORE+=Freetype |
57 |
GDAL_LIB_DEPENDS= libgdal.so:graphics/gdal |
64 |
GDAL_LIB_DEPENDS= libgdal.so:graphics/gdal |
|
|
65 |
GDAL_VARS= FORCE_REQUIRE+=GDAL |
66 |
GDAL_VARS_OFF= FORCE_IGNORE+=GDAL |
58 |
GIF_LIB_DEPENDS= libgif.so:graphics/giflib |
67 |
GIF_LIB_DEPENDS= libgif.so:graphics/giflib |
59 |
GSTREAMER_USE= GNOME=glib20 GSTREAMER1=yes |
68 |
GIF_VARS= FORCE_REQUIRE+=GIFLIB |
|
|
69 |
GIF_VARS_OFF= FORCE_IGNORE+=GIFLIB |
70 |
GSTREAMER_USE= gnome=glib20 GSTREAMER1=yes |
71 |
GSTREAMER_VARS= FORCE_REQUIRE+=GStreamer |
72 |
GSTREAMER_VARS_OFF= FORCE_IGNORE+=GStreamer |
73 |
GSTREAMER_BROKEN= fails when linking gstreamer plugin, with error cannot find -lgstreamer-1.0 |
74 |
GTA_LIB_DEPENDS= libgta.so:devel/libgta |
75 |
GTA_VARS= FORCE_REQUIRE+=GTA |
76 |
GTA_VARS_OFF= FORCE_IGNORE+=GTA |
60 |
INVENTOR_LIB_DEPENDS= libInventor.so:graphics/inventor |
77 |
INVENTOR_LIB_DEPENDS= libInventor.so:graphics/inventor |
|
|
78 |
INVENTOR_VARS= FORCE_REQUIRE+=Inventor |
79 |
INVENTOR_VARS_OFF= FORCE_IGNORE+=Inventor |
61 |
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper |
80 |
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper |
62 |
XINE_LIB_DEPENDS= libxine.so:multimedia/libxine |
81 |
JASPER_VARS= FORCE_REQUIRE+=Jasper |
63 |
GTA_LIB_DEPENDS= libgta.so:devel/libgta |
82 |
JASPER_VARS_OFF= FORCE_IGNORE+=Jasper |
64 |
VNC_LIB_DEPENDS= libvncserver.so:net/libvncserver |
83 |
LIBLAS_LIB_DEPENDS= liblas.so:devel/liblas |
|
|
84 |
LIBLAS_VARS= FORCE_REQUIRE+=LIBLAS |
85 |
LIBLAS_VARS_OFF= FORCE_IGNORE+=LIBLAS |
86 |
LUA_USES= lua:52 |
87 |
LUA_CMAKE_ON= -DOSG_USE_LOCAL_LUA_SOURCE:BOOL=OFF |
88 |
LUA_VARS= FORCE_IGNORE+=Lua51 FORCE_REQUIRE+=Lua52 |
89 |
LUA_VARS_OFF= FORCE_IGNORE+="Lua51 Lua52" |
90 |
NVTT_LIB_DEPENDS= libnvtt.so:graphics/nvidia-texture-tools |
91 |
NVTT_VARS= FORCE_REQUIRE+=NVTT |
92 |
NVTT_VARS_OFF= FORCE_IGNORE+=NVTT |
65 |
OPENEXR_LIB_DEPENDS= libIlmImf.so:graphics/OpenEXR |
93 |
OPENEXR_LIB_DEPENDS= libIlmImf.so:graphics/OpenEXR |
66 |
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg |
94 |
OPENEXR_VARS= FORCE_REQUIRE+=OpenEXR |
|
|
95 |
OPENEXR_VARS_OFF= FORCE_IGNORE+=OpenEXR |
96 |
PDF_LIB_DEPENDS= libpoppler-glib.so:graphics/poppler-glib |
97 |
PDF_USE= gnome=cairo |
98 |
PDF_VARS= FORCE_REQUIRE+=Poppler-glib |
99 |
PDF_VARS_OFF= FORCE_IGNORE+=Poppler-glib |
100 |
QT4_USE= qt4=corelib,gui,moc_build,opengl,qmake_build,rcc_build,uic_build |
101 |
QT4_CMAKE_ON= -DDESIRED_QT_VERSION=4 |
102 |
QT4_VARS= FORCE_REQUIRE+=Qt4 |
103 |
QT4_VARS_OFF= FORCE_IGNORE+=Qt4 |
104 |
QT5_USE= qt5=buildtools_build,core,gui,opengl,qmake_build,webkit |
105 |
QT5_CMAKE_ON= -DDESIRED_QT_VERSION=5 |
106 |
QT5_VARS= FORCE_REQUIRE+="Qt5Widgets Qt5WebKitWidgets" |
107 |
QT5_VARS_OFF= FORCE_IGNORE+="Qt5Widgets Qt5WebKitWidgets" |
108 |
SDL_USE= sdl=sdl |
109 |
SDL_VARS= FORCE_REQUIRE+=SDL |
110 |
SDL_VARS_OFF= FORCE_IGNORE+=SDL |
67 |
SVG_LIB_DEPENDS= librsvg-2.so:graphics/librsvg2 |
111 |
SVG_LIB_DEPENDS= librsvg-2.so:graphics/librsvg2 |
68 |
PDF_LIB_DEPENDS= libpoppler-glib.so:graphics/poppler-glib |
112 |
SVG_USE= gnome=cairo |
69 |
SDL_USE= SDL=sdl |
113 |
SVG_VARS= FORCE_REQUIRE+=RSVG |
70 |
NVTT_LIB_DEPENDS= libnvtt.so:graphics/nvidia-texture-tools |
114 |
SVG_VARS_OFF= FORCE_IGNORE+=RSVG |
|
|
115 |
VNC_LIB_DEPENDS= libvncserver.so:net/libvncserver |
116 |
VNC_VARS= FORCE_REQUIRE+=LibVNCServer |
117 |
VNC_VARS_OFF= FORCE_IGNORE+=LibVNCServer |
118 |
XINE_LIB_DEPENDS= libxine.so:multimedia/libxine |
119 |
XINE_VARS= FORCE_REQUIRE+=Xine |
120 |
XINE_VARS_OFF= FORCE_IGNORE+=Xine |
71 |
XRANDR_CMAKE_ON= -DOSGVIEWER_USE_XRANDR:BOOL=ON |
121 |
XRANDR_CMAKE_ON= -DOSGVIEWER_USE_XRANDR:BOOL=ON |
72 |
XRANDR_CMAKE_OFF= -DOSGVIEWER_USE_XRANDR:BOOL=OFF |
122 |
XRANDR_CMAKE_OFF= -DOSGVIEWER_USE_XRANDR:BOOL=OFF |
73 |
QT4_USE= QT4=corelib,gui,opengl,qmake_build,moc_build,uic_build,rcc_build |
123 |
XRANDR_USE= xorg=xrandr |
74 |
QT4_CMAKE_ON= -DOSG_USE_QT=ON |
|
|
75 |
QT4_CMAKE_OFF= -DOSG_USE_QT=OFF |
76 |
LUA_USES= lua:52 |
77 |
|
124 |
|
78 |
.include <bsd.port.options.mk> |
|
|
79 |
|
80 |
# GUI toolkits are only needed for building examples, which are not even installed |
125 |
# GUI toolkits are only needed for building examples, which are not even installed |
81 |
FORCE_IGNORE= FLTK GLUT FOX Qt3 Qt5Widgets wxWidgets OpenAL GtkGl SDL2 # only for examples |
126 |
FORCE_IGNORE= FLTK GLUT FOX Qt3 wxWidgets OpenAL GtkGl SDL2 # only for examples |
82 |
FORCE_IGNORE+= COLLADA Performer OurDCMTK XUL FBX # not in ports |
127 |
FORCE_IGNORE+= COLLADA Performer OurDCMTK XUL FBX # not in ports |
83 |
FORCE_IGNORE+= OpenVRML # ports version too old |
128 |
FORCE_IGNORE+= OpenVRML # ports version too old |
84 |
FORCE_IGNORE+= ITK # ports version doesn't build on 10.x |
129 |
FORCE_IGNORE+= ITK # ports version doesn't build on 10.x |
85 |
FORCE_REQUIRE= Threads OpenGL X11 JPEG PNG TIFF ZLIB # common & lightweight |
130 |
FORCE_REQUIRE= Threads OpenGL X11 JPEG PNG TIFF ZLIB # common & lightweight |
86 |
|
131 |
|
87 |
# options that affect FIND_PACKAGE |
132 |
.include <bsd.port.options.mk> |
88 |
.if ${PORT_OPTIONS:MCURL} |
|
|
89 |
FORCE_REQUIRE+= CURL |
90 |
.else |
91 |
FORCE_IGNORE+= CURL |
92 |
.endif |
93 |
|
133 |
|
94 |
.if ${PORT_OPTIONS:MFREETYPE} |
134 |
.if ${PORT_OPTIONS:MQT4} || ${PORT_OPTIONS:MQT5} |
95 |
FORCE_REQUIRE+= FreeType |
135 |
CMAKE_ARGS+= -DOSG_USE_QT:BOOL=ON |
|
|
136 |
PLIST_SUB+= QT="" |
96 |
.else |
137 |
.else |
97 |
FORCE_IGNORE+= FreeType |
138 |
CMAKE_ARGS+= -DOSG_USE_QT:BOOL=OFF |
|
|
139 |
PLIST_SUB+= QT="@comment " |
98 |
.endif |
140 |
.endif |
99 |
|
141 |
|
100 |
.if ${PORT_OPTIONS:MGDAL} |
|
|
101 |
FORCE_REQUIRE+= GDAL |
102 |
.else |
103 |
FORCE_IGNORE+= GDAL |
104 |
.endif |
105 |
|
106 |
.if ${PORT_OPTIONS:MGIF} |
107 |
FORCE_REQUIRE+= GIFLIB |
108 |
.else |
109 |
FORCE_IGNORE+= GIFLIB |
110 |
.endif |
111 |
|
112 |
.if ${PORT_OPTIONS:MINVENTOR} |
113 |
FORCE_REQUIRE+= Inventor |
114 |
.else |
115 |
FORCE_IGNORE+= Inventor |
116 |
.endif |
117 |
|
118 |
.if ${PORT_OPTIONS:MJASPER} |
119 |
FORCE_REQUIRE+= Jasper |
120 |
.else |
121 |
FORCE_IGNORE+= Jasper |
122 |
.endif |
123 |
|
124 |
.if ${PORT_OPTIONS:MXINE} |
125 |
FORCE_REQUIRE+= Xine |
126 |
.else |
127 |
FORCE_IGNORE+= Xine |
128 |
.endif |
129 |
|
130 |
.if ${PORT_OPTIONS:MGTA} |
131 |
FORCE_REQUIRE+= GTA |
132 |
.else |
133 |
FORCE_IGNORE+= GTA |
134 |
.endif |
135 |
|
136 |
.if ${PORT_OPTIONS:MVNC} |
137 |
FORCE_REQUIRE+= LibVNCServer |
138 |
.else |
139 |
FORCE_IGNORE+= LibVNCServer |
140 |
.endif |
141 |
|
142 |
.if ${PORT_OPTIONS:MOPENEXR} |
143 |
FORCE_REQUIRE+= OpenEXR |
144 |
.else |
145 |
FORCE_IGNORE+= OpenEXR |
146 |
.endif |
147 |
|
148 |
.if ${PORT_OPTIONS:MFFMPEG} |
149 |
FORCE_REQUIRE+= FFmpeg |
150 |
.else |
151 |
FORCE_IGNORE+= FFmpeg |
152 |
.endif |
153 |
|
154 |
.if ${PORT_OPTIONS:MSDL} |
155 |
FORCE_REQUIRE+= SDL |
156 |
.else |
157 |
FORCE_IGNORE+= SDL |
158 |
.endif |
159 |
|
160 |
.if ${PORT_OPTIONS:MNVTT} |
161 |
FORCE_REQUIRE+= NVTT |
162 |
.else |
163 |
FORCE_IGNORE+= NVTT |
164 |
.endif |
165 |
|
166 |
.if ${PORT_OPTIONS:MLUA} |
167 |
FORCE_REQUIRE+= Lua51 |
168 |
.else |
169 |
FORCE_IGNORE+= Lua51 |
170 |
.endif |
171 |
|
172 |
# options that affect PKG_CHECK_MODULES |
173 |
.if ${PORT_OPTIONS:MSVG} |
174 |
FORCE_REQUIRE+= RSVG |
175 |
.else |
176 |
FORCE_IGNORE+= RSVG |
177 |
.endif |
178 |
|
179 |
.if ${PORT_OPTIONS:MPDF} |
180 |
FORCE_REQUIRE+= Poppler-glib |
181 |
.else |
182 |
FORCE_IGNORE+= Poppler-glib |
183 |
.endif |
184 |
|
185 |
.if ${PORT_OPTIONS:MSVG} || ${PORT_OPTIONS:MPDF} |
186 |
USE_GNOME= cairo |
187 |
.endif |
188 |
|
189 |
# other options |
190 |
.if ${PORT_OPTIONS:MXRANDR} |
191 |
USE_XORG+= xrandr |
192 |
.endif |
193 |
|
194 |
post-patch: |
142 |
post-patch: |
195 |
@${FIND} ${WRKSRC}/CMakeModules -type f -print0 | ${XARGS} -0 \ |
143 |
@${FIND} ${WRKSRC}/CMakeModules -type f -print0 | ${XARGS} -0 \ |
196 |
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' |
144 |
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' |