Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 2014 18:37:19 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r364461 - head/devel/cdecl/files
Message-ID:  <53e66a5f.2eda.78a6d4c6@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Sat Aug  9 18:37:19 2014
New Revision: 364461
URL: http://svnweb.freebsd.org/changeset/ports/364461
QAT: https://qat.redports.org/buildarchive/r364461/

Log:
  Honour CPPFLAGS and LDFLAGS to fix readline support on current.

Modified:
  head/devel/cdecl/files/patch-Makefile

Modified: head/devel/cdecl/files/patch-Makefile
==============================================================================
--- head/devel/cdecl/files/patch-Makefile	Sat Aug  9 18:36:56 2014	(r364460)
+++ head/devel/cdecl/files/patch-Makefile	Sat Aug  9 18:37:19 2014	(r364461)
@@ -1,14 +1,15 @@
---- ./Makefile.orig	1996-01-16 06:36:38.000000000 +0100
-+++ ./Makefile	2013-06-10 00:05:02.101069622 +0200
+--- Makefile.orig	1996-01-16 00:36:38.000000000 -0500
++++ Makefile	2014-08-09 14:36:10.000000000 -0400
 @@ -15,13 +15,13 @@
  #
  # add -DUSE_READLINE	To compile in support for the GNU readline library.
  
 -CFLAGS= -s -O2 -DUSE_READLINE
 -CC= gcc
-+CFLAGS+= -s -DUSE_READLINE
+-LIBS= -lreadline -ltermcap
++CFLAGS+= -s -DUSE_READLINE ${CPPFLAGS}
 +CC?= gcc
- LIBS= -lreadline -ltermcap
++LIBS= -lreadline -ltermcap ${LDFLAGS}
  ALLFILES= makefile cdgram.y cdlex.l cdecl.c cdecl.1 testset testset++
 -BINDIR= /usr/bin
 -MANDIR= /usr/man/man1
@@ -24,11 +25,11 @@
  
  install: cdecl
 -	$(INSTALL) cdecl $(BINDIR)
-+	${BSD_INSTALL_PROGRAM} cdecl $(STAGEDIR)$(BINDIR)
 -	ln $(BINDIR)/cdecl $(BINDIR)/c++decl
-+	ln -s $(BINDIR)/cdecl $(STAGEDIR)$(BINDIR)/c++decl
 -	$(INSTALL_DATA) cdecl.1 $(MANDIR)
 -	$(INSTALL_DATA) c++decl.1 $(MANDIR)
++	${BSD_INSTALL_PROGRAM} cdecl $(STAGEDIR)$(BINDIR)
++	ln -s $(BINDIR)/cdecl $(STAGEDIR)$(BINDIR)/c++decl
 +	${BSD_INSTALL_MAN} cdecl.1 $(STAGEDIR)$(MANDIR)
 +	ln -s $(MANDIR)/cdecl.1 $(STAGEDIR)$(MANDIR)/c++decl.1
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e66a5f.2eda.78a6d4c6>