aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm/dfm/Makefile
blob: 7c314a110159e13f273b3ce49d5c993254aa9c3c (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
# Created by: Andrey Zakhvatov
# $FreeBSD$

PORTNAME=   dfm
PORTVERSION=    0.99.9
PORTREVISION=   8
CATEGORIES= x11-fm
MASTER_SITES=   http://www.kaisersite.de/dfm/

MAINTAINER= ports@FreeBSD.org
COMMENT=    OS/2 - like Desktop-File-Manager for X Window System

WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_XORG=   xpm
USE_GNOME=  imlib
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+=  -I${LOCALBASE}/include
CONFIGURE_ARGS= --enable-imlib-icons

MAN1=       dfm.1x

MYPORTDOCS= ANNOUNCE BUGS COPYRIGHT CREDITS ChangeLog DOWNLOAD HELP.ERROR \
        NO_WARRANTY README START TESTED TODO

NO_STAGE=   yes
pre-patch:
    @${REINPLACE_CMD} -e \
        's|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure

post-install:
    @${MKDIR} ${PREFIX}/share/examples/dfm
    ${INSTALL_DATA} ${WRKSRC}/dfmext-samples/dfmext_local ${PREFIX}/share/examples/dfm/dfmext.sample.local
    ${INSTALL_DATA} ${WRKSRC}/dfmext-samples/dfmext_normal ${PREFIX}/share/examples/dfm/dfmext.sample.normal
    ${INSTALL_DATA} ${WRKSRC}/dfmext-samples/dfmext_user ${PREFIX}/share/examples/dfm/dfmext.sample.user
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in ${MYPORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>