f1468f69f5
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.
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.18 2004/06/10 22:42:42 jschauma Exp $
|
|
|
|
DISTNAME= plan-1.8.4
|
|
CATEGORIES= x11 time
|
|
MASTER_SITES= ftp://ftp.fu-berlin.de/unix/graphics/plan/
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://www.in-berlin.de/User/bitrot/plan.html
|
|
COMMENT= Schedule planner based on X/Motif
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
USE_BUILDLINK3= YES
|
|
USE_X11BASE= YES
|
|
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"
|
|
|
|
.if !empty(CC_VERSION:Mgcc-3.*)
|
|
post-configure:
|
|
${TOUCH} ${BUILDLINK_DIR}/include/varargs.h
|
|
.endif
|
|
|
|
pre-install:
|
|
${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
|
|
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
|
|
|
|
.include "../../mk/motif.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|