Support stage

Use options
Use do-install to avoid running buggy upstreamed install target
This commit is contained in:
Baptiste Daroussin 2014-02-28 08:46:09 +00:00
parent 3c6b7d1811
commit e9629e38f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346467

View file

@ -7,14 +7,15 @@ CATEGORIES= x11-wm
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= dhn@FreeBSD.org
COMMENT= A minimalist window manager inspired by Ratpoison
COMMENT= Minimalist window manager inspired by Ratpoison
OPTIONS_DEFINE= DOCS
USE_XORG= x11
PLIST_FILES= bin/antiwm
PORTDOCS= README LICENSE
NO_STAGE= yes
pre-everything::
@${ECHO_MSG} "You can build antiwm with your own conf.h using the ANTIWM_CONF knob:"
@${ECHO_MSG} "make ANTIWM_CONF=/path/to/antiwm/conf.h install clean"
@ -25,11 +26,9 @@ post-extract:
@${CP} ${ANTIWM_CONF} ${WRKSRC}/conf.h
.endif
post-install:
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>