2007-12-21 18:02:53 +01:00
|
|
|
# $NetBSD: Makefile,v 1.57 2007/12/21 17:02:53 joerg Exp $
|
2000-05-05 06:56:56 +02:00
|
|
|
|
2004-12-24 18:16:04 +01:00
|
|
|
.include "Makefile.common"
|
2000-05-05 06:56:56 +02:00
|
|
|
|
2004-12-24 18:16:04 +01:00
|
|
|
CONFIGURE_ARGS+= -no-tk
|
|
|
|
CONFIGURE_ENV+= disable_x11=yes
|
2000-06-12 16:43:21 +02:00
|
|
|
|
2004-12-24 18:16:04 +01:00
|
|
|
BUILD_TARGET= world
|
2007-11-03 23:38:12 +01:00
|
|
|
MAKE_JOBS_SAFE= no
|
2006-04-04 16:33:27 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
### PLIST components
|
|
|
|
###
|
|
|
|
|
|
|
|
# Stub libraries for functions missing from base system.
|
2007-09-14 17:34:09 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-*-powerpc) || ${OPSYS} == "DragonFly" || \
|
2007-12-21 18:02:53 +01:00
|
|
|
${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "SunOS" || \
|
|
|
|
${OPSYS} == "Linux"
|
2006-04-04 16:33:27 +02:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.stub
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Optional components built only on certain platforms.
|
2004-04-22 11:18:34 +02:00
|
|
|
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
|
2006-10-03 23:06:25 +02:00
|
|
|
(${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
|
2004-12-24 18:16:04 +01:00
|
|
|
BUILD_TARGET+= opt opt.opt
|
2006-04-04 16:33:27 +02:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.opt
|
|
|
|
. if empty(MACHINE_PLATFORM:MDarwin-*-*) && \
|
|
|
|
empty(MACHINE_PLATFORM:MSunOS-*-i386) && \
|
2006-10-03 23:06:25 +02:00
|
|
|
empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) && \
|
2006-04-04 16:33:27 +02:00
|
|
|
empty(MACHINE_PLATFORM:MNetBSD-*-sparc)
|
2004-04-24 16:45:15 +02:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.prof
|
|
|
|
. endif
|
2000-06-12 16:43:21 +02:00
|
|
|
.endif
|
2006-04-04 16:33:27 +02:00
|
|
|
|
|
|
|
# Common ocaml files.
|
2006-04-04 16:22:48 +02:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
2000-06-12 16:43:21 +02:00
|
|
|
|
2007-09-26 05:10:54 +02:00
|
|
|
# This is needed because ${WRKSRC}/build/partial-install.sh uses
|
|
|
|
# $PWD as part of its script. However, with /bin/sh on SunOS
|
|
|
|
# (cd work/foo-1.0 && echo $PWD) will show that the value of PWD is
|
|
|
|
# set before the cd takes place and is then passed down. So the end
|
|
|
|
# result is when ./build/partial-install.sh is called, PWD is set
|
|
|
|
# to /usr/pkgsrc/devel/ocaml instead of ${WRKSRC}. /bin/ksh, which
|
|
|
|
# is what ${SH} is on SunOS, doesn't exhibit this behaviour.
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
INSTALL_MAKE_FLAGS+= SHELL=${SH}
|
|
|
|
.endif
|
2005-02-04 22:35:51 +01:00
|
|
|
|
2000-05-05 06:56:56 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|