diff options
author | ryoon <ryoon> | 2014-03-14 22:05:18 +0000 |
---|---|---|
committer | ryoon <ryoon> | 2014-03-14 22:05:18 +0000 |
commit | 46cca147c4bae49fa1afb8ea2d26fbb1eb321c6f (patch) | |
tree | 9348d04a22a54ce2158ca3665cc541df1a795530 | |
parent | 46b27bb47fbd047408695cea43a03d347c794079 (diff) | |
download | pkgsrc-46cca147c4bae49fa1afb8ea2d26fbb1eb321c6f.tar.gz |
Add SCO OpenServer 5 and 6 support, 6 support is not tested yet.
-rw-r--r-- | mk/bsd.prefs.mk | 15 | ||||
-rw-r--r-- | mk/platform/SCO_SV.mk | 76 | ||||
-rw-r--r-- | mk/tools/tools.SCO_SV.mk | 64 |
3 files changed, 154 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index b55d4feb0d5..ee99015fc38 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.343 2014/03/07 14:52:12 jperkin Exp $ +# $NetBSD: bsd.prefs.mk,v 1.344 2014/03/14 22:05:18 ryoon Exp $ # # This file includes the mk.conf file, which contains the user settings. # @@ -297,6 +297,19 @@ OS_VARIANT= SmartOS OS_VARIANT= OmniOS . endif +.elif ${OPSYS} == "SCO_SV" +SCO_RELEASE!= ${UNAME} -r +SCO_VERSION!= ${UNAME} -v +LOWER_VENDOR?= pc +LOWER_OPSYS?= sco${SCO_RELEASE}v${SCO_VERSION} +MACHINE_GNU_PLATFORM?= ${MACHINE_GNU_ARCH}-${LOWER_VENDOR}-${LOWER_OPSYS} +_UNAME_V!= ${UNAME} -v +. if !empty(_UNAME_V:M5.0*) +OS_VARIANT= SCOOSR5 +. elif !empty(_UNAME_V:M6.0*) +OS_VARIANT= SCOOSR6 +. endif + .elif ${OPSYS} == "Minix" LOWER_VENDOR?= pc LOWER_OPSYS:= ${OPSYS:tl} diff --git a/mk/platform/SCO_SV.mk b/mk/platform/SCO_SV.mk new file mode 100644 index 00000000000..03168faa936 --- /dev/null +++ b/mk/platform/SCO_SV.mk @@ -0,0 +1,76 @@ +# $NetBSD: SCO_SV.mk,v 1.1 2014/03/14 22:05:18 ryoon Exp $ +# +# Variable definitions for the OpenServer 5.0.7/3.2 and 6.0.0/5. + +ECHO_N?= ${ECHO} -n +PKGLOCALEDIR?= lib +PS?= /bin/ps +SU?= /bin/su +TYPE?= type # Shell builtin + +CPP_PRECOMP_FLAGS?= # unset +DEF_UMASK?= 022 +DEFAULT_SERIAL_DEVICE?= /dev/null +EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table +GROUPADD?= /etc/groupadd +MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type +NOLOGIN?= ${FALSE} +ROOT_CMD?= ${SU} - root -c +ROOT_GROUP?= root +ROOT_USER?= root +SERIAL_DEVICES?= /dev/null +TOUCH_FLAGS?= # touch doesn't understand -f +ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d` +ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s` +ULIMIT_CMD_memorysize?= ulimit -v `ulimit -H -v` +USERADD?= /etc/useradd + +_OPSYS_SYSTEM_RPATH?= /lib:/usr/lib:/usr/gnu/lib +_OPSYS_LIB_DIRS?= /lib/lib /usr/lib /usr/gnu/lib + +_OPSYS_HAS_INET6= no # IPv6 is not standard +_OPSYS_HAS_JAVA= yes # Java is not standard +_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages +_OPSYS_HAS_OSSAUDIO= no # libossaudio is available +_OPSYS_PERL_REQD= # no base version of perl required +_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads +_OPSYS_SHLIB_TYPE= ELF # shared lib type +_PATCH_CAN_BACKUP= yes # native patch(1) can make backups +_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix +# +# The native linker for OpenServer doesn't really support an option to pass +# rpath directives, but pretend it does anyway since the wrapper scripts +# will correctly convert it into the proper LD_RUN_PATH variable. +# +_USE_RPATH= yes # add rpath to LDFLAGS + +# flags passed to the linker to extract all symbols from static archives. +# this is the standard OpenServer 5.0.7/3.2 linker, /usr/ccs/bin/ld. +# The use of GNU ld is not currently supported. +# XXX is this needed for OpenServer? +_OPSYS_WHOLE_ARCHIVE_FLAG= +_OPSYS_NO_WHOLE_ARCHIVE_FLAG= + +_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U} # cc(1) option to strip +_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U} # install(1) option to strip + +PKG_TOOLS_BIN?= ${LOCALBASE}/sbin + +_OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk + +# Use native curses to avoid circular dependency. +_OPSYS_PREFER.curses?= native + +.if ${OS_VARIANT} == "SCOOSR5" +# SCO OpenServer 5.0.7/3.2's /bin/rm cannot accepr "rm -f" (without arg). +CONFIGURE_ENV+= ACCEPT_INFERIOR_RM_PROGRAM=yes +# pkgsrc does not support SCO OpenServer 5.0.7/3.2's native CC (yet). +BUILDLINK_TRANSFORM+= rm:-belf +# SCO OpenServer 5.0.7/3.2's pthread is GNU pth and it requires -lsocket. +BUILDLINK_TRANSFORM+= l:pthread:pthread:socket +# SCO OpenServer 5.0.7/3.2's pthread library is GNU pth (builtin). +PTHREAD_TYPE= pth +# SCO OpenServer 5.0.7/3.2 has no IPv6 support. +_OPSYS_MISSING_FEATURES= inet6 +PKG_DEFAULT_OPTIONS= -inet6 +.endif diff --git a/mk/tools/tools.SCO_SV.mk b/mk/tools/tools.SCO_SV.mk new file mode 100644 index 00000000000..f81c13d5e37 --- /dev/null +++ b/mk/tools/tools.SCO_SV.mk @@ -0,0 +1,64 @@ +# $NetBSD: tools.SCO_SV.mk,v 1.1 2014/03/14 22:05:18 ryoon Exp $ +# +# System-supplied tools for the OpenServer 5.0.7/3.2 and 6.0.0/5. + +TOOLS_PLATFORM.[?= [ # shell builtin +TOOLS_PLATFORM.awk?= /usr/bin/awk +TOOLS_PLATFORM.basename?= /bin/basename +TOOLS_PLATFORM.bzcat?= /bin/bzcat +TOOLS_PLATFORM.bzip2?= /bin/bzip2 +TOOLS_PLATFORM.cat?= /bin/cat +TOOLS_PLATFORM.chgrp?= /bin/chgrp +TOOLS_PLATFORM.chmod?= /bin/chmod +TOOLS_PLATFORM.chown?= /bin/chown +TOOLS_PLATFORM.cmp?= /bin/cmp +TOOLS_PLATFORM.cp?= /bin/cp +TOOLS_PLATFORM.csh?= /bin/csh +TOOLS_PLATFORM.cut?= /bin/cut +TOOLS_PLATFORM.date?= /bin/date +# /bin/diff under OpenServer 5.0.7/3.2 does not support -u option. +#TOOLS_PLATFORM.diff?= /bin/diff +TOOLS_PLATFORM.dirname?= /bin/dirname +TOOLS_PLATFORM.echo?= /bin/echo +TOOLS_PLATFORM.egrep?= /usr/bin/egrep +TOOLS_PLATFORM.env?= /bin/env +TOOLS_PLATFORM.expr?= /bin/expr +TOOLS_PLATFORM.false?= /bin/false +TOOLS_PLATFORM.fgrep?= /bin/fgrep +TOOLS_PLATFORM.file?= /bin/file +TOOLS_PLATFORM.find?= /bin/find +TOOLS_PLATFORM.grep?= /bin/grep +TOOLS_PLATFORM.gunzip?= /bin/gunzip -f +TOOLS_PLATFORM.gzcat?= /bin/gzcat +TOOLS_PLATFORM.gzip?= /bin/gzip -nf ${GZIP} +TOOLS_PLATFORM.head?= /bin/head +TOOLS_PLATFORM.hostname?= /usr/bin/hostname +TOOLS_PLATFORM.id?= /usr/bin/id +TOOLS_PLATFORM.install?= /etc/install +TOOLS_PLATFORM.ln?= /bin/ln +TOOLS_PLATFORM.ls?= /bin/ls +TOOLS_PLATFORM.m4?= /bin/m4 +TOOLS_PLATFORM.mail?= /bin/mail +TOOLS_PLATFORM.mkdir?= /bin/mkdir -p +TOOLS_PLATFORM.msgfmt?= /usr/gnu/bin/msgfmt +TOOLS_PLATFORM.mv?= /bin/mv +TOOLS_PLATFORM.nice?= /bin/nice +TOOLS_PLATFORM.printf?= /usr/bin/printf +TOOLS_PLATFORM.pwd?= /bin/pwd +# SCO OpenServer 5.0.7/3.2's rm cannot accept "rm -f". +TOOLS_PLATFORM.rm?= /bin/rm +TOOLS_PLATFORM.rmdir?= /bin/rmdir +TOOLS_PLATFORM.sed?= /bin/sed +TOOLS_PLATFORM.sleep?= /bin/sleep +TOOLS_PLATFORM.sh?= /bin/sh +TOOLS_PLATFORM.sort?= /bin/sort +TOOLS_PLATFORM.tail?= /bin/tail +TOOLS_PLATFORM.tee?= /bin/tee +TOOLS_PLATFORM.test?= test # shell builtin +TOOLS_PLATFORM.touch?= /bin/touch +TOOLS_PLATFORM.tr?= /usr/bin/tr +TOOLS_PLATFORM.true?= /bin/true +TOOLS_PLATFORM.tsort?= /bin/tsort +TOOLS_PLATFORM.wc?= /bin/wc +TOOLS_PLATFORM.xargs?= /usr/bin/xargs +TOOLS_PLATFORM.xgettext?= /usr/gnu/bin/xgettext |