aboutsummaryrefslogtreecommitdiffstats
path: root/x11/libfm/Makefile
blob: 094bf439e764b5de6a1aeea684dafd31a573545c (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
# Created by: Kris Moore <kmoore@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libfm
PORTVERSION=    1.2.2.1
CATEGORIES= x11
MASTER_SITES=   SF/pcmanfm/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/libfm%20%28required%20by%20PCManFM%29/

MAINTAINER= horia@racoviceanu.com
COMMENT=    LibFM backend library to PCManFM

LICENSE=    GPLv2

BUILD_DEPENDS=  p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \
        valac:${PORTSDIR}/lang/vala
LIB_DEPENDS=    libmenu-cache.so:${PORTSDIR}/x11/menu-cache \
        libexif.so:${PORTSDIR}/graphics/libexif

USES=       desktop-file-utils fam gmake libtool pathfix pkgconfig \
        shared-mime-info tar:xz
USE_GNOME=  gtk20
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --sysconfdir=${LOCALBASE}/etc
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

PORTDOCS=   AUTHORS NEWS README

OPTIONS_DEFINE= DOCS NLS STATIC
OPTIONS_SUB=    yes

NLS_USES=   gettext
NLS_CONFIGURE_ENABLE=       nls
STATIC_CONFIGURE_ENABLE=    static

PLIST_SUB+= MAJORVER=1.0
PLIST_SUB+= VER=4

post-patch:
    @${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||' \
        ${WRKSRC}/src/Makefile.in

post-install:
    ${MV} ${STAGEDIR}${PREFIX}/etc/xdg/libfm/libfm.conf \
        ${STAGEDIR}${PREFIX}/etc/xdg/libfm/libfm.conf.sample
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>