Subject: multiarch package to test
To: None <tech-pkg@netbsd.org>
From: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
List: tech-pkg
Date: 03/13/2001 21:39:53
Hi!

I've got a multiarch package, and I need some help to test it on alpha,
sparc and i386 (I did test it on powerpc). Here is the skeletton, there
should be minor adjustement to get it running on other ports.

Another problem: My PLIST is not taken into account (the package system
get an empty PLIST). Any idea why?

And a final point: blender is a raytracer. It's a non opensource
freeware, the license says we wannot distribute it in a commercial way.
Does this require an additionnal macro in the Makefile?


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       blender
#       blender/Makefile
#       blender/pkg
#       blender/pkg/DESCR
#       blender/pkg/PLIST.linux-powerpc
#       blender/files
#       blender/files/md5
#
echo c - blender
mkdir -p blender > /dev/null 2>&1
echo x - blender/Makefile
sed 's/^X//' >blender/Makefile << 'END-of-blender/Makefile'
X# $NetBSD$
X#
X
XDISTNAME=      ""
XPKGNAME=               blender-2.11.nb1
XCATEGORIES=    cad
XMASTER_SITES=  ftp://www.blender.nl/pub/
X
XMAINTAINER=    manu@netbsd.org
XHOMEPAGE=      http://www.blender.nl
XCOMMENT=               GUI based raytracer
X
X.if (${MACHINE_ARCH} == "alpha")
X.if !exists(/emul/linux/lib/ld.so.1)
XIGNORE=  "${PKGNAME} requires Linux libraries - see compat_linux(8)"
X.endif
XDISTNAME=      blender2.11-linux-glibc2.1.3-alpha-static
X#
X.elif (${MACHINE_ARCH} == "i386")
X.if !exists(/emul/linux/lib/ld.so.1)
XIGNORE=  "${PKGNAME} requires Linux libraries - see compat_linux(8)"
X.endif
XDISTNAME=      blender2.11-linux-glibc2.1.2-i386-static.tar.gz
X#
X.elif (${MACHINE_ARCH} == "sparc")
X.if !exists(/emul/sunos/usr/lib/ld.so)
XIGNORE=  "${PKGNAME} requires SunOS libraries - see compat_sunos(8)"
X.endif
XDISTNAME=   blender2.11-solaris-2.6-sparc
XEXTRACT_SUFX=  .tar.Z
X#
X.elif (${MACHINE_ARCH} == "powerpc")
X.if !exists(/emul/linux/lib/ld.so.1)
XIGNORE=  "${PKGNAME} requires Linux libraries - see compat_linux(8)"
X.endif
XDEPENDS+=   linuxppc_lib>=2000.q4.2:../../emulators/linuxppc_lib
XDISTNAME=      blender2.11-linux-glibc2.1.3-powerpc-static
XPLIST_ARCH=    linux-powerpc
X#
X.else
XIGNORE=        "Your platform is not supported and the package is
buggy!"
X.endif
X
XPLIST_SRC=     ${PKGDIR}/PLIST.${PLIST_ARCH}
XNO_BUILD=      yes
XONLY_FOR_PLATFORM= *-*-powerpc
X
Xdo-install:
X       ${MKDIR} ${PREFIX}/blender
X       ${CP} -Rp ${WRKSRC}/* ${PREFIX}/blender/
X       ${LN} -sf ${PREFIX}/blender/blender ${PREFIX}/bin/blender
X
X.include "../../mk/bsd.pkg.mk"
END-of-blender/Makefile
echo c - blender/pkg
mkdir -p blender/pkg > /dev/null 2>&1
echo x - blender/pkg/DESCR
sed 's/^X//' >blender/pkg/DESCR << 'END-of-blender/pkg/DESCR'
XTo be filled
END-of-blender/pkg/DESCR
echo x - blender/pkg/PLIST.linux-powerpc
sed 's/^X//' >blender/pkg/PLIST.linux-powerpc <<
'END-of-blender/pkg/PLIST.linux-powerpc'
X@comment $NetBSD$
Xblender/python/wrlexport.py
Xblender/python/ribexport.py
Xblender/python/povexport.py
Xblender/python/objimport.py
Xblender/python/mimport.py
Xblender/python/lwoimport.py
Xblender/python/lwo2iv.py
Xblender/python/ivexport.py
X@dirrm blender/python
Xblender/plugins/texture/tiles.so
Xblender/plugins/texture/tiles.c
Xblender/plugins/texture/clouds2.so
Xblender/plugins/texture/clouds2.c
Xblender/plugins/texture/Makefile
X@dirrm blender/plugins/texture
Xblender/plugins/sequence/showzbuf.so
Xblender/plugins/sequence/showzbuf.c
Xblender/plugins/sequence/scatter.so
Xblender/plugins/sequence/scatter.c
Xblender/plugins/sequence/blur.so
Xblender/plugins/sequence/blur.c
Xblender/plugins/sequence/Makefile
X@dirrm blender/plugins/sequence
Xblender/plugins/include/util.h
Xblender/plugins/include/plugin.h
Xblender/plugins/include/iff.h
Xblender/plugins/include/floatpatch.h
Xblender/plugins/include
Xblender/plugins/bmake
Xblender/plugins/Makefile
X@dirrm blender/plugins
Xblender/copyright.txt
Xblender/blender
Xblender/README
X@dirrm blender
Xbin/blender
END-of-blender/pkg/PLIST.linux-powerpc
echo c - blender/files
mkdir -p blender/files > /dev/null 2>&1
echo x - blender/files/md5
sed 's/^X//' >blender/files/md5 << 'END-of-blender/files/md5'
X$NetBSD$
X
XMD5 (blender2.11-linux-glibc2.1.3-powerpc-static.tar.gz) =
fd17a5511e631879bf3d33d95b365ff7
END-of-blender/files/md5
exit



-- 
Emmanuel Dreyfus.
Si la reponse est NT, c'est probablement 
que vous n'avez pas compris la question.
p99dreyf@criens.u-psud.fr