aboutsummaryrefslogtreecommitdiff
path: root/www/mohawk
diff options
context:
space:
mode:
Diffstat (limited to 'www/mohawk')
-rw-r--r--www/mohawk/Makefile7
-rw-r--r--www/mohawk/files/patch-Makefile.inc13
2 files changed, 17 insertions, 3 deletions
diff --git a/www/mohawk/Makefile b/www/mohawk/Makefile
index b2eb29f69f93..f49e1f1e1666 100644
--- a/www/mohawk/Makefile
+++ b/www/mohawk/Makefile
@@ -2,6 +2,7 @@
PORTNAME= mohawk
PORTVERSION= 2.0.13
+PORTREVISION= 1
CATEGORIES= www ipv6
MASTER_SITES= http://fossil.bsdsx.fr/mohawk/tarball/ \
http://fossil.etoilebsd.net/mohawk/tarball/
@@ -12,7 +13,7 @@ COMMENT= Simple and lightweight HTTP daemon
LICENSE= BSD2CLAUSE
-LIB_DEPENDS= libevent-2.0.so:${PORTSDIR}/devel/libevent2
+LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
PLIST_FILES+= bin/mhtpasswd \
man/man5/mohawk.conf.5.gz \
@@ -24,8 +25,8 @@ PLIST_FILES+= bin/mhtpasswd \
PORTEXAMPLES= *
USE_RC_SUBR= mohawk
-CFLAGS+= -I${LOCALBASE}/include/event2/compat -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib/event2
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= EXAMPLES
diff --git a/www/mohawk/files/patch-Makefile.inc b/www/mohawk/files/patch-Makefile.inc
new file mode 100644
index 000000000000..5edf7d50ba59
--- /dev/null
+++ b/www/mohawk/files/patch-Makefile.inc
@@ -0,0 +1,13 @@
+--- Makefile.inc.orig 2014-07-24 14:39:15.798656512 +0200
++++ Makefile.inc 2014-07-24 14:39:25.056652385 +0200
+@@ -9,8 +9,8 @@
+ .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
+ PREFIX?= /usr/local
+ CFLAGS+= -I${PREFIX}/include
+-LDFLAGS+= -L${PREFIX}/lib/event2
+-LDADD+= -lcrypt -levent-2.0
++LDFLAGS+= -L${PREFIX}/lib
++LDADD+= -lcrypt -levent
+ MANDIR= ${PREFIX}/man/man
+ OSVERSION!= sysctl -n kern.osreldate
+ .if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1000032