freebsd-ports/devel/libedit/Makefile
Mathieu Arnold 6d588589c2 Make defining both PORTVERSION and DISTVERSION a DEV_ERROR.
There are two cases:

- The upstream versionning is compatible with our versionning, or using
  DISTVERSION's magic leads to a compatible PORTVERSION, use
  DISTVERSION.  If it is possible to use DISTVERSIONPREFIX and
  DISTVERSIONSUFFIX to make it compatible, use them.
- The upstream versionning is not compatible with our versionning, and
  DISTVERSION's magic does not lead to a correct PORTVERSION, then set
  PORTVERSION to the equivalent of our versionning, and set DISTNAME.
  It is possible to use a third variable where you store upstream's
  version and use it to compute PORTVERSION and/or DISTNAME, like the
  dns/bind9* ports do.

Sponsored by:	Absolight
2017-04-11 15:21:23 +00:00

31 lines
674 B
Makefile

# Created by: jasone
# $FreeBSD$
PORTNAME= libedit
PORTVERSION= ${EDITVERSION}.${EDITDATE}
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= http://thrysoee.dk/editline/
DISTNAME= ${PORTNAME}-${EDITDATE}-${EDITVERSION}
MAINTAINER= bapt@FreeBSD.org
COMMENT= Command line editor library
LICENSE= BSD2CLAUSE
USES= libtool ncurses pathfix
EDITVERSION= 3.1
EDITDATE= 20170329
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CONFIGURE_ARGS= --enable-widec
LDFLAGS+= -L${LOCALBASE}/lib
CONFLICTS_INSTALL= editline-*
post-install:
${MV} ${STAGEDIR}${PREFIX}/man/man3/history.3 ${STAGEDIR}${PREFIX}/man/man3/el_history.3
.include <bsd.port.mk>