- Add staging support

- Convert to new options framework
This commit is contained in:
Pawel Pekala 2014-05-17 13:09:53 +00:00
parent 54c337b7de
commit b1f33f2ceb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354319
2 changed files with 10 additions and 11 deletions

View file

@ -19,7 +19,8 @@ USES= lha
MAKEFILE= ${FILESDIR}/Makefile
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
post-extract:
@(cd ${WRKSRC}; lha xiqf utility.lzh src/dayinfo.c )
@${ECHO_MSG} "===> Extracting tbl file for ${DISTNAME}"
@ -38,9 +39,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/*.cnf
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/today.doc ${DOCSDIR}
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/today.doc ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -23,12 +23,12 @@ OBJS_CAL = calendar.o $(OBJSC1)
all: today calendar dayinfo
install: today calendar dayinfo
${BSD_INSTALL_PROGRAM} today ${PREFIX}/bin/today
${BSD_INSTALL_PROGRAM} calendar ${PREFIX}/bin/calendar-today
${BSD_INSTALL_PROGRAM} dayinfo ${PREFIX}/bin/dayinfo
${BSD_INSTALL_DATA} today.cnf ${PREFIX}/etc
mkdir -p ${PREFIX}/share/today
${BSD_INSTALL_DATA} *.tbl ${PREFIX}/share/today
${BSD_INSTALL_PROGRAM} today ${DESTDIR}${PREFIX}/bin/today
${BSD_INSTALL_PROGRAM} calendar ${DESTDIR}${PREFIX}/bin/calendar-today
${BSD_INSTALL_PROGRAM} dayinfo ${DESTDIR}${PREFIX}/bin/dayinfo
${BSD_INSTALL_DATA} today.cnf ${DESTDIR}${PREFIX}/etc
mkdir -p ${DESTDIR}${PREFIX}/share/today
${BSD_INSTALL_DATA} *.tbl ${DESTDIR}${PREFIX}/share/today
# mkdir -p ${PREFIX}/share/doc/ja/today
# ${BSD_INSTALL_DATA} today.doc ${PREFIX}/share/doc/ja/today