openbsd-ports/devel/readline/Makefile
2013-04-18 15:08:01 +00:00

44 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2013/04/18 15:08:01 sthen Exp $
COMMENT = library to edit command lines as they are typed in
V = 6.2
DISTNAME = readline-${V}
PKGNAME = readline-${V}pl4
PATCHFILES = readline62-001:0 \
readline62-002:0 \
readline62-003:0 \
readline62-004:0
LIBV = 0.1
SHARED_LIBS += ehistory ${LIBV}
SHARED_LIBS += ereadline ${LIBV}
CATEGORIES = devel
HOMEPAGE = http://tiswww.case.edu/php/chet/readline/rltop.html
MAINTAINER = Laurent Fanis <laurent@openbsd.org>
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = ${MASTER_SITE_GNU:=readline/}
MASTER_SITES0 = ${MASTER_SITE_GNU:=readline/${DISTNAME}-patches/}
CONFIGURE_STYLE = gnu
SEPARATE_BUILD = Yes
MAKE_ENV = RL_SHLIB_V=${LIBereadline_VERSION}
pre-configure:
perl -pi \
-e 's,History: \(history\). ,eHistory: (ehistory).,;' \
-e 's,Readline: \(readline\). ,eReadline: (ereadline).,;' \
-e 's,RLuserman: \(rluserman\). ,eRLuserman: (erluserman).,;' \
-e 's,readline.info,ereadline.info,g;' \
-e 's,history.info,ehistory.info,g;' \
-e 's,rluserman.info,erluserman.info,g' \
${WRKSRC}/doc/{readline,history,rluserman}.info
.include <bsd.port.mk>