aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/ebview-gtk2/Makefile
blob: e7ab83ec0925a637b6e37989b379caf5a1a28305 (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
# $FreeBSD$

PORTNAME=   ebview
PORTVERSION=    0.3.6
PORTREVISION=   17
CATEGORIES= japanese
MASTER_SITES=   SF
PKGNAMESUFFIX=  -gtk2

MAINTAINER= ports@FreeBSD.org
COMMENT=    Electronic Book Viewer

LICENSE=    GPLv2 # (or later)

LIB_DEPENDS=    libeb.so:${PORTSDIR}/japanese/eb

CONFLICTS=  ja-ebview-[0-9]*

USES=       gettext gmake pkgconfig
USE_GNOME=  gtk20 pangox-compat
USE_CSTD=   gnu89
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-eb-conf=${LOCALBASE}/etc/eb.conf

SUB_FILES=  ebview.desktop

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|#define GTK_DISABLE_DEPRECATED 1||g' \
        ${WRKSRC}/src/ebview.c

post-install:
    (cd ${WRKDIR} && ${INSTALL_DATA} ${SUB_FILES} \
        ${STAGEDIR}${DESKTOPDIR})
    (cd ${WRKSRC}/pixmaps && ${INSTALL_DATA} ebview.xpm \
        ${STAGEDIR}${PREFIX}/share/pixmaps)
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ChangeLog README
    (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor

.include <bsd.port.mk>