2006-05-10 00:03:26 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PARENTDIR?= ${.CURDIR:S|-reference$||}
|
|
|
|
REFERENCE_PORT= ${PKGORIGIN:S|-reference$||}
|
|
|
|
|
2013-06-11 16:26:02 +02:00
|
|
|
PORTSCOUT= ignore
|
|
|
|
|
2006-05-10 00:03:26 +02:00
|
|
|
.include "${PARENTDIR}/Makefile"
|
|
|
|
|
2010-11-21 14:47:54 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
IGNORE= This port installs documents, but you have selected NOPORTDOCS
|
|
|
|
.endif
|
|
|
|
|
2006-05-10 00:03:26 +02:00
|
|
|
.if !defined(DOCSDIR)
|
|
|
|
DOCSDIR:= ${PREFIX}/share/doc/${PORTNAME}
|
|
|
|
.endif
|
2006-05-11 19:23:49 +02:00
|
|
|
.if !defined(EXAMPLESDIR)
|
|
|
|
EXAMPLESDIR:= ${PREFIX}/share/examples/${PORTNAME}
|
|
|
|
.endif
|
2006-05-10 18:21:23 +02:00
|
|
|
.if defined(DISTNAME)
|
|
|
|
DISTNAME:= ${DISTNAME}
|
|
|
|
.else
|
|
|
|
DISTNAME:= ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
|
|
|
|
.endif
|
2006-05-10 19:08:24 +02:00
|
|
|
.if defined(MASTER_SITE_SUBDIR)
|
|
|
|
MASTER_SITE_SUBDIR:= ${MASTER_SITE_SUBDIR}
|
|
|
|
.endif
|
2008-03-25 15:52:40 +01:00
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-reference
|
2006-05-10 00:03:26 +02:00
|
|
|
.if defined(LATEST_LINK)
|
|
|
|
LATEST_LINK:= ${LATEST_LINK}-reference
|
|
|
|
.endif
|
|
|
|
|
|
|
|
COMMENT= Programming reference for ${REFERENCE_PORT}
|
|
|
|
|
2010-10-28 23:00:21 +02:00
|
|
|
DISTINFO_FILE= ${PARENTDIR}/distinfo
|
2006-05-10 00:03:26 +02:00
|
|
|
|
|
|
|
REFERENCE_SRC?= ${WRKSRC}/docs/reference
|
|
|
|
BOOKS?= .
|
|
|
|
|
2013-05-22 13:32:22 +02:00
|
|
|
PORTDOCS?= *
|
2006-05-10 00:03:26 +02:00
|
|
|
|
|
|
|
.if !target(do-build)
|
|
|
|
do-build:
|
|
|
|
@${DO_NADA}
|
|
|
|
.endif
|
|
|
|
|
2006-05-17 22:56:56 +02:00
|
|
|
make-descr:
|
2006-05-10 00:03:26 +02:00
|
|
|
@${ECHO_CMD} "This port contains the programming reference for ${REFERENCE_PORT}." > ${DESCR}
|
2006-05-10 04:55:56 +02:00
|
|
|
@www=`${GREP} "^WWW:" ${PARENTDIR}/pkg-descr` || ${TRUE}; \
|
|
|
|
if [ -n "$$www" ]; then \
|
|
|
|
${ECHO_CMD} "" >> ${DESCR}; \
|
|
|
|
${ECHO_CMD} "$$www" >> ${DESCR}; \
|
|
|
|
fi
|
2006-05-10 00:03:26 +02:00
|
|
|
|
|
|
|
.if !target(do-install)
|
|
|
|
do-install:
|
|
|
|
. for d in ${BOOKS}
|
2008-05-30 00:11:58 +02:00
|
|
|
if [ -d ${REFERENCE_SRC}/${d}/html ]; then \
|
|
|
|
${MKDIR} ${DOCSDIR}/${d}; \
|
|
|
|
cd ${REFERENCE_SRC}/${d}/html && \
|
|
|
|
${FIND} * -type d ! -empty -exec ${MKDIR} "${DOCSDIR}/${d}/{}" \; && \
|
|
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/${d}/{}" \; ; \
|
|
|
|
fi
|
2006-05-10 00:03:26 +02:00
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|