summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-05-17 13:09:53 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-05-17 13:09:53 +0000
commitb1f33f2ceb8721ae51cfa4448a703b64e26f186d (patch)
tree3afe27f9966442711da4b157242806009fa546dc /japanese
parent- Add staging support (diff)
- Add staging support
- Convert to new options framework
Notes
Notes: svn path=/head/; revision=354319
Diffstat (limited to 'japanese')
-rw-r--r--japanese/today/Makefile9
-rw-r--r--japanese/today/files/Makefile12
2 files changed, 10 insertions, 11 deletions
diff --git a/japanese/today/Makefile b/japanese/today/Makefile
index e6b0b5aea0f3..9a6d1fbfd13a 100644
--- a/japanese/today/Makefile
+++ b/japanese/today/Makefile
@@ -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>
diff --git a/japanese/today/files/Makefile b/japanese/today/files/Makefile
index 7234d1aab5ea..bdd594962fae 100644
--- a/japanese/today/files/Makefile
+++ b/japanese/today/files/Makefile
@@ -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