rchivers/lha: add support for DISABLE_LICENSES

PR: 270082
This commit is contained in:
Dirk Meyer 2023-03-13 10:22:43 +01:00
parent 0af04dc86b
commit aa4c061dc6

View file

@ -20,13 +20,17 @@ CPE_VENDOR= tsugio_okamoto
PLIST_FILES= bin/lha
PLIST_FILES+= man/ja/man1/lha.1.gz
PLIST_FILES+= share/${UNIQUE_PREFIX}${PORTNAME}/lha-114i.tar.gz
.if !defined(DISABLE_LICENSES)
PLIST_FILES+= share/licenses/${PKGNAME}/LICENSE.en
.endif
do-install:
-${MKDIR} ${STAGEDIR}${PREFIX}/man/ja/man1 ${STAGEDIR}${DATADIR} ${STAGEDIR}${_LICENSE_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/src/lha ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/man/lha.n ${STAGEDIR}${PREFIX}/man/ja/man1/lha.1
${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${STAGEDIR}${DATADIR}/
.if !defined(DISABLE_LICENSES)
${INSTALL_DATA} ${FILESDIR}/LICENSE.en ${STAGEDIR}${_LICENSE_DIR}/
.endif
.include <bsd.port.mk>