blob: 6d749641f01b54744fb313c65c02033942875bfe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= cbrpager
PORTVERSION= 0.9.22
PORTREVISION= 4
CATEGORIES= graphics
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= nemysis@gmx.ch
COMMENT= Viewer for cbr (comic book archive) files
LICENSE= GPLv3
BUILD_DEPENDS= jpegtopnm:${PORTSDIR}/graphics/netpbm
GNU_CONFIGURE= yes
USES= pkgconfig
USE_GNOME= libgnomeui
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.png
DESKTOP_ENTRIES="cbrPager" "Comic book viewer" \
"${PREFIX}/share/pixmaps/${PORTNAME}.png" \
"${PORTNAME}" "Graphics;Viewer;GNOME;" true
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
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)
post-install:
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps
.include <bsd.port.mk>
|