summaryrefslogtreecommitdiff
path: root/time/plan/Makefile
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-06-10 22:42:42 +0000
committerjschauma <jschauma@pkgsrc.org>2004-06-10 22:42:42 +0000
commitf1468f69f5b1172801c549c5e8e96fb36ca769a7 (patch)
tree3f03c04a6e490e135f6d1142596d23712817557c /time/plan/Makefile
parent9c1d103865e2b1aaeddf233381f8eca7302b52d0 (diff)
downloadpkgsrc-f1468f69f5b1172801c549c5e8e96fb36ca769a7.tar.gz
Make this compile on Linux and IRIX and increase odds of working on
other non-NetBSD platforms as well (though they may need ALL_TARGET tweaking): - apparently some versions of Linux/gcc combinations require the header file errno.h included in each file in order for it to link (otherwise, it will compile (!?) but bail out when linking) - set ALL_TARGET to LOWER_OPSYS this works for netbsd and linux, and should work for the other bsds at least. - set ALL_TARGET differently for IRIX - use CFLAGS instead of hard-coded ABI flags for IRIX 6 - some install-sh/install can not handle multiple files/directories at once. Newer bootstrapped versions can, but for systems that still have the older one we may as well split this for better compatibility.
Diffstat (limited to 'time/plan/Makefile')
-rw-r--r--time/plan/Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/time/plan/Makefile b/time/plan/Makefile
index 591db67fd15..d59ad175fef 100644
--- a/time/plan/Makefile
+++ b/time/plan/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2004/04/11 20:42:28 snj Exp $
+# $NetBSD: Makefile,v 1.18 2004/06/10 22:42:42 jschauma Exp $
DISTNAME= plan-1.8.4
CATEGORIES= x11 time
@@ -11,7 +11,13 @@ COMMENT= Schedule planner based on X/Motif
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_BUILDLINK3= YES
USE_X11BASE= YES
-ALL_TARGET= netbsd
+ALL_TARGET= ${LOWER_OPSYS}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "IRIX"
+ALL_TARGET= ${LOWER_VENDOR}${OS_VERSION:C/.[0-9]//}
+.endif
.include "../../mk/compiler.mk"
@@ -21,10 +27,13 @@ post-configure:
.endif
pre-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/libexec/plan ${PREFIX}/share/plan \
- ${PREFIX}/share/plan/holiday
+ ${INSTALL_DATA_DIR} ${PREFIX}/libexec/plan
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/plan
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/plan/holiday
${RM} -f ${WRKDIR}/${DISTNAME}/holiday/holiday_*.orig
- ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/holiday/holiday_* ${PREFIX}/share/plan/holiday
+ for f in ${WRKDIR}/${DISTNAME}/holiday/holiday_*; do \
+ ${INSTALL_DATA} $$f ${PREFIX}/share/plan/holiday/; \
+ done
for f in HISTORY README; do \
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/$$f ${PREFIX}/share/plan; \
done