Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= silc |
8 |
PORTNAME= silc |
9 |
PORTVERSION= 1.1.2 |
9 |
PORTVERSION= 1.1.3 |
10 |
CATEGORIES= net ipv6 security |
10 |
CATEGORIES= net ipv6 security |
11 |
MASTER_SITES= http://www.silcnet.org/download/%SUBDIR%/ \ |
11 |
MASTER_SITES= http://www.silcnet.org/download/%SUBDIR%/ \ |
12 |
http://ftp.silcnet.org/%SUBDIR%/ \ |
12 |
http://ftp.silcnet.org/%SUBDIR%/ \ |
Lines 36-46
Link Here
|
36 |
--with-perl=no \ |
36 |
--with-perl=no \ |
37 |
--without-libtoolfix |
37 |
--without-libtoolfix |
38 |
|
38 |
|
39 |
.ifndef(WITH_PTHREADS) |
39 |
OPTIONS= PTHREADS "Enable pthreads support" off \ |
40 |
CONFIGURE_ARGS+= --without-pthreads |
40 |
IPV6 "Enable IPv6 support" on \ |
41 |
.else |
41 |
OPTIMIZED_ASM "Use assembler optimizations (i386 only)" on |
42 |
CONFIGURE_ENV+= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} ${PTHREAD_LIBS}" |
|
|
43 |
.endif |
44 |
|
42 |
|
45 |
.ifdef(IRSSI_PLUGIN) |
43 |
.ifdef(IRSSI_PLUGIN) |
46 |
CONFIGURE_ARGS+= --with-silc-plugin=${PREFIX}/lib/irssi \ |
44 |
CONFIGURE_ARGS+= --with-silc-plugin=${PREFIX}/lib/irssi \ |
Lines 53-69
Link Here
|
53 |
MAN1= silc.1 |
51 |
MAN1= silc.1 |
54 |
.endif |
52 |
.endif |
55 |
|
53 |
|
56 |
pre-everything:: |
|
|
57 |
.ifndef(WITHOUT_IPV6) |
58 |
@${ECHO_MSG} '===> Define WITHOUT_IPV6 to disable IPv6 support' |
59 |
.endif |
60 |
.ifndef(WITHOUT_OPTIMIZED_ASM) |
61 |
@${ECHO_MSG} '===> Define WITHOUT_OPTIMIZED_ASM to disable assembler optimizations' |
62 |
.endif |
63 |
.ifndef(WITH_PTHREADS) |
64 |
@${ECHO_MSG} '===> Define WITH_PTHREADS to enable pthreads support' |
65 |
.endif |
66 |
|
67 |
post-patch: |
54 |
post-patch: |
68 |
# install neither documentation nor silc server, we have ports for those |
55 |
# install neither documentation nor silc server, we have ports for those |
69 |
@${REINPLACE_CMD} -e 's/-D_THREAD_SAFE//' ${WRKSRC}/${CONFIGURE_SCRIPT} |
56 |
@${REINPLACE_CMD} -e 's/-D_THREAD_SAFE//' ${WRKSRC}/${CONFIGURE_SCRIPT} |
Lines 89-100
Link Here
|
89 |
WITHOUT_OPTIMIZED_ASM= yes |
76 |
WITHOUT_OPTIMIZED_ASM= yes |
90 |
.endif |
77 |
.endif |
91 |
|
78 |
|
92 |
.ifndef(WITHOUT_IPV6) |
79 |
.if defined(WITHOUT_IPV6) |
93 |
CONFIGURE_ARGS+= --enable-ipv6 |
80 |
CONFIGURE_ARGS+= --disable-ipv6 |
94 |
.endif |
81 |
.endif |
95 |
|
82 |
|
96 |
.ifdef(WITHOUT_OPTIMIZED_ASM) |
83 |
.if defined(WITHOUT_OPTIMIZED_ASM) |
97 |
CONFIGURE_ARGS+= --disable-asm |
84 |
CONFIGURE_ARGS+= --disable-asm |
98 |
.endif |
85 |
.endif |
99 |
|
86 |
|
|
|
87 |
.if defined(WITH_PTHREADS) |
88 |
CONFIGURE_ENV+= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} ${PTHREAD_LIBS}" |
89 |
.else |
90 |
CONFIGURE_ARGS+= --without-pthreads |
91 |
.endif |
92 |
|
100 |
.include <bsd.port.post.mk> |
93 |
.include <bsd.port.post.mk> |