diff options
author | jschauma <jschauma@pkgsrc.org> | 2002-12-02 17:07:27 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2002-12-02 17:07:27 +0000 |
commit | 6695c7df6ac973c9d8911ac128cad16fdd3072a5 (patch) | |
tree | f214a1fbd957190cb8d4e798ccbbbe42be7d37c5 /mk | |
parent | 70ef70b5de1453f5407f1a78df16e9fae6632ad3 (diff) | |
download | pkgsrc-6695c7df6ac973c9d8911ac128cad16fdd3072a5.tar.gz |
Add initial support for IRIX.
Again, anybody's feedback (success or failure) will be appreciated.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/IRIX.pkg.dist | 484 | ||||
-rw-r--r-- | mk/bsd.buildlink.mk | 7 | ||||
-rw-r--r-- | mk/bsd.pkg.install.mk | 6 | ||||
-rw-r--r-- | mk/bsd.pkg.mk | 17 | ||||
-rw-r--r-- | mk/defs.IRIX.mk | 116 | ||||
-rw-r--r-- | mk/motif.buildlink2.mk | 7 | ||||
-rw-r--r-- | mk/xaw.buildlink2.mk | 6 |
7 files changed, 636 insertions, 7 deletions
diff --git a/mk/IRIX.pkg.dist b/mk/IRIX.pkg.dist new file mode 100644 index 00000000000..744c0a6bc03 --- /dev/null +++ b/mk/IRIX.pkg.dist @@ -0,0 +1,484 @@ +# $NetBSD: IRIX.pkg.dist,v 1.1 2002/12/02 17:07:27 jschauma Exp $ +# + +/set type=dir uname=root gname=sys mode=0755 +. + bin + .. + emul + .. + etc + rc.d + .. + .. + include + .. + info + .. + lib + .. + libdata + tcl + .. + .. + libexec + cgi-bin + .. + .. + man + cat1 + .. + cat2 + .. + cat3 + .. + cat4 + .. + cat5 + .. + cat6 + .. + cat7 + .. + cat8 + .. + cat9 + .. + catl + .. + catn + .. + ja_JP.EUC + cat1 + .. + cat2 + .. + cat3 + .. + cat4 + .. + cat5 + .. + cat6 + .. + cat7 + .. + cat8 + .. + cat9 + .. + catl + .. + catn + .. + man1 + .. + man2 + .. + man3 + .. + man4 + .. + man5 + .. + man6 + .. + man7 + .. + man8 + .. + man9 + .. + manl + .. + mann + .. + .. + man1 + .. + man2 + .. + man3 + .. + man4 + .. + man5 + .. + man6 + .. + man7 + .. + man8 + .. + man9 + .. + manl + .. + mann + .. + .. + sbin + .. + share + aclocal + .. + dict + .. + doc + html + .. + .. + examples + .. + games + .. + locale + ar + LC_MESSAGES + .. + .. + az + LC_MESSAGES + .. + .. + be + LC_MESSAGES + .. + .. + bg + LC_MESSAGES + .. + .. + bg_BG.cp1251 + LC_MESSAGES + .. + .. + ca + LC_MESSAGES + .. + .. + cs + LC_MESSAGES + .. + .. + cy + LC_MESSAGES + .. + .. + da + LC_MESSAGES + .. + .. + de + LC_MESSAGES + .. + .. + de_AT + LC_MESSAGES + .. + .. + dk + LC_MESSAGES + .. + .. + el + LC_MESSAGES + .. + .. + en + LC_MESSAGES + .. + .. + en_GB + LC_MESSAGES + .. + .. + en_US + LC_MESSAGES + .. + .. + en@IPA + LC_MESSAGES + .. + .. + eo + LC_MESSAGES + .. + .. + es + LC_MESSAGES + .. + .. + et + LC_MESSAGES + .. + .. + eu + LC_MESSAGES + .. + .. + fa + LC_MESSAGES + .. + .. + fi + LC_MESSAGES + .. + .. + fr + LC_MESSAGES + .. + .. + ga + LC_MESSAGES + .. + .. + gl + LC_MESSAGES + .. + .. + he + LC_MESSAGES + .. + .. + hi + LC_MESSAGES + .. + .. + hr + LC_MESSAGES + .. + .. + hu + LC_MESSAGES + .. + .. + ia + LC_MESSAGES + .. + .. + id + LC_MESSAGES + .. + .. + is + LC_MESSAGES + .. + .. + it + LC_MESSAGES + .. + .. + ja + LC_MESSAGES + .. + .. + ko + LC_MESSAGES + .. + .. + lt + LC_MESSAGES + .. + .. + lv + LC_MESSAGES + .. + .. + mk + LC_MESSAGES + .. + .. + ms + LC_MESSAGES + .. + .. + nl + LC_MESSAGES + .. + .. + nn + LC_MESSAGES + .. + .. + no + LC_MESSAGES + .. + .. + no@nynorsk + LC_MESSAGES + .. + .. + pl + LC_MESSAGES + .. + .. + pt + LC_MESSAGES + .. + .. + pt_BR + LC_MESSAGES + .. + .. + pt_PT + LC_MESSAGES + .. + .. + ro + LC_MESSAGES + .. + .. + ru + LC_MESSAGES + .. + .. + se + LC_MESSAGES + .. + .. + sk + LC_MESSAGES + .. + .. + sl + LC_MESSAGES + .. + .. + sp + LC_MESSAGES + .. + .. + sr + LC_MESSAGES + .. + .. + sv + LC_MESSAGES + .. + .. + ta + LC_MESSAGES + .. + .. + tr + LC_MESSAGES + .. + .. + uk + LC_MESSAGES + .. + .. + vi + LC_MESSAGES + .. + .. + wa + LC_MESSAGES + .. + .. + zh + LC_MESSAGES + .. + .. + zh_CN + LC_MESSAGES + .. + .. + zh_CN.GB2312 + LC_MESSAGES + .. + .. + zh_TW + LC_MESSAGES + .. + .. + zh_TW.Big5 + LC_MESSAGES + .. + .. + .. + misc + .. + mk + .. + nls + C + .. + da_DK.ISO_8859-1 + .. + de_AT.ISO_8859-1 + .. + de_CH.ISO_8859-1 + .. + de_DE.ISO_8859-1 + .. + el_GR.ISO_8859-7 + .. + en_AU.ISO_8859-1 + .. + en_CA.ISO_8859-1 + .. + en_GB.ISO_8859-1 + .. + en_US.ISO_8859-1 + .. + es_ES.ISO_8859-1 + .. + et_EE.ISO_8859-15 + .. + fi_FI.ISO_8859-1 + .. + fr_BE.ISO_8859-1 + .. + fr_CA.ISO_8859-1 + .. + fr_CH.ISO_8859-1 + .. + fr_FR.ISO_8859-1 + .. + hr_HR.ISO_8859-2 + .. + is_IS.ISO_8859-1 + .. + it_CH.ISO_8859-1 + .. + it_IT.ISO_8859-1 + .. + ja_JP.EUC + .. + ko_KR.EUC + .. + lt_LN.ASCII + .. + lt_LN.ISO_8859-1 + .. + lt_LN.ISO_8859-2 + .. + nl_BE.ISO_8859-1 + .. + nl_NL.ISO_8859-1 + .. + no_NO.ISO_8859-1 + .. + pl_PL.ISO_8859-2 + .. + pt_PT.ISO_8859-1 + .. + ru_RU.KOI8-R + .. + ru_SU.CP866 + .. + ru_SU.KOI8-R + .. + sv_SE.ISO_8859-1 + .. + uk_UA.KOI8-U + .. + uk_UA.ISO_8859-1 + .. + .. + skel + .. + .. +.. diff --git a/mk/bsd.buildlink.mk b/mk/bsd.buildlink.mk index cd17f094a38..0095538014e 100644 --- a/mk/bsd.buildlink.mk +++ b/mk/bsd.buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink.mk,v 1.63 2002/08/05 08:09:01 lukem Exp $ +# $NetBSD: bsd.buildlink.mk,v 1.64 2002/12/02 17:07:27 jschauma Exp $ # # This Makefile fragment is included by package buildlink.mk files. This # file does the following things: @@ -342,8 +342,13 @@ _REPLACE_RPATH_PATTERNS_FIND= \ REPLACE_RPATH+= \ `cd ${WRKSRC}; ${FIND} . ${_REPLACE_RPATH_PATTERNS_FIND} -print | ${SED} -e 's|^\./||' | ${SORT}` +.if ${OPSYS} == "IRIX" +REPLACE_RPATH_SED+= \ + -e "s|-R[ ]*${BUILDLINK_DIR}/|-rpath -Wl,${LOCALBASE}/|g" +.else REPLACE_RPATH_SED+= \ -e "s|-R[ ]*${BUILDLINK_DIR}/|-R${LOCALBASE}/|g" +.endif .if defined(_USE_RPATH) && (${_USE_RPATH} == "yes") _CONFIGURE_POSTREQ+= rpath-buildlink-subst diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk index bebf84a57df..1816a3f0530 100644 --- a/mk/bsd.pkg.install.mk +++ b/mk/bsd.pkg.install.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.install.mk,v 1.39 2002/11/17 08:58:50 salo Exp $ +# $NetBSD: bsd.pkg.install.mk,v 1.40 2002/12/02 17:07:27 jschauma Exp $ # # This Makefile fragment is included by package Makefiles to use the common # INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply: @@ -330,8 +330,8 @@ install-rcd-scripts: install-rcd-${_script_} install-rcd-${_script_}: ${WRKDIR}/${_script_} ${_PKG_SILENT}${_PKG_DEBUG} \ if [ ! -d ${RCD_SCRIPTS_EXAMPLEDIR} ]; then \ - ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755 \ - ${RCD_SCRIPTS_EXAMPLEDIR}; \ + ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} \ + -m 0755 ${RCD_SCRIPTS_EXAMPLEDIR}; \ fi ${_PKG_SILENT}${_PKG_DEBUG} \ if [ -f ${WRKDIR}/${_script_} ]; then \ diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 0810635ca8e..34455894f37 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1092 2002/11/26 15:19:50 jschauma Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1093 2002/12/02 17:07:27 jschauma Exp $ # # This file is in the public domain. # @@ -356,13 +356,21 @@ M4?= /usr/bin/m4 .if defined(USE_X11) X11_LDFLAGS= # empty . if ${_USE_RPATH} == "yes" +. if ${OPSYS} == "IRIX" +X11_LDFlAGS+= -Wl,-rpath -Wl,${X11BASE}/lib +. else X11_LDFLAGS+= -Wl,-R${X11BASE}/lib +. endif . endif X11_LDFLAGS+= -L${X11BASE}/lib LDFLAGS+= ${X11_LDFLAGS} .endif .if ${_USE_RPATH} == "yes" +. if ${OPSYS} == "IRIX" +LDFLAGS+= -Wl,-rpath -Wl,${LOCALBASE}/lib +. else LDFLAGS+= -Wl,-R${LOCALBASE}/lib +. endif .else . if empty(USE_BUILDLINK2:M[nN][oO]) LDFLAGS:= ${LDFLAGS:N*-Wl,-R*:N*-rpath*} @@ -406,8 +414,10 @@ PATCH_DIST_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP} PATCH_ARGS+= --batch PATCH_DIST_ARGS+= --batch .endif +.if ${OPSYS} != "IRIX" PATCH_ARGS+= ${_PATCH_BACKUP_ARG} .orig PATCH_DIST_ARGS+= ${_PATCH_BACKUP_ARG} .orig +.endif PATCH_FUZZ_FACTOR?= -F0 # Default to zero fuzz EXTRACT_SUFX?= .tar.gz @@ -1873,8 +1883,13 @@ do-pkgconfig-override: ${_PKG_SILENT}${_PKG_DEBUG} \ if [ -f ${pkgconfig} ]; then \ ${MV} ${pkgconfig} ${pkgconfig}.norpath ; \ +. if ${OPSYS} == "IRIX" + ${SED} -e 's|^\(Libs:.*[ ]\)-L\([ ]*[^ ]*\)\(.*\)$$|\1-Wl,-rpath -Wl,\2 -L\2\3|' \ + < ${pkgconfig}.norpath > ${pkgconfig} ; \ +. else ${SED} -e 's|^\(Libs:.*[ ]\)-L\([ ]*[^ ]*\)\(.*\)$$|\1-Wl,-R\2 -L\2\3|' \ < ${pkgconfig}.norpath > ${pkgconfig} ; \ +. endif fi . endfor .endif diff --git a/mk/defs.IRIX.mk b/mk/defs.IRIX.mk new file mode 100644 index 00000000000..4091f5ac5b9 --- /dev/null +++ b/mk/defs.IRIX.mk @@ -0,0 +1,116 @@ +# $NetBSD: defs.IRIX.mk,v 1.1 2002/12/02 17:07:28 jschauma Exp $ +# +# Variable definitions for the IRIX operating system. + +AWK?= /usr/bin/awk +BASENAME?= /sbin/basename +CAT?= /sbin/cat +CHMOD?= /sbin/chmod +CHOWN?= /sbin/chown +CHGRP?= /sbin/chgrp +CMP?= /usr/bin/cmp +CP?= /sbin/cp +CUT?= /usr/bin/cut +DC?= /usr/bin/dc +DIRNAME?= /usr/bin/dirname +ECHO?= /sbin/echo +EGREP?= /bin/grep +EXPR?= /bin/expr +FALSE?= /usr/bin/false +FILE_CMD?= /usr/bin/file +FIND?= /sbin/find +.if exists(${LOCALBASE}/bin/gmake) +GMAKE?= ${LOCALBASE}/bin/gmake +.endif +GREP?= /sbin/grep +.if exists(${LOCALBASE}/bin/tar) +GTAR?= ${LOCALBASE}/bin/tar +.else +GTAR?= /sbin/tar +.endif +.if exists(${ZOULARISBASE}/bin/gzip) +GUNZIP_CMD?= ${ZOULARISBASE}/bin/gunzip -f +GZCAT?= ${ZOULARISBASE}/bin/zcat +GZIP?= -9 +GZIP_CMD?= ${ZOULARISBASE}/bin/gzip -nf ${GZIP} +.elif exists(${LOCALBASE}/bin/gzip) +GUNZIP_CMD?= ${LOCALBASE}/bin/gunzip -f +GZCAT?= ${LOCALBASE}/bin/zcat +GZIP?= -9 +GZIP_CMD?= ${LOCALBASE}/bin/gzip -nf ${GZIP} +.endif +LDCONFIG?= /usr/bin/true +HEAD?= /usr/bsd/head +ID?= /usr/bin/id +LN?= /sbin/ln +LS?= /sbin/ls +MKDIR?= /sbin/mkdir -p +.if exists(${LOCALBASE}/sbin/mtree) +MTREE?= ${LOCALBASE}/sbin/mtree +.endif +MTREE?= ${ZOULARISBASE}/bin/mtree +MV?= /sbin/mv +PATCH?= /usr/sbin/patch -b +PAX?= /usr/sbin/pax +PERL5?= /usr/sbin/perl +PKGLOCALEDIR?= share +PS?= /sbin/ps +RM?= /sbin/rm +RMDIR?= /usr/bin/rmdir +SED?= /sbin/sed +SETENV?= /sbin/env +SH?= /bin/sh +SHLOCK= ${LOCALBASE}/bin/shlock +SORT?= /usr/bin/sort +SU?= /sbin/su +TAIL?= /usr/bin/tail +TEST?= /sbin/test +TOUCH?= /usr/bin/touch +TR?= /usr/bin/tr +TRUE?= /usr/bin/true +TYPE?= /sbin/type +WC?= /usr/bin/wc +XARGS?= /sbin/xargs + +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?= ${FALSE} +MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type +MOTIF12_TYPE_DEFAULT?= dt # default 1.2 compatible libs type +NOLOGIN?= ${FALSE} +ROOT_CMD?= ${SU} - root -c +ROOT_GROUP?= sys +ROOT_USER?= root +SERIAL_DEVICES?= /dev/null +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?= ${FALSE} + +_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs +_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake +_OPSYS_HAS_GMAKE= no # GNU make is not standard +_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages +_OPSYS_HAS_OSSAUDIO= no # libossaudio is available +_PREFORMATTED_MAN_DIR= man # directory where catman pages are +_USE_RPATH= yes # add rpath to LDFLAGS + +.if !defined(DEBUG_FLAGS) +_STRIPFLAG_CC?= -s # cc(1) option to strip +_STRIPFLAG_INSTALL?= -s # install(1) option to strip +.endif + +LOCALBASE?= ${DESTDIR}/usr/pkg +.if !defined(ZOULARISBASE) +. if exists(${LOCALBASE}/bsd) +ZOULARISBASE:= ${LOCALBASE}/bsd +. else +ZOULARISBASE:= ${LOCALBASE} +. endif +.endif +.if exists(${LOCALBASE}/sbin/pkg_info) +PKG_TOOLS_BIN?= ${LOCALBASE}/sbin +.endif +PKG_TOOLS_BIN?= ${ZOULARISBASE}/bin diff --git a/mk/motif.buildlink2.mk b/mk/motif.buildlink2.mk index 921f21cbcae..d0668565cb1 100644 --- a/mk/motif.buildlink2.mk +++ b/mk/motif.buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: motif.buildlink2.mk,v 1.3 2002/10/22 22:54:08 jlam Exp $ +# $NetBSD: motif.buildlink2.mk,v 1.4 2002/12/02 17:07:28 jschauma Exp $ # # USE_MOTIF12 # use a Motif-1.2-compatible installation, otherwise, assume @@ -150,7 +150,12 @@ MOTIFBASE= ${_MOTIFBASE} USE_X11?= # defined MAKE_ENV+= MOTIFLIB="${MOTIFLIB}" MAKE_ENV+= MOTIFBASE="${_MOTIFBASE}" +.if ${OPSYS} != "IRIX" LDFLAGS+= -Wl,-R${_MOTIFBASE}/lib MOTIFLIB?= -Wl,-R${_MOTIFBASE}/lib -Wl,-R${X11BASE}/lib -L${_MOTIFBASE}/lib -lXm -lXp +.else +LDFLAGS+= -Wl,-rpath -Wl,${_MOTIFBASE}/lib +MOTIFLIB?= -Wl,-rpath -Wl,${_MOTIFBASE}/lib -Wl,-rpath -Wl,${X11BASE}/lib -L${_MOTIFBASE}/lib -lXm -lXp +.endif .endif # MOTIF_BUILDLINK2_MK diff --git a/mk/xaw.buildlink2.mk b/mk/xaw.buildlink2.mk index e937d59213b..7056d324399 100644 --- a/mk/xaw.buildlink2.mk +++ b/mk/xaw.buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: xaw.buildlink2.mk,v 1.5 2002/09/23 08:41:00 jlam Exp $ +# $NetBSD: xaw.buildlink2.mk,v 1.6 2002/12/02 17:07:28 jschauma Exp $ .if !defined(XAW_BUILDLINK2_MK) XAW_BUILDLINK2_MK= # defined @@ -19,7 +19,11 @@ BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw3d} BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.neXtaw} .else BUILDLINK_PREFIX.Xaw?= ${X11BASE} +. if ${OPSYS} == "IRIX" +LIBXAW?= -L${X11BASE}/lib -Wl,-rpath -Wl,${X11BASE}/lib -lXaw +. else LIBXAW?= -L${X11BASE}/lib -Wl,-R${X11BASE}/lib -lXaw +. endif .endif MAKE_ENV+= LIBXAW="${LIBXAW}" |