[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pixia



pixiaのpkgsrcです。使ったことがないのでちゃんと動いているのか不明 :-)

sakamoto
--
# 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:
#
#	pixia
#	pixia/Makefile
#	pixia/pkg
#	pixia/pkg/DESCR
#	pixia/pkg/COMMENT
#	pixia/pkg/PLIST
#	pixia/files
#	pixia/files/md5
#	pixia/files/list
#	pixia/files/pixia
#
echo c - pixia
mkdir -p pixia > /dev/null 2>&1
echo x - pixia/Makefile
sed 's/^X//' >pixia/Makefile << 'END-of-pixia/Makefile'
X# $NetBSD$
X#
X
XDISTNAME=	pixia0411
XPKGNAME=	pixia-20000411
XCATEGORIES=	graphics
XMASTER_SITES=	ftp://ftp.tacmi.co.jp/pub/pixia/ \
X		ftp://ftp.turbolinux.com/turbolinux/TurboLinux/RPMS/
XDISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
X		libpng-1.0.3-3.i386.rpm \
X		libtiff-3.4-6.i386.rpm
X
XMAINTAINER=	sakamoto@netbsd.org
XHOMEPAGE=	http://www.tky.3web.ne.jp/~ikami/pixia/index.html
X
XBUILD_DEPENDS+=	rpm2cpio:../../misc/rpm
XDEPENDS+=	suse_linux>=6.1:../../emulators/suse_linux
X
XONLY_FOR_PLATFORM=	*-*-i386
X
XEXTRACT_ONLY=	# empty
XNO_PATCH=	yes
XNO_CONFIGURE=	yes
XPLIST_SRC=	${WRKDIR}/PLIST
X
XMIRROR_DISTFILE=no
XRESTRICTED=	No re-distribution
XNO_PACKAGE=	${RESTRICTED}
X
Xpost-extract:
X.for f in libpng-1.0.3-3 libtiff-3.4-6
X	(cd ${WRKDIR}; rpm2cpio ${DISTDIR}/${f}.i386.rpm | \
X		cpio -i -d -E ${FILESDIR}/list)
X.endfor
X
Xdo-build:
X	@${SED} -e 's|$${PIXIADIR}|${PREFIX}/lib/pixia|g' \
X		${FILESDIR}/pixia > ${WRKDIR}/pixia
X
Xdo-install:
X	${GTAR} xCzf ${PREFIX}/lib ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
X.for f in libpng.so.2.1.0.3 libtiff.so.3.4
X	${INSTALL_DATA} ${WRKDIR}/usr/lib/${f} ${PREFIX}/lib/pixia
X.endfor
X	${INSTALL_SCRIPT} ${WRKDIR}/pixia ${PREFIX}/bin
X
Xpost-install:
X	@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
X	@cd ${PREFIX}; \
X	${FIND} lib/pixia -type f -or -type l | sort >> ${PLIST_SRC}; \
X	for DIR in `${FIND} lib/pixia -type d | sort -r`; do \
X		if [ -z "`ls $$DIR`" ]; then \
X			${ECHO} "@exec ${MKDIR} %D/$$DIR" > ${PLIST_SRC}; \
X		fi; \
X		${ECHO} "@dirrm $$DIR" >>${PLIST_SRC}; \
X	done
X
Xshow-shlib-type:
X	@${ECHO} linux-${MACHINE_ARCH}
X
X.include "../../mk/bsd.pkg.mk"
END-of-pixia/Makefile
echo c - pixia/pkg
mkdir -p pixia/pkg > /dev/null 2>&1
echo x - pixia/pkg/DESCR
sed 's/^X//' >pixia/pkg/DESCR << 'END-of-pixia/pkg/DESCR'
Xpixia
END-of-pixia/pkg/DESCR
echo x - pixia/pkg/COMMENT
sed 's/^X//' >pixia/pkg/COMMENT << 'END-of-pixia/pkg/COMMENT'
Xpixia
END-of-pixia/pkg/COMMENT
echo x - pixia/pkg/PLIST
sed 's/^X//' >pixia/pkg/PLIST << 'END-of-pixia/pkg/PLIST'
X@comment $NetBSD$
Xbin/pixia
END-of-pixia/pkg/PLIST
echo c - pixia/files
mkdir -p pixia/files > /dev/null 2>&1
echo x - pixia/files/md5
sed 's/^X//' >pixia/files/md5 << 'END-of-pixia/files/md5'
X$NetBSD$
X
XMD5 (pixia0411.tar.gz) = def6a6b0f2694985ffb1d743821e1fdd
XMD5 (libpng-1.0.3-3.i386.rpm) = 1ae01094c9e207b6ccc2eb2aa69b8766
XMD5 (libtiff-3.4-6.i386.rpm) = e77e49aba60608fb9c6fb6f737bfaa3e
END-of-pixia/files/md5
echo x - pixia/files/list
sed 's/^X//' >pixia/files/list << 'END-of-pixia/files/list'
Xusr/lib/libpng.so.2.1.0.3
Xusr/lib/libtiff.so.3.4
END-of-pixia/files/list
echo x - pixia/files/pixia
sed 's/^X//' >pixia/files/pixia << 'END-of-pixia/files/pixia'
X#!/bin/sh
Xexport LD_PRELOAD="${PIXIADIR}/libpng.so.2.1.0.3:${PIXIADIR}/libtiff.so.3.4"
Xcd ${PIXIADIR}; ./pixia
END-of-pixia/files/pixia
exit