opnsense-ports/sysutils/mapchan/files/patch-Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

23 lines
514 B
Text

--- Makefile.orig 2008-09-11 20:28:12.000000000 +0500
+++ Makefile 2013-05-26 20:10:47.000000000 +0400
@@ -1,6 +1,6 @@
#
#
-CFLAGS ?= -O2
+CFLAGS?=$(CFLAGS)
#CFLAGS ?= -g
#
# Defines:
@@ -29,9 +29,9 @@
DEFS+=-DESC_C_TBL
DESTDIR ?= /
-BINDIR ?= $(DESTDIR)/bin
-MAPDIR ?= $(DESTDIR)/etc/mapchan
-LDFLAGS ?= -s
+BINDIR?=${STAGEDIR}$(PREFIX)/bin
+MAPDIR?=${STAGEDIR}$(PREFIX)/mapchan
+LDFLAGS+=-s -lutil
LOADLIBES = -lutil
#--------------------------------------------------------------
CFLAGS += $(DEFS)