Lines 7-12
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= lmtpd |
8 |
PORTNAME= lmtpd |
9 |
PORTVERSION= 0.9.16 |
9 |
PORTVERSION= 0.9.16 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= mail |
11 |
CATEGORIES= mail |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= pll |
13 |
MASTER_SITE_SUBDIR= pll |
Lines 14-29
Link Here
|
14 |
MAINTAINER= kiwi@oav.net |
15 |
MAINTAINER= kiwi@oav.net |
15 |
COMMENT= LMTP server compliant with RFC 2033 and Maildir++ |
16 |
COMMENT= LMTP server compliant with RFC 2033 and Maildir++ |
16 |
|
17 |
|
17 |
LIB_DEPENDS= mysqlclient:${PORTSDIR}/databases/mysql323-client \ |
18 |
LIB_DEPENDS= iconv:${PORTSDIR}/converters/libiconv |
18 |
pcre:${PORTSDIR}/devel/pcre \ |
|
|
19 |
iconv:${PORTSDIR}/converters/libiconv \ |
20 |
db3.3:${PORTSDIR}/databases/db3 |
21 |
BUILD_DEPENDS= ${LOCALBASE}/lib/libhome.a:${PORTSDIR}/misc/libhome |
19 |
BUILD_DEPENDS= ${LOCALBASE}/lib/libhome.a:${PORTSDIR}/misc/libhome |
22 |
|
20 |
|
|
|
21 |
OPTIONS= PCRE "Support for PCRE" on |
22 |
|
23 |
.include <bsd.port.pre.mk> |
24 |
|
25 |
.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so) |
26 |
WITH_MYSQL=yes |
27 |
OPTIONS+= MYSQL "Support for MySQL Queries and Logs" on |
28 |
.else |
29 |
OPTIONS+= MYSQL "Support for MySQL Queries and Logs" off |
30 |
.endif |
31 |
|
32 |
.if exists(${LOCALBASE}/lib/libdb3.so) |
33 |
WITH_DB3= yes |
34 |
OPTIONS+= DB3 "Support for DB3" on |
35 |
.else |
36 |
OPTIONS+= DB3 "Support for DB3" off |
37 |
.endif |
38 |
|
39 |
.if exists(${LOCALBASE}/lib/libdb4.so) |
40 |
WITH_DB4= yes |
41 |
OPTIONS+= DB3 "Support for DB4" on |
42 |
.else |
43 |
OPTIONS+= DB3 "Support for DB4" off |
44 |
.endif |
45 |
|
46 |
.if defined(WITH_DB3) && defined(WITH_DB4) |
47 |
.error You cannot use DB3 and DB4 in the same time. |
48 |
.endif |
49 |
|
50 |
.if defined(WITH_PCRE) |
51 |
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre |
52 |
CONFIGURE_ARGS+= --with-pcre |
53 |
.else |
54 |
CONFIGURE_ARGS+= --without-pcre |
55 |
.endif |
56 |
|
57 |
.if defined(WITH_MYSQL) |
58 |
USE_MYSQL= yes |
59 |
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}/include/mysql --with-mysqllog |
60 |
.else |
61 |
CONFIGURE_ARGS+= --without-mysql --without-mysqllog |
62 |
.endif |
63 |
|
64 |
.if defined(WITH_DB3) |
65 |
LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3 |
66 |
CONFIGURE_ARGS+= --with-db3=${LOCALBASE}/include/db3 --without-db4 |
67 |
.else |
68 |
CONFIGURE_ARGS+= --without-db3 |
69 |
.endif |
70 |
|
71 |
.if defined(WITH_DB4) |
72 |
LIB_DEPENDS+= db4:${PORTSDIR}/databases/db4 |
73 |
CONFIGURE_ARGS+= --with-db4=${LOCALBASE}/include/db4 --without-db3 |
74 |
.else |
75 |
CONFIGURE_ARGS+= --without-db4 |
76 |
.endif |
77 |
|
23 |
GNU_CONFIGURE= YES |
78 |
GNU_CONFIGURE= YES |
24 |
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" |
79 |
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" |
25 |
CONFIGURE_ARGS= --with-mysqllog --with-db3 -without-db4 \ |
80 |
CONFIGURE_ARGS+= --without-perl |
26 |
--with-pcre --without-perl |
|
|
27 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
81 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
28 |
|
82 |
|
29 |
MAN8= lmtpd.8 |
83 |
MAN8= lmtpd.8 |
Lines 42-45
Link Here
|
42 |
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} |
96 |
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} |
43 |
.endif |
97 |
.endif |
44 |
|
98 |
|
45 |
.include <bsd.port.mk> |
99 |
.include <bsd.port.post.mk> |