aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/parcellite/Makefile
blob: c14cad32e2e7ef5359f4d1ecdf07a20f85e05832 (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
# Created by: Joey Mingrone <joey@mingrone.org>
# $FreeBSD$

PORTNAME=   parcellite
PORTVERSION=    1.1.7
PORTREVISION=   1
PORTEPOCH=  1
CATEGORIES= deskutils
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= koalative@gmail.com
COMMENT=    Lightweight GTK+ clipboard manager

LICENSE=    GPLv3

BUILD_DEPENDS=  p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser

USES=       gmake pkgconfig
GNU_CONFIGURE=  yes
USE_GNOME=  gtk20

PORTDOCS=   AUTHORS ChangeLog README

OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB=    yes

NLS_CONFIGURE_ENABLE=   nls
NLS_USES=   gettext

SUB_FILES=  pkg-message

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|"/proc/|"/compat/linux/proc/|; \
        s|"/proc"|"/compat/linux/proc"|' \
        ${WRKSRC}/src/utils.c
.if ${PORT_OPTIONS:MNLS}
    @${REINPLACE_CMD} -e 's|$$(DATADIRNAME)/locale|share/locale|' \
        ${WRKSRC}/po/Makefile.in.in
.endif

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>