diff options
author | markd <markd@pkgsrc.org> | 2007-06-06 11:23:09 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2007-06-06 11:23:09 +0000 |
commit | 2b286026d84e2faff0518befa3ec86123c872d9b (patch) | |
tree | 6f95150d49231aa59442e3fd2fb250202434f31c /graphics | |
parent | af2f4fe585b8852e7579f5094139957e20b27828 (diff) | |
download | pkgsrc-2b286026d84e2faff0518befa3ec86123c872d9b.tar.gz |
Import of koverartist-0.5
KoverArtist is a program for the fast creation of covers for
cd/dvd cases and boxes. The main idea behind it is to be able
to create decent looking covers with some mouseclicks.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/koverartist/DESCR | 3 | ||||
-rw-r--r-- | graphics/koverartist/Makefile | 28 | ||||
-rw-r--r-- | graphics/koverartist/PLIST | 42 | ||||
-rw-r--r-- | graphics/koverartist/distinfo | 8 | ||||
-rw-r--r-- | graphics/koverartist/patches/patch-aa | 68 | ||||
-rw-r--r-- | graphics/koverartist/patches/patch-ab | 14 | ||||
-rw-r--r-- | graphics/koverartist/patches/patch-ac | 15 |
7 files changed, 178 insertions, 0 deletions
diff --git a/graphics/koverartist/DESCR b/graphics/koverartist/DESCR new file mode 100644 index 00000000000..c2e967f9930 --- /dev/null +++ b/graphics/koverartist/DESCR @@ -0,0 +1,3 @@ +KoverArtist is a program for the fast creation of covers for +cd/dvd cases and boxes. The main idea behind it is to be able +to create decent looking covers with some mouseclicks. diff --git a/graphics/koverartist/Makefile b/graphics/koverartist/Makefile new file mode 100644 index 00000000000..a95dac4ca01 --- /dev/null +++ b/graphics/koverartist/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/06/06 11:23:09 markd Exp $ + +DISTNAME= koverartist-0.5 +CATEGORIES= graphics kde +MASTER_SITES= http://www.kde-apps.org/content/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= markd@NetBSD.org +HOMEPAGE= http://www.kde-apps.org/content/show.php?content=38195 +COMMENT= CD/DVD case designer + +USE_TOOLS+= gmake msgfmt perl +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes +GNU_CONFIGURE= yes + +WRKSRC= ${WRKDIR}/koverartist + +DISTURL=${MASTER_SITES}download.php?content=38195&id=1 +pre-fetch: + ${TEST} -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} || \ + (cd ${DISTDIR} && ${FETCH_CMD} -o ${DISTNAME}${EXTRACT_SUFX} ${DISTURL:Q}) + +.include "../../meta-pkgs/kde3/kde3.mk" +.include "../../graphics/hicolor-icon-theme/buildlink3.mk" +.include "../../x11/kdelibs3/buildlink3.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/koverartist/PLIST b/graphics/koverartist/PLIST new file mode 100644 index 00000000000..68a2d5ed3b3 --- /dev/null +++ b/graphics/koverartist/PLIST @@ -0,0 +1,42 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/06/06 11:23:09 markd Exp $ +bin/koverartist +share/doc/kde/HTML/en/koverartist/common +share/doc/kde/HTML/en/koverartist/index.cache.bz2 +share/doc/kde/HTML/en/koverartist/index.docbook +share/icons/hicolor/128x128/apps/koverartist.png +share/icons/hicolor/16x16/apps/koverartist.png +share/icons/hicolor/22x22/apps/koverartist.png +share/icons/hicolor/32x32/apps/koverartist.png +share/icons/hicolor/48x48/apps/koverartist.png +share/icons/hicolor/64x64/apps/koverartist.png +share/kde/applnk/Multimedia/koverartist.desktop +share/kde/apps/koverartist/cases/cd-multiple.koac +share/kde/apps/koverartist/cases/cd-slim-contents.koac +share/kde/apps/koverartist/cases/cd-slim-simple.koac +share/kde/apps/koverartist/cases/cd-standard.koac +share/kde/apps/koverartist/cases/cd-wideslim-contents.koac +share/kde/apps/koverartist/cases/cd-wideslim-simple.koac +share/kde/apps/koverartist/cases/dvd-slim.koac +share/kde/apps/koverartist/cases/dvd-standard.koac +share/kde/apps/koverartist/koverartistui.rc +share/kde/mimelnk/application/x-koverartist.desktop +share/locale/de/LC_MESSAGES/koverartist.mo +share/locale/es/LC_MESSAGES/koverartist.mo +share/locale/fr/LC_MESSAGES/koverartist.mo +share/locale/it/LC_MESSAGES/koverartist.mo +share/locale/pl/LC_MESSAGES/koverartist.mo +share/locale/pt/LC_MESSAGES/koverartist.mo +share/locale/ru/LC_MESSAGES/koverartist.mo +@comment in kde: @dirrm share/kde/mimelnk/application +@dirrm share/kde/apps/koverartist/cases +@dirrm share/kde/apps/koverartist +@comment in kde: @dirrm share/kde/apps +@comment in hicolor-icon-theme: @dirrm share/icons/hicolor/64x64/apps +@comment in hicolor-icon-theme: @dirrm share/icons/hicolor/48x48/apps +@comment in hicolor-icon-theme: @dirrm share/icons/hicolor/32x32/apps +@comment in hicolor-icon-theme: @dirrm share/icons/hicolor/22x22/apps +@comment in hicolor-icon-theme: @dirrm share/icons/hicolor/16x16/apps +@comment in hicolor-icon-theme: @dirrm share/icons/hicolor/128x128/apps +@comment in hicolor-icon-theme: @dirrm share/icons/hicolor +@dirrm share/doc/kde/HTML/en/koverartist +@comment in kde: @dirrm share/doc/kde/HTML/en diff --git a/graphics/koverartist/distinfo b/graphics/koverartist/distinfo new file mode 100644 index 00000000000..552358de60d --- /dev/null +++ b/graphics/koverartist/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/06/06 11:23:09 markd Exp $ + +SHA1 (koverartist-0.5.tar.bz2) = 2fff3824c7b72a769dd2960bdc38d4dd5ff9e263 +RMD160 (koverartist-0.5.tar.bz2) = 63ee6623b04dabdf8661e2f7eea162b1f15e9802 +Size (koverartist-0.5.tar.bz2) = 748401 bytes +SHA1 (patch-aa) = df486d8bb25d21d257537130477a57328c1b3e29 +SHA1 (patch-ab) = 27d0aff76b1a8bce2dfa35563e913cd201afe83b +SHA1 (patch-ac) = 0cf59f7d9b6ae9b6e616398a11fd322ef87edff4 diff --git a/graphics/koverartist/patches/patch-aa b/graphics/koverartist/patches/patch-aa new file mode 100644 index 00000000000..26dcec931c6 --- /dev/null +++ b/graphics/koverartist/patches/patch-aa @@ -0,0 +1,68 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/06/06 11:23:09 markd Exp $ + +--- src/cdinfo.cpp.orig 2007-05-28 19:36:06.000000000 +1200 ++++ src/cdinfo.cpp +@@ -33,7 +33,7 @@ + #include <sys/stat.h> + #include <sys/types.h> + +-#ifdef __FreeBSD__ ++#if defined(HAVE_SYS_CDIO_H) + # include <sys/cdio.h> + # define CDROM_LEADOUT 0xAA + #else +@@ -91,8 +91,10 @@ bool CdInfo::open() + mErrorCode = errno; + if (mErrorCode==EACCES) + mErrorText = i18n("You do not have permission to read from %1").arg(mDevice); ++#ifdef ENOMEDIUM + else if (mErrorCode==ENOMEDIUM) + mErrorText = i18n("Please insert a disc into %1 and try again").arg(mDevice); ++#endif + else if (mErrorCode==EBUSY) + mErrorText = i18n("%1 is busy").arg(mDevice); + else mErrorText = i18n("Cannot open %1: %2").arg(mDevice).arg(strerror(mErrorCode)); +@@ -100,7 +102,7 @@ bool CdInfo::open() + return false; + } + +-#ifndef __FreeBSD__ ++#if !(defined(__FreeBSD__) || defined(__NetBSD__)) + int st = ioctl(mFd, CDROM_DISC_STATUS); + if (st!=CDS_AUDIO && st!=CDS_MIXED && st!=CDS_NO_INFO) + { +@@ -194,7 +196,7 @@ int CdInfo::cddbSum(int n) + + int CdInfo::readTocHeader() + { +-#ifdef __FreeBSD__ ++#ifdef HAVE_SYS_CDIO_H + ioc_toc_header hdr; + if (ioctl(mFd, CDIOREADTOCHEADER, &hdr)<0) return -1; + return hdr.ending_track; +@@ -212,14 +214,17 @@ bool CdInfo::readTocEntry(int aEntryTrac + { + int frame = 0; + +-#ifdef __FreeBSD__ +- ioc_read_toc_single_entry entry; +- entry.track = aEntryTrack; +- entry.format = CD_MSF_FORMAT; +- if (ioctl(mFd, CDIOREADTOCENTRY, &entry)) return false; +- aTrack.min = entry.entry.addr.msf.minute; +- aTrack.sec = entry.entry.addr.msf.second; +- frame = entry.entry.addr.msf.frame; ++#ifdef HAVE_SYS_CDIO_H ++ struct cd_toc_entry toc_buffer; ++ ioc_read_toc_entry entry; ++ entry.starting_track = aEntryTrack; ++ entry.address_format = CD_MSF_FORMAT; ++ entry.data = &toc_buffer; ++ entry.data_len = sizeof(toc_buffer); ++ if (ioctl(mFd, CDIOREADTOCENTRYS, &entry)) return false; ++ aTrack.min = toc_buffer.addr.msf.minute; ++ aTrack.sec = toc_buffer.addr.msf.second; ++ frame = toc_buffer.addr.msf.frame; + + #else /* not __FreeBSD__*/ + diff --git a/graphics/koverartist/patches/patch-ab b/graphics/koverartist/patches/patch-ab new file mode 100644 index 00000000000..5df32285001 --- /dev/null +++ b/graphics/koverartist/patches/patch-ab @@ -0,0 +1,14 @@ +$NetBSD: patch-ab,v 1.1.1.1 2007/06/06 11:23:09 markd Exp $ + +--- src/renderer.cpp.orig 2006-06-21 19:10:03.000000000 +1200 ++++ src/renderer.cpp +@@ -35,6 +35,9 @@ + + #include <iostream> + ++#ifdef __NetBSD__ ++#define fmin(a,b) ((a)<(b)?(a):(b)) ++#endif + + namespace KoverArtist + { diff --git a/graphics/koverartist/patches/patch-ac b/graphics/koverartist/patches/patch-ac new file mode 100644 index 00000000000..681ed1cf98b --- /dev/null +++ b/graphics/koverartist/patches/patch-ac @@ -0,0 +1,15 @@ +$NetBSD: patch-ac,v 1.1.1.1 2007/06/06 11:23:09 markd Exp $ + +--- src/rendererbase.cpp.orig 2006-04-28 00:52:30.000000000 +1200 ++++ src/rendererbase.cpp +@@ -35,6 +35,10 @@ + + #include <iostream> + ++#ifdef __NetBSD__ ++#define fmin(a,b) ((a)<(b)?(a):(b)) ++#define fmax(a,b) ((a)>(b)?(a):(b)) ++#endif + + namespace KoverArtist + { |