mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Use CFLAGS and LDFLAGS at the port's Makefile instead of
patching the makefile at sources.
This commit is contained in:
parent
a475587529
commit
622dcbdbb8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319117
@ -13,6 +13,8 @@ COMMENT= Transform the input and output of a terminal (SCO Unix alike)
|
||||
USES= iconv
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
MAKE_ENV= MAPDIR=${PREFIX}/etc/${PORTNAME}
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib -liconv
|
||||
ETCDAT= *.map default.sample
|
||||
MAN8= mapchan.8
|
||||
PORTDOCS= README
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- Makefile.orig 2008-09-11 20:28:12.000000000 +0500
|
||||
+++ Makefile 2013-05-26 13:56:49.000000000 +0400
|
||||
+++ Makefile 2013-05-26 20:10:47.000000000 +0400
|
||||
@@ -1,6 +1,6 @@
|
||||
#
|
||||
#
|
||||
@ -8,18 +8,16 @@
|
||||
#CFLAGS ?= -g
|
||||
#
|
||||
# Defines:
|
||||
@@ -29,10 +29,10 @@ DEFS+=-DMAP_ONOFF
|
||||
@@ -29,9 +29,9 @@
|
||||
DEFS+=-DESC_C_TBL
|
||||
|
||||
DESTDIR ?= /
|
||||
-BINDIR ?= $(DESTDIR)/bin
|
||||
-MAPDIR ?= $(DESTDIR)/etc/mapchan
|
||||
-LDFLAGS ?= -s
|
||||
-LOADLIBES = -lutil
|
||||
+BINDIR?=$(PREFIX)/bin
|
||||
+MAPDIR?=$(PREFIX)/mapchan
|
||||
+LDFLAGS=-s -lutil -liconv -I /usr/local/include -L /usr/local/lib
|
||||
+LOADLIBES = -lutil -liconv
|
||||
+LDFLAGS+=-s -lutil
|
||||
LOADLIBES = -lutil
|
||||
#--------------------------------------------------------------
|
||||
CFLAGS += $(DEFS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user