2005-04-25 02:45:20 +02:00
|
|
|
# New ports collection makefile for: qcomicbook
|
|
|
|
# Date created: 24 April, 2005
|
|
|
|
# Whom: Adam Weinberger <adamw@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qcomicbook
|
2010-06-14 03:01:04 +02:00
|
|
|
PORTVERSION= 0.5.0
|
2010-06-27 11:33:35 +02:00
|
|
|
PORTREVISION= 2
|
2005-04-25 02:45:20 +02:00
|
|
|
CATEGORIES= graphics
|
2010-06-14 03:01:04 +02:00
|
|
|
MASTER_SITES= http://qcomicbook.linux-projects.net/releases/
|
2005-04-25 02:45:20 +02:00
|
|
|
|
2009-01-16 05:31:32 +01:00
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
2005-04-25 02:45:20 +02:00
|
|
|
COMMENT= QT-based comic book archive viewer
|
|
|
|
|
|
|
|
RUN_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \
|
|
|
|
unrar:${PORTSDIR}/archivers/unrar
|
|
|
|
|
2010-06-13 12:52:39 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2007-12-14 17:50:53 +01:00
|
|
|
USE_QT_VER= 4
|
2010-06-14 04:09:47 +02:00
|
|
|
QT_COMPONENTS= corelib gui moc_build qmake_build rcc_build uic_build
|
2010-06-14 03:01:04 +02:00
|
|
|
USE_CMAKE= yes
|
2009-03-25 15:12:22 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2005-05-27 23:38:42 +02:00
|
|
|
|
2010-06-14 03:01:04 +02:00
|
|
|
PLIST_FILES= \
|
|
|
|
${DESKTOPDIR:S,^${PREFIX}/,,}/${PORTNAME}.desktop \
|
|
|
|
bin/qcomicbook \
|
|
|
|
share/pixmaps/qcomicbook.png
|
2005-05-27 23:38:42 +02:00
|
|
|
|
2010-06-14 03:01:04 +02:00
|
|
|
MAN1= qcomicbook.1
|
|
|
|
NO_MANCOMPRESS= yes
|
2005-04-25 02:45:20 +02:00
|
|
|
|
2009-01-18 02:23:22 +01:00
|
|
|
OPTIONS= 7ZIP "Enable support for 7-Zip (.cb7) comic book archives" on \
|
|
|
|
ACE "Enable support for ACE (.cba) comic book archives" on
|
2009-01-16 05:31:32 +01:00
|
|
|
|
2010-06-14 03:01:04 +02:00
|
|
|
post-patch:
|
|
|
|
# fix man install directory
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|share/man|man|' \
|
|
|
|
${WRKSRC}/help/CMakeLists.txt
|
|
|
|
# fix pixmap location
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|(qcomicbook.png)|${PREFIX}/share/pixmaps/\1|' \
|
|
|
|
${WRKSRC}/data/qcomicbook.desktop
|
|
|
|
|
2009-01-16 05:31:32 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-08-19 11:04:26 +02:00
|
|
|
.if ${OSVERSION} < 700042
|
|
|
|
CPPFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
QTCFGLIBS+= ${PTHREAD_LIBS}
|
|
|
|
.endif
|
|
|
|
|
2010-07-23 22:18:29 +02:00
|
|
|
.if ${OSVERSION} < 700000
|
|
|
|
BROKEN= does not link on 6.X
|
|
|
|
.endif
|
|
|
|
|
2009-01-16 05:31:32 +01:00
|
|
|
# 7-Zip (.cb7) support
|
|
|
|
.if !defined(WITHOUT_7ZIP)
|
|
|
|
RUN_DEPENDS+= 7z:${PORTSDIR}/archivers/p7zip
|
|
|
|
.endif
|
|
|
|
|
2009-01-18 02:23:22 +01:00
|
|
|
# ACE (.cba) support
|
|
|
|
.if !defined(WITHOUT_ACE)
|
|
|
|
RUN_DEPENDS+= unace:${PORTSDIR}/archivers/unace
|
|
|
|
.endif
|
|
|
|
|
2009-01-16 05:31:32 +01:00
|
|
|
.include <bsd.port.post.mk>
|