diff options
author | agc <agc@pkgsrc.org> | 2001-10-30 13:53:15 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2001-10-30 13:53:15 +0000 |
commit | 7167cd3880ee7934078e135a86e67afe430a2db0 (patch) | |
tree | 534b8d9299a4f4782688600ae3fcb9a7d2215441 | |
parent | f2904106a5a1972dd9ebaa39b26380c818e1216d (diff) | |
download | pkgsrc-7167cd3880ee7934078e135a86e67afe430a2db0.tar.gz |
Add initial support for Darwin (1.4) to pkgsrc.
-rw-r--r-- | mk/Darwin.pkg.dist | 425 | ||||
-rw-r--r-- | mk/Darwin.x11.dist | 501 | ||||
-rw-r--r-- | mk/bsd.pkg.mk | 8 | ||||
-rw-r--r-- | mk/bsd.prefs.mk | 29 | ||||
-rw-r--r-- | mk/defs.Darwin.mk | 55 |
5 files changed, 1006 insertions, 12 deletions
diff --git a/mk/Darwin.pkg.dist b/mk/Darwin.pkg.dist new file mode 100644 index 00000000000..380965f8fd8 --- /dev/null +++ b/mk/Darwin.pkg.dist @@ -0,0 +1,425 @@ +# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp +# $NetBSD: Darwin.pkg.dist,v 1.1 2001/10/30 13:53:15 agc 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 + az + LC_MESSAGES + .. + .. + bg + LC_MESSAGES + .. + .. + bg_BG.cp1251 + LC_MESSAGES + .. + .. + ca + LC_MESSAGES + .. + .. + cs + LC_MESSAGES + .. + .. + cz + LC_MESSAGES + .. + .. + da + LC_MESSAGES + .. + .. + de + LC_MESSAGES + .. + .. + dk + LC_MESSAGES + .. + .. + el + LC_MESSAGES + .. + .. + en + LC_MESSAGES + .. + .. + en_GB + LC_MESSAGES + .. + .. + en_US + LC_MESSAGES + .. + .. + eo + LC_MESSAGES + .. + .. + es + LC_MESSAGES + .. + .. + et + LC_MESSAGES + .. + .. + eu + LC_MESSAGES + .. + .. + fi + LC_MESSAGES + .. + .. + fr + LC_MESSAGES + .. + .. + ga + LC_MESSAGES + .. + .. + gl + LC_MESSAGES + .. + .. + hr + LC_MESSAGES + .. + .. + hu + LC_MESSAGES + .. + .. + id + LC_MESSAGES + .. + .. + it + LC_MESSAGES + .. + .. + ja + LC_MESSAGES + .. + .. + ko + LC_MESSAGES + .. + .. + lt + 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 + .. + .. + 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 + .. + 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 + .. + pt_PT.ISO_8859-1 + .. + ru_SU.CP866 + .. + ru_SU.KOI8-R + .. + sv_SE.ISO_8859-1 + .. + uk_UA.ISO_8859-1 + .. + .. + skel + .. + .. +.. diff --git a/mk/Darwin.x11.dist b/mk/Darwin.x11.dist new file mode 100644 index 00000000000..8041d9bdc5c --- /dev/null +++ b/mk/Darwin.x11.dist @@ -0,0 +1,501 @@ +# $NetBSD: Darwin.x11.dist,v 1.1 2001/10/30 13:53:15 agc Exp $ +# FreeBSD Id: BSD.x11.dist,v 1.2 1997/06/10 07:55:10 asami Exp +# + +/set type=dir uname=root gname=wheel mode=0755 +. + bin + .. + etc + rc.d + .. + .. + include + X11 + ICE + .. + PEX5 + .. + PM + .. + SM + .. + Xaw + .. + Xmu + .. + bitmaps + .. + extensions + .. + fonts + .. + pixmaps + .. + .. + .. + info + .. + lib + X11 + XF86Setup + pics + .. + scripts + .. + tcllib + .. + .. + app-defaults + .. + config + .. + doc + .. + etc + .. + fonts + 100dpi + .. + 75dpi + .. + PEX + .. + Speedo + .. + Type1 + .. + cyrillic + .. + local + .. + misc + .. + .. + fs + .. + lbxproxy + .. + locale + C + .. + en_US.utf + .. + iso8859-1 + .. + iso8859-2 + .. + iso8859-3 + .. + iso8859-4 + .. + iso8859-5 + .. + iso8859-6 + .. + iso8859-7 + .. + iso8859-8 + .. + iso8859-9 + .. + ja + .. + ja.JIS + .. + ja.SJIS + .. + ko + .. + koi8-r + .. + tbl_data + .. + th_TH.TACTIS + .. + zh + .. + zh_TW + .. + .. + proxymngr + .. + rstart + commands + x11r6 + .. + .. + contexts + .. + .. + twm + .. + x11perfcomp + .. + xdm + .. + xinit + .. + xkb + compat + .. + compiled + .. + geometry + digital + .. + sgi + .. + .. + keycodes + digital + .. + sgi + .. + .. + keymap + digital + .. + sgi + .. + sun + .. + .. + rules + .. + semantics + .. + symbols + digital + .. + fujitsu + .. + nec + .. + sony + .. + sun + .. + .. + .. + xserver + .. + xsm + .. + .. + modules + .. + .. + libexec + .. + 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 + .. + .. + share + doc + html + .. + .. + examples + .. + fonts + .. + locale + az + LC_MESSAGES + .. + .. + bg_BG.cp1251 + LC_MESSAGES + .. + .. + ca + LC_MESSAGES + .. + .. + cs + LC_MESSAGES + .. + .. + cz + LC_MESSAGES + .. + .. + da + LC_MESSAGES + .. + .. + de + LC_MESSAGES + .. + .. + dk + LC_MESSAGES + .. + .. + el + LC_MESSAGES + .. + .. + en + LC_MESSAGES + .. + .. + en_GB + LC_MESSAGES + .. + .. + en_US + LC_MESSAGES + .. + .. + eo + LC_MESSAGES + .. + .. + es + LC_MESSAGES + .. + .. + et + LC_MESSAGES + .. + .. + eu + LC_MESSAGES + .. + .. + fi + LC_MESSAGES + .. + .. + fr + LC_MESSAGES + .. + .. + ga + LC_MESSAGES + .. + .. + gl + LC_MESSAGES + .. + .. + hr + LC_MESSAGES + .. + .. + hu + LC_MESSAGES + .. + .. + id + LC_MESSAGES + .. + .. + it + LC_MESSAGES + .. + .. + ja + LC_MESSAGES + .. + .. + ko + LC_MESSAGES + .. + .. + lt + 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 + .. + .. + wa + LC_MESSAGES + .. + .. + zh + LC_MESSAGES + .. + .. + zh_CN + LC_MESSAGES + .. + .. + zh_CN.GB2312 + LC_MESSAGES + .. + .. + zh_TW.Big5 + LC_MESSAGES + .. + .. + .. + pixmaps + .. + .. +.. diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 3b2661b9f1d..815df7c8580 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.838 2001/10/29 19:21:18 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.839 2001/10/30 13:53:15 agc Exp $ # # This file is in the public domain. # @@ -334,7 +334,9 @@ LDFLAGS+= -Wl,-R${X11BASE}/lib LDFLAGS+= -L${X11BASE}/lib . endif .endif +.if ${OPSYS} != "Darwin" LDFLAGS+= -Wl,-R${LOCALBASE}/lib +.endif .if !defined(USE_BUILDLINK_ONLY) LDFLAGS+= -L${LOCALBASE}/lib .endif @@ -368,7 +370,7 @@ PATCH_DIST_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP} PATCH_ARGS+= --batch PATCH_DIST_ARGS+= --batch .endif -.if (${OPSYS} == "SunOS" || ${OPSYS} == "Linux") +.if (${OPSYS} == "SunOS" || ${OPSYS} == "Linux" || ${OPSYS} == "Darwin") PATCH_ARGS+= -V simple -z .orig .else PATCH_ARGS+= -V simple -b .orig @@ -3362,7 +3364,7 @@ MAKE_ENV+= MANZ="${MANZ}" # PERL5_PACKLIST is defined # - adding symlinks for shared libs (ELF) or ldconfig calls (a.out). -.if ${OPSYS} == "NetBSD" +.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Darwin" IMAKE_MAN_CMD= . ifdef MANZ MANZ_EXPRESSION= -e 's|\(^\([^@/]*/\)*man/\([^/]*/\)\{0,1\}man[1-9ln]/.*[1-9ln]$$\)|\1.gz|' \ diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 49cdc897ac9..e6180bb4aee 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.60 2001/09/21 15:28:35 tron Exp $ +# $NetBSD: bsd.prefs.mk,v 1.61 2001/10/30 13:53:15 agc Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -81,6 +81,13 @@ LOWER_VENDOR?= unknown . endif . endif +.elif ${OPSYS} == "Darwin" +LOWER_OPSYS?= darwin +LOWER_ARCH!= ${UNAME} -p +MACHINE_ARCH= ${LOWER_ARCH} +MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH} +LOWER_VENDOR?= apple + .elif !defined(LOWER_OPSYS) LOWER_OPSYS!= echo ${OPSYS} | tr A-Z a-z .endif @@ -287,7 +294,7 @@ SERIAL_DEVICES?= /dev/null PKG_TOOLS_BIN?= /usr/sbin .elif (${OPSYS} == "SunOS") # Migration aid for old /usr/local LOCALBASE on Solaris -.if !defined(LOCALBASE) && exists(${DESTDIR}/usr/local/libexec/cgi-bin) && \ +. if !defined(LOCALBASE) && exists(${DESTDIR}/usr/local/libexec/cgi-bin) && \ !exists(${DESTDIR}/usr/pkg/libexec/cgi-bin) .BEGIN: @echo "On Solaris and /usr/local/libexec/cgi-bin found:" @@ -296,25 +303,29 @@ PKG_TOOLS_BIN?= /usr/sbin @echo "- Otherwise set LOCALBASE=/usr/pkg in your environment for the" @echo " first package install." @false -.endif +. endif # end of migration aid LOCALBASE?= ${DESTDIR}/usr/pkg -.if !defined(ZOULARISBASE) -. if exists(${LOCALBASE}/bsd) +. if !defined(ZOULARISBASE) +. if exists(${LOCALBASE}/bsd) ZOULARISBASE:= ${LOCALBASE}/bsd -. else +. else ZOULARISBASE:= ${LOCALBASE} +. endif . endif -.endif PKG_TOOLS_BIN?= ${ZOULARISBASE}/bin -.if (${X11BASE} == "/usr/openwin") +. if (${X11BASE} == "/usr/openwin") HAVE_OPENWINDOWS= YES -.endif +. endif .elif (${OPSYS} == "Linux") ZOULARISBASE?= ${DESTDIR}/usr/local/bsd PKG_TOOLS_BIN?= ${ZOULARISBASE}/bin + +.elif (${OPSYS} == "Darwin") +ZOULARISBASE?= ${DESTDIR}/usr/pkg +PKG_TOOLS_BIN?= ${ZOULARISBASE}/sbin .endif LOCALBASE?= ${DESTDIR}/usr/pkg diff --git a/mk/defs.Darwin.mk b/mk/defs.Darwin.mk new file mode 100644 index 00000000000..bf94aad1ad6 --- /dev/null +++ b/mk/defs.Darwin.mk @@ -0,0 +1,55 @@ +# $NetBSD: defs.Darwin.mk,v 1.1 2001/10/30 13:53:16 agc Exp $ +# +# Variable definitions for the Darwin 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 +FALSE?= false # Shell builtin +FILE_CMD?= /usr/bin/file +FIND?= /usr/bin/find +GREP?= /usr/bin/grep +GTAR?= /usr/bin/tar +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 +PKGLOCALEDIR?= share +RM?= /bin/rm +RMDIR?= /bin/rmdir +SED?= /usr/bin/sed +SETENV?= /usr/bin/env +SH?= /bin/sh +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 + +BINOWN?= root +BINGRP?= wheel |