ports/www/mohawk/files/patch-Makefile.inc
John Marino 472f833ad4 www/mohawk: Unbreak on DragonFly, remove useless LDFLAG
The provided LDFLAG of -L${LOCALBASE}/lib/event2 would have stopped
working after libevent2.so moved to ${LOCALBASE}/lib had the LDFLAG
affected anything.  The LDFLAG is set by Makefile.inc, and the
handling of DragonFly is wrong for ports, although it might still be
correct for pkgsrc.  Fix that with a patch and remove the LDFLAG
that doesn't do anything.  No revbump required.
2014-09-30 23:31:37 +00:00

16 lines
359 B
PHP

--- Makefile.inc.orig 2014-09-15 17:40:01 UTC
+++ Makefile.inc
@@ -16,13 +16,8 @@ OSVERSION!= sysctl -n kern.osreldate
YFLAGS+= -i
CLEANFILES+= parse.i
.endif
-.if ${OPSYS} == "DragonFly"
-LDFLAGS+= -L${PREFIX}/lib/event2
-LDADD+= -levent-2.0
-.else
LDFLAGS+= -L${PREFIX}/lib
LDADD+= -levent
-.endif
.elif ${OPSYS} == "NetBSD"
PREFIX?= /usr/pkg