aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 e6b0b5aea0f..9a6d1fbfd13 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 7234d1aab5e..bdd594962fa 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