diff options
author | tonio <tonio@pkgsrc.org> | 2006-03-09 20:33:46 +0000 |
---|---|---|
committer | tonio <tonio@pkgsrc.org> | 2006-03-09 20:33:46 +0000 |
commit | 04e9e931d23a1630f2d71269073f31105a740588 (patch) | |
tree | 90b8cd402dc25e1d903a58a2a92c5679be7a08a1 /emulators/suse100_linux | |
parent | bafe7402ac76277e5d217e97852990af3bb8e0ec (diff) | |
download | pkgsrc-04e9e931d23a1630f2d71269073f31105a740588.tar.gz |
Import openSUSE 10.0 base packages for Linux emulation
Add support for powerpc (but it does *not* work stable yet)
Diffstat (limited to 'emulators/suse100_linux')
-rw-r--r-- | emulators/suse100_linux/Makefile.common | 68 | ||||
-rw-r--r-- | emulators/suse100_linux/arch.mk | 19 | ||||
-rw-r--r-- | emulators/suse100_linux/vars.mk | 9 |
3 files changed, 96 insertions, 0 deletions
diff --git a/emulators/suse100_linux/Makefile.common b/emulators/suse100_linux/Makefile.common new file mode 100644 index 00000000000..6b9cbcc67b4 --- /dev/null +++ b/emulators/suse100_linux/Makefile.common @@ -0,0 +1,68 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2006/03/09 20:33:46 tonio Exp $ + +.include "../../emulators/suse100_linux/vars.mk" +.include "../../emulators/suse100_linux/arch.mk" + +ONLY_FOR_PLATFORM+= NetBSD-[2-9]*-i386 NetBSD-3.99*-x86_64 \ + NetBSD-[2-9]*-powerpc \ + NetBSD-[4-9]*-x86_64 FreeBSD-*-i386 \ + DragonFly-*-i386 + +_SUSE_FTP_SUBDIR= distribution/SL-${SUSE_VERSION}-OSS/inst-source/suse/${SUSE_ARCH}/ + +MASTER_SITE_SUSE100?= ftp://suse.inode.at/opensuse/${_SUSE_FTP_SUBDIR} + +DIST_SUBDIR?= suse${SUSE_VERSION:S/.//}/${SUSE_ARCH} + +WRKSRC?= ${WRKDIR} +MANCOMPRESSED?= yes + +EMULSUBDIR= emul/linux +EMULDIR= ${PREFIX}/${EMULSUBDIR} + +RPM2PKG= ${PREFIX}/sbin/rpm2pkg +BUILD_DEPENDS+= rpm2pkg>=2.1:../../pkgtools/rpm2pkg + +BUILD_DEFS+= RPMFILES +.if defined(RPMIGNOREPATH) +BUILD_DEFS+= RPMIGNOREPATH +.endif + +# The SuSE Linux packages have circular dependencies. +LDD?= ${TRUE} + +RPM2PKGSTRIP?= 1 +RPM2PKGARGS?= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR} +.if empty(RPM2PKGSTRIP:M0) +RPM2PKGARGS+= -s ${RPM2PKGSTRIP} +.endif +.for TEMP in ${RPMIGNOREPATH} +RPM2PKGARGS+= -i ${TEMP} +.endfor +.for TEMP in ${RPMFILES} +RPM2PKGARGS+= ${DISTDIR}/${DIST_SUBDIR}/${TEMP} +.endfor + +.if !target(do-install) +do-install: + @if [ -f ${PKGDIR}/PLIST ]; then \ + ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \ + else \ + ${RM} -f ${PLIST_SRC}; \ + ${CP} ${PKGSRCDIR}/emulators/suse_linux/PLIST_dynamic ${PLIST_SRC} ; \ + fi + ${RPM2PKG} ${RPM2PKGARGS} + @if ${GREP} -q 'lib.*\.so' ${PLIST_SRC}; then \ + ${ECHO_MSG} "===> [Automatic Linux shared object handling]"; \ + ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}; \ + ${MV} -f ${PLIST_SRC} ${PLIST_SRC}.old; \ + ${GREP} -v '^@dirrm' ${PLIST_SRC}.old >${PLIST_SRC} || ${TRUE}; \ + ${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" >>${PLIST_SRC}; \ + ${ECHO} "@unexec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR} 2>/dev/null" >>${PLIST_SRC}; \ + ${GREP} '^@dirrm' ${PLIST_SRC}.old >>${PLIST_SRC} || ${TRUE}; \ + ${RM} -f ${PLIST_SRC}.old; \ + fi +.endif + +show-shlib-type: + @${ECHO} linux-${MACHINE_ARCH} diff --git a/emulators/suse100_linux/arch.mk b/emulators/suse100_linux/arch.mk new file mode 100644 index 00000000000..a81df844cef --- /dev/null +++ b/emulators/suse100_linux/arch.mk @@ -0,0 +1,19 @@ +# $NetBSD: arch.mk,v 1.1.1.1 2006/03/09 20:33:46 tonio Exp $ + +.ifndef SUSE_ARCH_MK +SUSE_ARCH_MK=1 + +.include "../../mk/bsd.prefs.mk" + +.if ${MACHINE_ARCH} == "i386" +SUSE_ARCH?= i586 +SUSE_ARCH_DIR?= ${MACHINE_ARCH} +.elif ${MACHINE_ARCH} == "powerpc" +SUSE_ARCH?= ppc +.else +SUSE_ARCH?= ${MACHINE_ARCH} +.endif + +SUSE_ARCH_DIR?= ${SUSE_ARCH} + +.endif # SUSE_ARCH_MK diff --git a/emulators/suse100_linux/vars.mk b/emulators/suse100_linux/vars.mk new file mode 100644 index 00000000000..7f78258bdaf --- /dev/null +++ b/emulators/suse100_linux/vars.mk @@ -0,0 +1,9 @@ +# $NetBSD: vars.mk,v 1.1.1.1 2006/03/09 20:33:46 tonio Exp $ + +.ifndef SUSE_VARS_MK +SUSE_VARS_MK=1 + +SUSE_DIR_PREFIX= suse100 +SUSE_VERSION= 10.0 + +.endif # SUSE_VARS_MK |