1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

1: Stagify.

2: use options helper to handle PORTDOCS & PORTEXAMPLES
This commit is contained in:
Vanilla I. Shu 2014-07-08 13:06:27 +00:00
parent dc1535e2d4
commit 2b4a83dacc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361230
2 changed files with 2655 additions and 24 deletions

View File

@ -9,37 +9,25 @@ MASTER_SITES= APACHE
MASTER_SITE_SUBDIR= incubator/log4net/${PORTVERSION}
DISTNAME= incubating-${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= Port for .NET of the Apache Logging Services project
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= mono zip
NO_BUILD= yes
SUB_FILES= log4net.pc
SUB_LIST+= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= DOCS EAMPLES
.if !defined (NOPORTDOCS)
PORTDOCS= *
.endif
.if !defined (NOPORTEXAMPLES)
PORTEXAMPLES= *
.endif
NO_STAGE= yes
do-install:
@(cd ${INSTALL_WRKSRC}/bin/mono/2.0/release && ${SETENV} MONO_SHARED_DIR=${WRKDIR} ${LOCALBASE}/bin/gacutil /root ${PREFIX}/lib/ /gacdir ${PREFIX}/lib /package 2.0 /i log4net.dll)
${INSTALL_DATA} ${WRKDIR}/log4net.pc ${PREFIX}/libdata/pkgconfig/log4net.pc
.if !defined (NOPORTDOCS)
@${ECHO_CMD} "Installing documentation..."
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if !defined (NOPORTEXAMPLES)
@(cd ${INSTALL_WRKSRC}/bin/mono/2.0/release && ${SETENV} MONO_SHARED_DIR=${WRKDIR} ${LOCALBASE}/bin/gacutil /root ${STAGEDIR}${PREFIX}/lib/ /gacdir ${STAGEDIR}${PREFIX}/lib /package 2.0 /i log4net.dll)
${INSTALL_DATA} ${WRKDIR}/log4net.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/log4net.pc
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
@${ECHO_CMD} "Installing examples..."
@${MKDIR} ${EXAMPLESDIR}
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>

File diff suppressed because it is too large Load Diff