Index: Makefile =================================================================== --- Makefile (révision 347104) +++ Makefile (copie de travail) @@ -12,7 +12,7 @@ LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \ libgmime-2.4.so:${PORTSDIR}/mail/gmime24 \ - libevent.so:${PORTSDIR}/devel/libevent + libevent-2.0.so:${PORTSDIR}/devel/libevent2 OPTIONS_DEFINE= GPERF JUDY REDIRECTOR GPERF_DESC= google perf-tools profiling @@ -32,8 +32,16 @@ -DBUILD_PORT=yes \ -DFORCE_GMIME24=yes \ -DLIBDIR=${PREFIX}/lib \ - -DNO_SHARED=ON + -DNO_SHARED=ON \ + -DLIBEVENT_EVHTTP=${LOCALBASE}/include/event2/compat \ + -DLIBEVENT_INCLUDE="${LOCALBASE}/include/event2/compat:${LOCALBASE}/include" \ + -DLIBEVENT_LIBRARY="${LOCALBASE}/lib/event2/libevent-2.0.so" +# To allow HAVE_EVENT2 test to pass +CFLAGS+= -I${LOCALBASE}/include/event2/compat \ + -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib/event2 + USES= cmake:outsource gettext iconv pkgconfig lua:51+ USE_LDCONFIG= yes