Stagify; while using ${STAGEDIR} in INSTALL_PREFIX looks suspicious, it

is actually okay here, since this value is not referenced in the source
code itself yet simplifies things for us (no patches needed).
This commit is contained in:
Alexey Dokuchaev 2014-01-17 02:56:01 +00:00
parent 57bbcc44c1
commit 07bf796007
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340010

View file

@ -12,21 +12,16 @@ COMMENT= Small and fast console hex editor for Unix-like systems
LICENSE= GPLv2
ALL_TARGET= ${PORTNAME}
MAKE_ARGS= CFLAGS="${CFLAGS} -Wall -DHAVE_MMAP" INSTALL_PREFIX="${PREFIX}"
MAKE_ARGS= CFLAGS="${CFLAGS} -Wall -DHAVE_MMAP" \
INSTALL_PREFIX="${STAGEDIR}${PREFIX}"
PLIST_FILES= bin/${PORTNAME}
MAN1= ${PORTNAME}.1
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
PORTDOCS= README
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>