21a283f3be
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now, we won't have conflicts there. Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel has the correct PKGNAME anyway. Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called OPTIONS_FILE now.) Reviewed by: antoine, bapt Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3336
59 lines
1.3 KiB
Makefile
59 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PARENTDIR?= ${.CURDIR:S|-reference$||}
|
|
REFERENCE_PORT= ${PKGORIGIN:S|-reference$||}
|
|
|
|
PORTSCOUT= ignore:1
|
|
|
|
.include "${PARENTDIR}/Makefile"
|
|
|
|
.if !defined(DOCSDIR)
|
|
DOCSDIR:= ${PREFIX}/share/doc/${PORTNAME}
|
|
.endif
|
|
.if !defined(EXAMPLESDIR)
|
|
EXAMPLESDIR:= ${PREFIX}/share/examples/${PORTNAME}
|
|
.endif
|
|
.if defined(DISTNAME)
|
|
DISTNAME:= ${DISTNAME}
|
|
.else
|
|
DISTNAME:= ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
|
|
.endif
|
|
.if defined(MASTER_SITE_SUBDIR)
|
|
MASTER_SITE_SUBDIR:= ${MASTER_SITE_SUBDIR}
|
|
.endif
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-reference
|
|
|
|
COMMENT= Programming reference for ${REFERENCE_PORT}
|
|
|
|
DISTINFO_FILE= ${PARENTDIR}/distinfo
|
|
|
|
REFERENCE_SRC?= ${WRKSRC}/docs/reference
|
|
BOOKS?= .
|
|
|
|
PORTDOCS?= *
|
|
|
|
.if !target(do-build)
|
|
do-build:
|
|
@${DO_NADA}
|
|
.endif
|
|
|
|
make-descr:
|
|
@${ECHO_CMD} "This port contains the programming reference for ${REFERENCE_PORT}." > ${DESCR}
|
|
@www=`${GREP} "^WWW:" ${PARENTDIR}/pkg-descr` || ${TRUE}; \
|
|
if [ -n "$$www" ]; then \
|
|
${ECHO_CMD} "" >> ${DESCR}; \
|
|
${ECHO_CMD} "$$www" >> ${DESCR}; \
|
|
fi
|
|
|
|
.if !target(do-install)
|
|
do-install:
|
|
. for d in ${BOOKS}
|
|
if [ -d ${REFERENCE_SRC}/${d}/html ]; then \
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/${d}; \
|
|
cd ${REFERENCE_SRC}/${d}/html && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${d}; \
|
|
fi
|
|
. endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|