Lines 21-45
Link Here
|
21 |
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc \ |
21 |
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc \ |
22 |
--program-prefix="" --localstatedir=/var |
22 |
--program-prefix="" --localstatedir=/var |
23 |
|
23 |
|
24 |
# MySQL deps hack |
|
|
25 |
MYSQL323_LIBVER=10 |
26 |
MYSQL40_LIBVER= 12 |
27 |
MYSQL41_LIBVER= 14 |
28 |
|
29 |
.include <bsd.port.pre.mk> |
30 |
|
31 |
.if defined(WITH_MYSQL_VER) |
32 |
MYSQL_VER= ${WITH_MYSQL_VER} |
33 |
.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL_323_LIBVER}) |
34 |
MYSQL_VER= 323 |
35 |
.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL40_LIBVER}) |
36 |
MYSQL_VER= 40 |
37 |
.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL41_LIBVER}) |
38 |
MYSQL_VER= 41 |
39 |
.else |
40 |
MYSQL_VER= 40 |
41 |
.endif |
42 |
|
43 |
.if defined(WITHOUT_SSL) |
24 |
.if defined(WITHOUT_SSL) |
44 |
CONFIGURE_ARGS+= --disable-openssl |
25 |
CONFIGURE_ARGS+= --disable-openssl |
45 |
.else |
26 |
.else |
Lines 48-54
Link Here
|
48 |
.endif |
29 |
.endif |
49 |
|
30 |
|
50 |
.if defined(WITH_MYSQL) |
31 |
.if defined(WITH_MYSQL) |
51 |
LIB_DEPENDS+= mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mysql${MYSQL_VER}-client |
32 |
USE_MYSQL= YES |
52 |
CONFIGURE_ARGS+= --enable-mysql |
33 |
CONFIGURE_ARGS+= --enable-mysql |
53 |
PLIST_SUB+= MYSQL="" |
34 |
PLIST_SUB+= MYSQL="" |
54 |
.else |
35 |
.else |
Lines 72-82
Link Here
|
72 |
@${ECHO} "" |
53 |
@${ECHO} "" |
73 |
@${ECHO} " WITHOUT_SSL=yes Disable SSL support" |
54 |
@${ECHO} " WITHOUT_SSL=yes Disable SSL support" |
74 |
@${ECHO} " WITH_MYSQL=yes Enable MySQL support" |
55 |
@${ECHO} " WITH_MYSQL=yes Enable MySQL support" |
75 |
@${ECHO} " - WITH_MYSQL_VER=323 Enable MySQL 3.23 support" |
|
|
76 |
@${ECHO} " - WITH_MYSQL_VER=40 Enable MySQL 4.0 support (default)" |
77 |
@${ECHO} " - WITH_MYSQL_VER=41 Enable MySQL 4.1 support" |
78 |
@${ECHO} " WITH_POSTGRES=yes Enable PostreSQL support" |
56 |
@${ECHO} " WITH_POSTGRES=yes Enable PostreSQL support" |
79 |
@${ECHO} "*---------------------------------------------------------------------------*" |
57 |
@${ECHO} "*---------------------------------------------------------------------------*" |
80 |
@${ECHO} "" |
58 |
@${ECHO} "" |
81 |
|
59 |
|
82 |
.include <bsd.port.post.mk> |
60 |
.include <bsd.port.mk> |