diff options
Diffstat (limited to 'mk')
-rw-r--r-- | mk/FreeBSD.pkg.dist | 480 | ||||
-rw-r--r-- | mk/bsd.prefs.mk | 9 | ||||
-rw-r--r-- | mk/defs.FreeBSD.mk | 130 |
3 files changed, 618 insertions, 1 deletions
diff --git a/mk/FreeBSD.pkg.dist b/mk/FreeBSD.pkg.dist new file mode 100644 index 00000000000..a1ce69df0ca --- /dev/null +++ b/mk/FreeBSD.pkg.dist @@ -0,0 +1,480 @@ +# $NetBSD: FreeBSD.pkg.dist,v 1.1 2002/11/17 15:11:40 grant Exp $ +# + +/set type=dir uname=root gname=wheel 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 + .. + .. + 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.prefs.mk b/mk/bsd.prefs.mk index d93b4f7a765..f1a95f89a34 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.89 2002/11/01 06:29:23 jlam Exp $ +# $NetBSD: bsd.prefs.mk,v 1.90 2002/11/17 15:11:40 grant Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -66,6 +66,13 @@ MACHINE_GNU_ARCH?= ${GNU_ARCH.${MACHINE_ARCH}} .if ${OPSYS} == "NetBSD" LOWER_OPSYS?= netbsd +.elif ${OPSYS} == "FreeBSD" +LOWER_OPSYS?= freebsd +LOWER_ARCH!= ${UNAME} -p +MACHINE_ARCH= ${LOWER_ARCH} +MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH} +LOWER_VENDOR?= pc + .elif ${OPSYS} == "SunOS" . if ${MACHINE_ARCH} == "sparc" SPARC_TARGET_ARCH?= sparcv7 diff --git a/mk/defs.FreeBSD.mk b/mk/defs.FreeBSD.mk new file mode 100644 index 00000000000..b62c0d7e0da --- /dev/null +++ b/mk/defs.FreeBSD.mk @@ -0,0 +1,130 @@ +# $NetBSD: defs.FreeBSD.mk,v 1.1 2002/11/17 15:11:40 grant Exp $ +# +# Variable definitions for the FreeBSD operating system. + +AWK?= /usr/bin/awk +BASENAME?= /usr/bin/basename +CAT?= /bin/cat +CHMOD?= /bin/chmod +CHOWN?= /usr/sbin/chown +CHGRP?= /usr/bin/chgrp +CMP?= /usr/bin/cmp +CP?= /bin/cp +CUT?= /usr/bin/cut +DC?= /usr/bin/dc +DIRNAME?= /usr/bin/dirname +ECHO?= echo # Shell builtin +EGREP?= /usr/bin/egrep +EXPR?= /bin/expr +FALSE?= false # Shell builtin +FILE_CMD?= /usr/bin/file +FIND?= /usr/bin/find +GMAKE?= ${LOCALBASE}/bin/gmake +GREP?= /usr/bin/grep +.if exists(/bin/tar) +GTAR?= /bin/tar +.else +GTAR?= /usr/bin/tar +.endif +GUNZIP_CMD?= /usr/bin/gunzip -f +GZCAT?= /usr/bin/gzcat +GZIP?= -9 +GZIP_CMD?= /usr/bin/gzip -nf ${GZIP} +HEAD?= /usr/bin/head +ID?= /usr/bin/id +LDCONFIG?= /sbin/ldconfig +LN?= /bin/ln +LS?= /bin/ls +MKDIR?= /bin/mkdir -p +MTREE?= /usr/sbin/mtree +MV?= /bin/mv +PATCH?= /usr/bin/patch +PAX?= /bin/pax +PERL5?= ${LOCALBASE}/bin/perl +PKGLOCALEDIR?= share +PS?= /bin/ps +RM?= /bin/rm +RMDIR?= /bin/rmdir +SED?= /usr/bin/sed +SETENV?= /usr/bin/env +SH?= /bin/sh +SHLOCK= /usr/bin/shlock +SORT?= /usr/bin/sort +SU?= /usr/bin/su +TAIL?= /usr/bin/tail +TEST?= test # Shell builtin +TOUCH?= /usr/bin/touch +TR?= /usr/bin/tr +TRUE?= true # Shell builtin +TYPE?= type # Shell builtin +WC?= /usr/bin/wc +XARGS?= /usr/bin/xargs + +.if exists(/usr/sbin/user) +USERADD?= /usr/sbin/useradd +GROUPADD?= /usr/sbin/groupadd +.else +USERADD?= ${LOCALBASE}/sbin/useradd +GROUPADD?= ${LOCALBASE}/sbin/groupadd +.if defined(USE_USERADD) || defined(USE_GROUPADD) +DEPENDS+= user>=20000313:../../sysutils/user +.endif +.endif + +CPP_PRECOMP_FLAGS?= # unset +DEF_UMASK?= 0022 +.if ${OBJECT_FMT} == "ELF" +EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table +.else +EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic +.endif +MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type +MOTIF12_TYPE_DEFAULT?= lesstif12 # default 1.2 compatible libs type +NOLOGIN?= /sbin/nologin +PKG_TOOLS_BIN?= ${LOCALBASE}/sbin +ROOT_CMD?= ${SU} - root -c +ROOT_USER?= root +ROOT_GROUP?= wheel +ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d` +ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s` +ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m` + +_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs/run ldconfig +_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake +_OPSYS_HAS_GMAKE= no # GNU make is not standard +_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages +_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available +_PATCH_BACKUP_ARG= -V simple -b # switch to patch(1) for backup suffix +_PREFORMATTED_MAN_DIR= cat # 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 + +.if (${MACHINE_ARCH} == alpha) +DEFAULT_SERIAL_DEVICE?= /dev/ttyC0 +SERIAL_DEVICES?= /dev/ttyC0 \ + /dev/ttyC1 +.elif (${MACHINE_ARCH} == "i386") +DEFAULT_SERIAL_DEVICE?= /dev/tty00 +SERIAL_DEVICES?= /dev/tty00 \ + /dev/tty01 +.elif (${MACHINE_ARCH} == m68k) +DEFAULT_SERIAL_DEVICE?= /dev/tty00 +SERIAL_DEVICES?= /dev/tty00 \ + /dev/tty01 +.elif (${MACHINE_ARCH} == mipsel) +DEFAULT_SERIAL_DEVICE?= /dev/ttyC0 +SERIAL_DEVICES?= /dev/ttyC0 \ + /dev/ttyC1 +.elif (${MACHINE_ARCH} == "sparc") +DEFAULT_SERIAL_DEVICE?= /dev/ttya +SERIAL_DEVICES?= /dev/ttya \ + /dev/ttyb +.else +DEFAULT_SERIAL_DEVICE?= /dev/null +SERIAL_DEVICES?= /dev/null +.endif + |