diff options
author | bsam <bsam@FreeBSD.org> | 2013-05-27 19:14:56 +0800 |
---|---|---|
committer | bsam <bsam@FreeBSD.org> | 2013-05-27 19:14:56 +0800 |
commit | 821c92310398623958c4101c754f6c6536b08f68 (patch) | |
tree | af9c94d237e455860f00368ddc818737d067fb4b /sysutils | |
parent | 3ff83adb53c55bd59c801a4346d551f1433e5e1e (diff) | |
download | freebsd-ports-gnome-821c92310398623958c4101c754f6c6536b08f68.tar.gz freebsd-ports-gnome-821c92310398623958c4101c754f6c6536b08f68.tar.zst freebsd-ports-gnome-821c92310398623958c4101c754f6c6536b08f68.zip |
. trim Makefile headres;
. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. seems that nothing requires .pre. and .post. includes.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/ledit/Makefile | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/sysutils/ledit/Makefile b/sysutils/ledit/Makefile index a9928c298299..81eacc078e3d 100644 --- a/sysutils/ledit/Makefile +++ b/sysutils/ledit/Makefile @@ -1,10 +1,5 @@ -# ex:ts=8 -# Ports collection makefile for: ledit -# Date created: Feb 8, 2005 -# Whom: Marwan Burelle <marwan.burelle@lri.fr> -# +# Created by: Marwan Burelle <marwan.burelle@lri.fr> # $FreeBSD$ -# PORTNAME= ledit PORTVERSION= 2.03 @@ -31,8 +26,7 @@ MAKE_JOBS_UNSAFE= yes MAN1= ledit.1 PORTDOCS= CHANGES LICENSE README - -.include <bsd.port.pre.mk> +OPTIONS_DEFINE= DOCS do-configure: ${REINPLACE_CMD} -e '/^BINDIR=/s;/usr/local;${PREFIX};' \ @@ -40,12 +34,12 @@ do-configure: -e '/^MANDIR=/s;/usr/local;${PREFIX};' \ ${WRKSRC}/Makefile +.include <bsd.port.options.mk> + post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} -. for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -. endfor + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |