Line 0
Link Here
|
|
|
1 |
PORTNAME= wt |
2 |
DISTVERSION= 4.10.4 |
3 |
CATEGORIES= www |
4 |
|
5 |
MAINTAINER= info@babaei.net |
6 |
COMMENT= Widget-centric C++ library for developing web applications |
7 |
WWW= https://www.webtoolkit.eu/wt |
8 |
|
9 |
LICENSE= GPLv2 |
10 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
11 |
|
12 |
LIB_DEPENDS= libpng.so:graphics/png \ |
13 |
libboost_thread.so:devel/boost-libs \ |
14 |
libGraphicsMagick.so:graphics/GraphicsMagick |
15 |
|
16 |
USES= cmake:testing compiler:c++14-lang cpe pkgconfig ssl |
17 |
CPE_VENDOR= emweb |
18 |
USE_GITHUB= yes |
19 |
GH_ACCOUNT= emweb |
20 |
USE_LDCONFIG= yes |
21 |
USE_XORG= x11 |
22 |
|
23 |
CMAKE_ARGS= -DCONFIGDIR:STRING=${ETCDIR} \ |
24 |
-DDESTDIR:STRING=${STAGEDIR} \ |
25 |
-DDOCUMENTATION_DESTINATION:STRING=${DOCSDIR} \ |
26 |
-DEXAMPLES_DESTINATION:STRING=${EXAMPLESDIR_REL} \ |
27 |
-DGM_PREFIX:STRING=${LOCALBASE} \ |
28 |
-DWEBGROUP:STRING=${WWWGRP} \ |
29 |
-DWEBUSER:STRING=${WWWOWN} \ |
30 |
-DWT_WRASTERIMAGE_IMPLEMENTATION:STRING=GraphicsMagick |
31 |
CMAKE_OFF= BUILD_EXAMPLES BUILD_TESTS ENABLE_MYSQLSERVER \ |
32 |
ENABLE_QT4 ENABLE_QT5 ENABLE_QT6 |
33 |
CMAKE_TESTING_ON= BUILD_TESTS |
34 |
|
35 |
EXTRACT_AFTER_ARGS= --exclude .gitignore \ |
36 |
--exclude ${PORTNAME}-${DISTVERSION}/.vscode \ |
37 |
--exclude ${PORTNAME}-${DISTVERSION}/fuzz \ |
38 |
--exclude ${PORTNAME}-${DISTVERSION}/jenkins \ |
39 |
--exclude ${PORTNAME}-${DISTVERSION}/migrate \ |
40 |
--exclude ${PORTNAME}-${DISTVERSION}/selenium \ |
41 |
--exclude ${PORTNAME}-${DISTVERSION}/target \ |
42 |
--no-same-owner --no-same-permissions |
43 |
|
44 |
PLIST_SUB= VERSION=${DISTVERSION} |
45 |
PORTEXAMPLES= * |
46 |
|
47 |
OPTIONS_DEFINE= DEBUG EXAMPLES HARU LIBWTTEST OPENGL PANGO \ |
48 |
RESOURCES SAML THEMES UNWIND |
49 |
OPTIONS_DEFAULT= FASTCGI HARU OPENGL PANGO RESOURCES SQLITE3 WTHTTP \ |
50 |
EXAMPLES SAML THEMES FIREBIRD MYSQL PGSQL LIBWTTEST |
51 |
OPTIONS_GROUP= CONNECTOR DBO WSTRING |
52 |
OPTIONS_GROUP_CONNECTOR= FASTCGI WTHTTP |
53 |
OPTIONS_GROUP_DBO= FIREBIRD MYSQL PGSQL SQLITE3 |
54 |
NO_OPTIONS_SORT= yes |
55 |
OPTIONS_SUB= yes |
56 |
|
57 |
CONNECTOR_DESC= Connector |
58 |
DBO_DESC= Wt::DBO |
59 |
EXAMPLES_DESC= Install examples (implies SQLITE3 and WTHTTP) |
60 |
FASTCGI_DESC= Build FastCGI connector |
61 |
FIREBIRD_DESC= Build Wt with FirebirdSQL support |
62 |
HARU_DESC= Enable Haru Free PDF Library |
63 |
LIBWTTEST_DESC= Build Wt::Test for automated (integration/unit) tests |
64 |
MYSQL_DESC= Build Wt with MariaDB or MySQL support |
65 |
PGSQL_DESC= Build Wt with PostgreSQL support |
66 |
RESOURCES_DESC= Install resources directory |
67 |
SAML_DESC= Build built-in SAML service provider for Wt::Auth |
68 |
SQLITE3_DESC= Build Wt with SQLite 3 support |
69 |
THEMES_DESC= Install the source files for Wt's themes |
70 |
UNWIND_DESC= Build Wt with stacktrace support using libunwind |
71 |
WTHTTP_DESC= Build Wt stand-alone httpd connector |
72 |
|
73 |
EXAMPLES_IMPLIES= SQLITE3 WTHTTP |
74 |
EXAMPLES_CMAKE_BOOL= BUILD_EXAMPLES INSTALL_EXAMPLES |
75 |
|
76 |
FASTCGI_LIB_DEPENDS= libfcgi.so:www/fcgi \ |
77 |
libfcgi++.so:www/fcgi |
78 |
FASTCGI_CMAKE_BOOL= CONNECTOR_FCGI |
79 |
FASTCGI_CMAKE_ON= -DFCGI_PREFIX:STRING=${LOCALBASE} |
80 |
|
81 |
FIREBIRD_USES= firebird |
82 |
FIREBIRD_CMAKE_BOOL= ENABLE_FIREBIRD |
83 |
|
84 |
HARU_LIB_DEPENDS= libhpdf.so:print/libharu |
85 |
HARU_CMAKE_BOOL= ENABLE_HARU |
86 |
HARU_CMAKE_ON= -DHARU_PREFIX:STRING=${LOCALBASE} |
87 |
|
88 |
LIBWTTEST_CMAKE_BOOL= ENABLE_LIBWTTEST |
89 |
|
90 |
MYSQL_USES= mysql |
91 |
MYSQL_CMAKE_BOOL= ENABLE_MYSQL |
92 |
MYSQL_CMAKE_ON= -DMYSQL_PREFIX:STRING=${LOCALBASE} \ |
93 |
-DENABLE_LIBWTDBO:BOOL=ON |
94 |
|
95 |
OPENGL_USES= gl xorg |
96 |
OPENGL_USE= GL=opengl,glew xorg=x11 |
97 |
OPENGL_CMAKE_BOOL= ENABLE_OPENGL |
98 |
|
99 |
PANGO_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig |
100 |
PANGO_USES= gnome |
101 |
PANGO_USE= GNOME=pango |
102 |
PANGO_CMAKE_BOOL= ENABLE_PANGO |
103 |
|
104 |
PGSQL_USES= pgsql |
105 |
PGSQL_CMAKE_BOOL= ENABLE_POSTGRES |
106 |
PGSQL_CMAKE_ON= -DPOSTGRES_PREFIX:STRING=${LOCALBASE} \ |
107 |
-DENABLE_LIBWTDBO:BOOL=ON |
108 |
|
109 |
RESOURCES_CMAKE_BOOL= INSTALL_RESOURCES |
110 |
|
111 |
SAML_LIB_DEPENDS= libsaml.so:security/opensaml \ |
112 |
liblog4shib.so:devel/log4shib \ |
113 |
libxerces-c-3.2.so:textproc/xerces-c3 \ |
114 |
libxml-security-c.so:security/apache-xml-security-c \ |
115 |
libxmltooling.so:devel/xmltooling |
116 |
SAML_CMAKE_BOOL= ENABLE_SAML |
117 |
|
118 |
SQLITE3_USES= sqlite:3 |
119 |
SQLITE3_CMAKE_BOOL= ENABLE_SQLITE |
120 |
SQLITE3_CMAKE_ON= -DENABLE_LIBWTDBO:BOOL=ON |
121 |
|
122 |
THEMES_CMAKE_BOOL= INSTALL_THEMES |
123 |
|
124 |
UNWIND_LIB_DEPENDS= libunwind.so:devel/libunwind |
125 |
UNWIND_CMAKE_BOOL= ENABLE_UNWIND |
126 |
|
127 |
WTHTTP_CMAKE_BOOL= CONNECTOR_HTTP |
128 |
|
129 |
.include <bsd.port.options.mk> |
130 |
|
131 |
.if defined(WITH_DEBUG) |
132 |
PLIST_SUB+= DEBUG_LIBS_POSTFIX="d" |
133 |
CMAKE_ON+= DEBUG |
134 |
.else |
135 |
PLIST_SUB+= DEBUG_LIBS_POSTFIX="" |
136 |
.endif |
137 |
|
138 |
.if ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MPGSQL} || ${PORT_OPTIONS:MSQLITE3} |
139 |
PLIST_SUB+= DBO="" |
140 |
.else |
141 |
PLIST_SUB+= DBO="@comment " |
142 |
.endif |
143 |
|
144 |
post-install: |
145 |
@${MKDIR} ${STAGEDIR}${ETCDIR} |
146 |
${INSTALL_DATA} ${BUILD_WRKSRC}/wt_config.xml \ |
147 |
${STAGEDIR}${ETCDIR}/wt_config.xml.sample |
148 |
|
149 |
do-test: |
150 |
@cd ${WRKSRC}/test && \ |
151 |
${BUILD_WRKSRC}/test/test.wt && \ |
152 |
${BUILD_WRKSRC}/test/test.sqlite3 && \ |
153 |
${BUILD_WRKSRC}/test/test.http |
154 |
|
155 |
.include <bsd.port.mk> |