1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Stage support

This commit is contained in:
Antoine Brodin 2014-02-02 14:04:43 +00:00
parent 4498e6478a
commit fb1a81fde2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342295
2 changed files with 14 additions and 14 deletions

View File

@ -15,33 +15,30 @@ COMMENT= X/Motif schedule planner with calendar
USES= motif
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
ALL_TARGET= freebsd
MAN1= netplan.1 plan.1
MAN4= plan.4
MAKE_ENV+= DATADIR=${DATADIR} EXAMPLESDIR=${EXAMPLESDIR}
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 900006
EXTRA_PATCHES= ${PATCHDIR}/utmpx-src-daemon.c
.endif
do-install:
@${MKDIR} ${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} \
&& ${INSTALL_PROGRAM} plan pland netplan notifier ${PREFIX}/bin \
&& ${INSTALL_SCRIPT} ../misc/Killpland ${PREFIX}/bin \
&& ${INSTALL_MAN} ../misc/netplan.1 ../misc/plan.1 ${MAN1PREFIX}/man/man1 \
&& ${INSTALL_MAN} ../misc/plan.4 ${MAN4PREFIX}/man/man4
&& ${INSTALL_PROGRAM} plan pland netplan notifier ${STAGEDIR}${PREFIX}/bin \
&& ${INSTALL_SCRIPT} ../misc/Killpland ${STAGEDIR}${PREFIX}/bin \
&& ${INSTALL_MAN} ../misc/netplan.1 ../misc/plan.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 \
&& ${INSTALL_MAN} ../misc/plan.4 ${STAGEDIR}${MAN4PREFIX}/man/man4
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/.. \
&& ${INSTALL_DATA} misc/plan_cal.ps language/* misc/Mkdoc misc/Mkdoc.nawk \
misc/BlackWhite misc/Monochrome README \
${DOCSDIR}
.endif
${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/../holiday \
&& ${INSTALL_DATA} \
@ -50,11 +47,11 @@ do-install:
holiday_finnish holiday_french holiday_frswiss holiday_german holiday_greek \
holiday_hungary holiday_italy holiday_japan holiday_norway holiday_portugal \
holiday_quebec holiday_slovak holiday_spain holiday_swedish holiday_uk \
holiday_us ${EXAMPLESDIR}
holiday_us ${STAGEDIR}${EXAMPLESDIR}
.if !target(post-install)
post-install:
@${MKDIR} ${DATADIR}/netplan.dir
@${MKDIR} ${STAGEDIR}${DATADIR}/netplan.dir
.endif
.include <bsd.port.post.mk>

View File

@ -3,6 +3,9 @@ bin/pland
bin/netplan
bin/notifier
bin/Killpland
man/man1/netplan.1.gz
man/man1/plan.1.gz
man/man4/plan.4.gz
%%PORTDOCS%%%%DOCSDIR%%/Mkdoc
%%PORTDOCS%%%%DOCSDIR%%/Mkdoc.nawk
%%PORTDOCS%%%%DOCSDIR%%/plan.help