mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 21:00:30 -04:00
Enable readline support.
PR: 85793 Submitted by: Nicola Vitale <nivit@email.it>
This commit is contained in:
parent
deb072054d
commit
d285f0f101
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=142520
2 changed files with 21 additions and 7 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= aamath
|
PORTNAME= aamath
|
||||||
PORTVERSION= 0.3
|
PORTVERSION= 0.3
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= math textproc
|
CATEGORIES= math textproc
|
||||||
MASTER_SITES= http://fuse.superglue.se/aamath/
|
MASTER_SITES= http://fuse.superglue.se/aamath/
|
||||||
|
|
||||||
|
@ -18,8 +19,18 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||||
PLIST_FILES+= bin/${PORTNAME}
|
PLIST_FILES+= bin/${PORTNAME}
|
||||||
MAN1= aamath.1
|
MAN1= aamath.1
|
||||||
|
|
||||||
|
MAKE_ENV+= LDFLAGS="${LDFLAGS}"
|
||||||
|
LDFLAGS= -lreadline
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if ${OSVERSION} < 500000
|
||||||
|
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
|
||||||
|
CFLAGS+= -I${LOCALBASE}/include
|
||||||
|
LDFLAGS= ${LOCALBASE}/lib/libreadline.so
|
||||||
|
.endif
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${INSTALL_SCRIPT} ${WRKSRC}/aamath ${PREFIX}/bin
|
@${INSTALL_SCRIPT} ${WRKSRC}/aamath ${PREFIX}/bin
|
||||||
@${INSTALL_DATA} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
|
@${INSTALL_DATA} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
.include <bsd.port.mk>
|
|
||||||
|
|
|
@ -1,14 +1,17 @@
|
||||||
--- Makefile.orig Thu Jun 23 00:12:18 2005
|
--- Makefile Wed Jun 22 22:12:18 2005
|
||||||
+++ Makefile Thu Jun 23 15:08:04 2005
|
+++ Makefile.port Tue Sep 6 13:29:09 2005
|
||||||
@@ -3,7 +3,7 @@
|
@@ -3,9 +3,9 @@
|
||||||
CXXFILES = parser.cc lexer.cc expr.cc canvas.cc aamath.cc
|
CXXFILES = parser.cc lexer.cc expr.cc canvas.cc aamath.cc
|
||||||
OBJS = $(CXXFILES:.cc=.o)
|
OBJS = $(CXXFILES:.cc=.o)
|
||||||
TARGET = aamath
|
TARGET = aamath
|
||||||
-CFLAGS = -Wall -O2 -g -DUSE_READLINE
|
-CFLAGS = -Wall -O2 -g -DUSE_READLINE
|
||||||
+CFLAGS ?= -Wall -O2 -g -DUSE_READLINE
|
+CFLAGS += -Wall -g -DUSE_READLINE
|
||||||
LFLAGS = -g
|
LFLAGS = -g
|
||||||
LIBS = -lreadline -ltermcap
|
-LIBS = -lreadline -ltermcap
|
||||||
|
+LIBS = $(LDFLAGS) -ltermcap
|
||||||
|
|
||||||
|
$(TARGET): $(OBJS)
|
||||||
|
$(LD) $(LFLAGS) $(OBJS) -o $@ $(LIBS)
|
||||||
@@ -21,3 +21,5 @@
|
@@ -21,3 +21,5 @@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Add table
Reference in a new issue