Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
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.
- Loading branch information
markd
committed
Jun 6, 2007
1 parent
2375bfc
commit 6797977
Showing
7 changed files
with
178 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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__*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
{ |