aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm/rox-filer/Makefile
blob: 9e8c70f2b36a71ecc1172b0c5f8889a71ef33bde (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
# $FreeBSD$

PORTNAME=   rox-filer
PORTVERSION=    2.11
PORTREVISION=   5
CATEGORIES= x11-fm gnome
MASTER_SITES=   SF/rox/rox/${PORTVERSION}
DISTNAME=   rox-filer-${PORTVERSION}

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Simple and easy to use graphical file manager

PLIST_SUB+= LOCALBASE=${LOCALBASE}

USE_XORG=   x11 sm xaw xproto
USE_GNOME=  atk glib20 gtk20 libxml2 pango
USES=       gmake pkgconfig shared-mime-info tar:bzip2

GNU_CONFIGURE=      yes
CONFIGURE_ENV=      APP_DIR=${WRKSRC}/ROX-Filer
CONFIGURE_ARGS=     --enable-rox --with-platform=FreeBSD
CONFIGURE_WRKSRC=   ${WRKSRC}/ROX-Filer/src
BUILD_WRKSRC=       ${CONFIGURE_WRKSRC}
ALL_TARGET=
LIBS+=          -lm

post-configure:
    @${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
                ${CONFIGURE_WRKSRC}/configure \
                ${CONFIGURE_WRKSRC}/choices.c \
                ${CONFIGURE_WRKSRC}/support.c \
                ${CONFIGURE_WRKSRC}/type.c \
                ${CONFIGURE_WRKSRC}/usericons.c \
                ${CONFIGURE_WRKSRC}/xdgmime.c
    @${TOUCH} ${CONFIGURE_WRKSRC}/config.status

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/apps/ROX-Filer
    cd ${WRKSRC}/ROX-Filer && ${CP} -r .DirIcon AppInfo.xml AppRun Help Messages Options.xml ROX ROX-Filer Templates.ui images style.css subclasses ${STAGEDIR}${PREFIX}/apps/ROX-Filer
    cd ${WRKSRC} && ${CP} -r Choices ${STAGEDIR}${PREFIX}/share/
    ${CAT} ${FILESDIR}/rox | ${SED} -e "s|%%PREFIX%%|${PREFIX}|" > ${STAGEDIR}${PREFIX}/bin/rox
    ${CHMOD} 755 ${STAGEDIR}${PREFIX}/bin/rox
    ${INSTALL_MAN} ${WRKSRC}/rox.1 ${STAGEDIR}${PREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
    ${INSTALL_DATA} ${WRKSRC}/rox.xml ${STAGEDIR}${PREFIX}/share/mime/packages

.include <bsd.port.mk>