diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2012-12-03 16:57:09 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2012-12-03 16:57:09 +0000 |
commit | 3ac5c145aa90f1fdd14d9ad46846163315eee313 (patch) | |
tree | 41b8d9ceabc7e4e38ef4291a31c51eea78147c98 /graphics/cbrpager | |
parent | 479f5467064c20331953d1f05fb1ced6f4bb190d (diff) | |
download | ports-3ac5c145aa90f1fdd14d9ad46846163315eee313.tar.gz ports-3ac5c145aa90f1fdd14d9ad46846163315eee313.zip |
Notes
Diffstat (limited to 'graphics/cbrpager')
-rw-r--r-- | graphics/cbrpager/Makefile | 61 | ||||
-rw-r--r-- | graphics/cbrpager/distinfo | 6 | ||||
-rw-r--r-- | graphics/cbrpager/files/patch-src__global.c | 11 |
3 files changed, 59 insertions, 19 deletions
diff --git a/graphics/cbrpager/Makefile b/graphics/cbrpager/Makefile index 4a7dc96f60cb..e175c752f983 100644 --- a/graphics/cbrpager/Makefile +++ b/graphics/cbrpager/Makefile @@ -1,33 +1,60 @@ -# ex:ts=8 -# Ports collection makefile for: cbrpager -# Date created: Oct 28, 2004 -# Whom: ijliao -# +# Created by: ijliao # $FreeBSD$ -# PORTNAME= cbrpager PORTVERSION= 0.9.22 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \ + http://jcoppens.com/soft/cbrpager/img/:icons +DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ + snap.jpeg:icons +DIST_SUBDIR= ${PORTNAME} +EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} -MAINTAINER= ports@FreeBSD.org -COMMENT= A viewer for cbr (comic book archive) files +MAINTAINER= nemysis@gmx.ch +COMMENT= Viewer for cbr (comic book archive) files LICENSE= GPLv3 -USE_GNOME= libgnomeui +BUILD_DEPENDS= jpegtopnm:${PORTSDIR}/graphics/netpbm + GNU_CONFIGURE= yes +USE_PKGCONFIG= build +USE_GNOME= libgnomeui +MAKE_JOBS_SAFE= yes + CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -MAKE_JOBS_SAFE= yes -DESKTOP_ENTRIES= "cbrPager" "Comic book files viewer" "" \ - "cbrpager" "Application;Graphics;Viewer;" true +PLIST_FILES= bin/${PORTNAME} \ + share/pixmaps/${PORTNAME}.png + +DESKTOP_ENTRIES="cbrPager" "${COMMENT}" "${PORTNAME}" \ + "${PORTNAME}" "Application;Graphics;Viewer;" true + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +PLIST_FILES+= share/locale/es/LC_MESSAGES/${PORTNAME}.mo \ + share/locale/fr/LC_MESSAGES/${PORTNAME}.mo +.else +PLIST_SUB+= NLS="@comment " +.endif + +post-configure: +.if !${PORT_OPTIONS:MNLS} + @${REINPLACE_CMD} 's|src po|src|' ${WRKSRC}/Makefile +.endif + +post-build: + @(cd ${WRKSRC} && \ + ${LOCALBASE}/bin/jpegtopnm ${DISTDIR}/${DIST_SUBDIR}/snap.jpeg | \ + ${LOCALBASE}/bin/pamscale .118 | ${LOCALBASE}/bin/pnmtopng > ${PORTNAME}.png) -PLIST_FILES= bin/cbrpager \ - share/locale/es/LC_MESSAGES/cbrpager.mo \ - share/locale/fr/LC_MESSAGES/cbrpager.mo +post-install: + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps .include <bsd.port.mk> diff --git a/graphics/cbrpager/distinfo b/graphics/cbrpager/distinfo index 03cced55d2d3..5e3e92c0e038 100644 --- a/graphics/cbrpager/distinfo +++ b/graphics/cbrpager/distinfo @@ -1,2 +1,4 @@ -SHA256 (cbrpager-0.9.22.tar.gz) = 1852303374d7777f2a5f395fda97d78f970fa87c854ee048495a901922b7dd84 -SIZE (cbrpager-0.9.22.tar.gz) = 146216 +SHA256 (cbrpager/cbrpager-0.9.22.tar.gz) = 1852303374d7777f2a5f395fda97d78f970fa87c854ee048495a901922b7dd84 +SIZE (cbrpager/cbrpager-0.9.22.tar.gz) = 146216 +SHA256 (cbrpager/snap.jpeg) = 3cc4264676c69d84620d6c136cfa87270ed214468553a94a64ea8ea1191b5877 +SIZE (cbrpager/snap.jpeg) = 60792 diff --git a/graphics/cbrpager/files/patch-src__global.c b/graphics/cbrpager/files/patch-src__global.c new file mode 100644 index 000000000000..5057972044b4 --- /dev/null +++ b/graphics/cbrpager/files/patch-src__global.c @@ -0,0 +1,11 @@ +--- ./src/global.c.orig 2012-12-03 17:33:00.000000000 +0100 ++++ ./src/global.c 2012-12-03 17:33:17.000000000 +0100 +@@ -730,7 +730,7 @@ + printf("Key1: %04x\n", event->keyval); + } + +-gboolean ++void + main_canvas_keypressed1(GdkEventKey *event) + { + GtkWidget *w; |