mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Support stage
This commit is contained in:
parent
75c2e0346c
commit
a8c883dcba
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351787
@ -12,6 +12,7 @@ DISTNAME= ${PORTNAME}.${PORTVERSION}
|
||||
MAINTAINER= fmysh@iijmio-mail.jp
|
||||
COMMENT= High-level compound graphics widgets for Python
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
||||
LIB_DEPENDS= libBLT25.so:${PORTSDIR}/x11-toolkits/blt
|
||||
|
||||
@ -22,24 +23,13 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
||||
PMWVERSION= ${DISTNAME:R:S/./_/g}
|
||||
PLIST_SUB= PMWVERSION="${PMWVERSION}"
|
||||
|
||||
NO_STAGE= yes
|
||||
post-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
@(cd ${WRKSRC}/Pmw/${PMWVERSION}/bin; ${TAR} cf - .) | \
|
||||
(cd ${DATADIR}; ${TAR} -xof -)
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@(cd ${WRKSRC}/Pmw/${PMWVERSION}/doc; ${TAR} cf - .) | \
|
||||
(cd ${DOCSDIR}; ${TAR} -xof -)
|
||||
.endif
|
||||
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DOCSDIR} \
|
||||
${STAGEDIR}${EXAMPLESDIR}
|
||||
@(cd ${WRKSRC}/Pmw/${PMWVERSION}/bin; ${PAX} -rw . ${STAGEDIR}${DATADIR})
|
||||
@(cd ${WRKSRC}/Pmw/${PMWVERSION}/doc; ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
||||
.for d in contrib demos
|
||||
@(cd ${WRKSRC}/Pmw/${PMWVERSION}; ${TAR} cf - $d) | \
|
||||
(cd ${EXAMPLESDIR}; ${TAR} -xof -)
|
||||
@(cd ${WRKSRC}/Pmw/${PMWVERSION}; ${COPYTREE_SHARE} $d ${STAGEDIR}${EXAMPLESDIR})
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user