1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/devel/readline/Makefile
Johan van Selst 1d78cd42b2 Update readline with three new patches
PR:		ports/188086
Submitted by:	Jason Harris <jharris@widomaker.com>
2014-03-31 05:42:42 +00:00

48 lines
1.1 KiB
Makefile

# Created by: Frank Laszlo <laszlof@vonostingroup.com>
# $FreeBSD$
PORTNAME= readline
PORTVERSION= 6.3${PATCHLEVEL}
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= GNU \
ftp://ftp.cwru.edu/pub/bash/
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:C/^([0-9].[0-9]).*/\1/}
PATCH_SITES= ${MASTER_SITES}
PATCH_SITE_SUBDIR=${PORTNAME}/${PORTNAME}-${PORTVERSION:R}-patches
MAINTAINER= johans@FreeBSD.org
COMMENT= Library for editing command lines as they are typed
LICENSE= GPLv3
OPTIONS_DEFINE= TERMCAP
OPTIONS_DEFAULT=TERMCAP
TERMCAP_DESC= Link against libtermcap
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INFO= readline rluserman history
PATCHES= 1 2 3
.for p in ${PATCHES:S/^/00/}
PATCHFILES+= ${PORTNAME}${PORTVERSION:R:S/.//}-${p:C/.*(...)$/\1/}
.endfor
PATCHLEVEL= ${PATCHES:M1:S/1/./}${PATCHES:Q:S/^/./:S/ /./g:E}
.include <bsd.port.options.mk>
pre-configure:
.if ${PORT_OPTIONS:MTERMCAP}
${REINPLACE_CMD} "s/SHOBJ_LDFLAGS =/SHOBJ_LDFLAGS = -ltermcap/" ${WRKSRC}/shlib/Makefile.in
.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libreadline.so.6 \
${STAGEDIR}${PREFIX}/lib/libhistory.so.6
.include <bsd.port.mk>