2009-06-05 13:20:27 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.21 2009/06/05 11:20:27 abs Exp $
|
2006-03-09 21:33:46 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
SUSE_PKG= yes
|
|
|
|
SUSE_VERSION= 10.0
|
2007-08-23 20:20:30 +02:00
|
|
|
EMUL_REQD= suse>=${SUSE_VERSION}
|
2006-03-09 21:33:46 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
# The SuSE 10.x Linux packages are only usable on the following platforms.
|
2007-07-29 10:55:22 +02:00
|
|
|
.if defined(SUSE_COMPAT32)
|
|
|
|
EMUL_PLATFORMS?= linux-i386
|
|
|
|
ONLY_FOR_PLATFORM+= NetBSD-3.99*-x86_64
|
|
|
|
ONLY_FOR_PLATFORM+= NetBSD-[4-9]*-x86_64
|
|
|
|
.else
|
|
|
|
EMUL_PLATFORMS?= linux-i386 linux-powerpc linux-x86_64
|
2007-07-29 07:18:36 +02:00
|
|
|
ONLY_FOR_PLATFORM+= DragonFly-*-i386
|
|
|
|
ONLY_FOR_PLATFORM+= FreeBSD-*-i386
|
|
|
|
ONLY_FOR_PLATFORM+= NetBSD-[2-9]*-i386
|
|
|
|
ONLY_FOR_PLATFORM+= NetBSD-[2-9]*-powerpc
|
|
|
|
ONLY_FOR_PLATFORM+= NetBSD-3.99*-x86_64
|
|
|
|
ONLY_FOR_PLATFORM+= NetBSD-[4-9]*-x86_64
|
2007-07-29 10:55:22 +02:00
|
|
|
.endif
|
|
|
|
|
2009-06-05 13:20:27 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2007-07-29 10:55:22 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2007-07-29 07:18:36 +02:00
|
|
|
|
|
|
|
# _SUSE_ARCH.* is a table of ${EMUL_ARCH} to SuSE architectures.
|
|
|
|
_SUSE_ARCH.${EMUL_ARCH}= ${EMUL_ARCH}
|
|
|
|
_SUSE_ARCH.i386= i586
|
|
|
|
_SUSE_ARCH.powerpc= ppc
|
|
|
|
_SUSE_ARCH= ${_SUSE_ARCH.${EMUL_ARCH}}
|
|
|
|
SUSE_ARCH= ${_SUSE_ARCH}
|
2006-03-09 21:33:46 +01:00
|
|
|
|
|
|
|
_SUSE_FTP_SUBDIR= distribution/SL-${SUSE_VERSION}-OSS/inst-source/suse/${SUSE_ARCH}/
|
2007-07-29 07:18:36 +02:00
|
|
|
_SUSE_FTP_SUBDIR_UPD= suse/update/${SUSE_VERSION}/rpm/${SUSE_ARCH}/
|
2006-06-06 16:52:10 +02:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
MASTER_SITE_SUSE_${SUSE_VERSION}= \
|
2008-09-04 13:53:48 +02:00
|
|
|
http://ftp.hosteurope.de/mirror/ftp.opensuse.org/discontinued/10.0/suse/${SUSE_ARCH}/ \
|
|
|
|
http://suse.bifi.unizar.es/opensuse/${_SUSE_FTP_SUBDIR} \
|
|
|
|
ftp://mirror.colorado.edu/pub/opensuse/${_SUSE_FTP_SUBDIR} \
|
|
|
|
http://opensuse.berkeley.edu/opensuse/${_SUSE_FTP_SUBDIR} \
|
|
|
|
http://opensuse.intergenia.de/${_SUSE_FTP_SUBDIR} \
|
|
|
|
ftp://ftp.uniroma2.it/Linux/opensuse/${_SUSE_FTP_SUBDIR}
|
|
|
|
|
|
|
|
MASTER_SITE_SUSE_${SUSE_VERSION}_UPD= \
|
|
|
|
ftp://gd.tuwien.ac.at/opsys/linux/suse.com/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
http://gd.tuwien.ac.at/opsys/linux/suse.com/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://mirror.karneval.cz/pub/linux/suse/ftp.suse.com/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://ftp.funet.fi/pub/linux/mirrors/suse/ftp.suse.com/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
http://ftp5.gwdg.de/pub/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://sunsite.informatik.rwth-aachen.de/pub/linux/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://ftp.uni-erlangen.de/pub/mirrors/suse/pub/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://ftp.hs.uni-hamburg.de/pub/mirrors/suse/${_SUSE_FTP_SUBDIR_UPD:S/suse/SuSE/} \
|
|
|
|
ftp://ftp.tu-chemnitz.de/pub/linux/suse/ftp.suse.com/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
http://ftp.novell.hu/pub/mirrors/ftp.suse.com/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
http://ftp.isr.ist.utl.pt/pub/MIRRORS/ftp.suse.com/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://ftp.chg.ru/pub/Linux/SuSE/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
http://suse.bifi.unizar.es/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
http://www.mirrorservice.org/sites/ftp.suse.com/pub/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://ftp.mirrorservice.org/sites/ftp.suse.com/pub/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
http://ftp.jaist.ac.jp/pub/Linux/SuSE/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://ftp.jaist.ac.jp/pub/Linux/SuSE/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://ftp.kddilabs.jp/Linux/packages/SuSE/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
http://ftp.kddilabs.jp/Linux/packages/SuSE/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://ftp.riken.jp/Linux/suse/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
http://ftp.riken.jp/Linux/suse/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://ftp.novell.co.jp/pub/suse/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
http://ftp.novell.co.jp/pub/suse/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://ftp.twaren.net/pub/Linux/${_SUSE_FTP_SUBDIR_UPD:S/suse/SuSE/} \
|
|
|
|
http://ftp.twaren.net/Linux/${_SUSE_FTP_SUBDIR_UPD:S/suse/SuSE/} \
|
|
|
|
ftp://ftp.cs.pu.edu.tw/Linux/SuSE/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://mirror.pacific.net.au/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
http://mirror.pacific.net.au/linux/${_SUSE_FTP_SUBDIR_UPD} \
|
2006-07-27 14:00:00 +02:00
|
|
|
ftp://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/${_SUSE_FTP_SUBDIR_UPD} \
|
|
|
|
ftp://ftp.suse.com/pub/${_SUSE_FTP_SUBDIR_UPD}
|
2006-03-09 21:33:46 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
MASTER_SITES?= ${MASTER_SITE_SUSE_${SUSE_VERSION}}
|
2006-03-09 21:33:46 +01:00
|
|
|
DIST_SUBDIR?= suse${SUSE_VERSION:S/.//}/${SUSE_ARCH}
|
2007-07-29 07:18:36 +02:00
|
|
|
|
|
|
|
HOMEPAGE?= http://www.suse.com/
|
2006-03-09 21:33:46 +01:00
|
|
|
|
|
|
|
WRKSRC?= ${WRKDIR}
|
2007-07-29 07:18:36 +02:00
|
|
|
BUILD_DIRS?= # empty
|
2006-03-09 21:33:46 +01:00
|
|
|
MANCOMPRESSED?= yes
|
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
EMUL_PKG_FMT?= rpm
|
2009-06-05 13:20:27 +02:00
|
|
|
RPM2PKG_PREFIX?= ${DESTDIR}${PREFIX}
|
2007-07-29 07:18:36 +02:00
|
|
|
RPM2PKG_SUBPREFIX?= ${EMULSUBDIR}
|
|
|
|
RPM2PKG_STAGE?= do-install
|
2006-10-02 18:00:38 +02:00
|
|
|
|
2007-07-29 10:55:22 +02:00
|
|
|
SUSE_PKGSRCDIR= ${.CURDIR}/../${.CURDIR:T:S/_32_/_/}
|
|
|
|
FILESDIR= ${SUSE_PKGSRCDIR}/files
|
|
|
|
PATCHDIR= ${SUSE_PKGSRCDIR}/patches
|
|
|
|
PKGDIR= ${SUSE_PKGSRCDIR}
|
|
|
|
|
2007-11-06 19:03:31 +01:00
|
|
|
.if defined(SUSE_COMPAT32)
|
2007-07-29 07:18:36 +02:00
|
|
|
PKGNAME:= ${DISTNAME:S/^suse_/suse32_/}
|
|
|
|
COMMENT:= ${COMMENT:S/Linux/Linux 32-bit/}
|
|
|
|
LINUX_BASE= linux32
|
2006-06-20 01:24:21 +02:00
|
|
|
.else
|
2007-07-29 07:18:36 +02:00
|
|
|
LINUX_BASE= linux
|
2007-04-19 17:30:20 +02:00
|
|
|
.endif
|
2007-07-29 07:18:36 +02:00
|
|
|
PLIST_SUBST+= LINUX_BASE=${LINUX_BASE:Q}
|
|
|
|
FILES_SUBST+= LINUX_BASE=${LINUX_BASE:Q}
|
2006-03-09 21:33:46 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
LINUX_LIBSUBDIR?= lib
|
|
|
|
PLIST_SUBST+= LINUX_LIBSUBDIR=${LINUX_LIBSUBDIR:Q}
|
|
|
|
FILES_SUBST+= LINUX_LIBSUBDIR=${LINUX_LIBSUBDIR:Q}
|
2006-04-03 20:17:54 +02:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
# Include an "override" SuSE-specific and architecture-specific
|
|
|
|
# Makefile fragment if it exists.
|
|
|
|
#
|
2007-07-29 10:55:22 +02:00
|
|
|
.sinclude "${SUSE_PKGSRCDIR}/suse.${EMUL_ARCH}.mk"
|
2008-09-04 13:53:48 +02:00
|
|
|
|
|
|
|
.if defined(DISTFILES) && !empty(DISTFILES)
|
|
|
|
. for fetchfile in ${DISTFILES}
|
|
|
|
. if "${fetchfile:C/.[^.]*\.rpm$//:C/^.*-//g:M*.*}" != ""
|
|
|
|
SITES.${fetchfile:T:S/=/--/}?= ${MASTER_SITE_SUSE_${SUSE_VERSION}_UPD}
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
.endif
|