aboutsummaryrefslogtreecommitdiffstats
path: root/net/gsambad/Makefile
blob: 3090c8d0364714fc0607ffcc497837c15347b6e5 (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
# New ports collection makefile for:    gsambad
# Date created:     16 September 2007
# Whom:         Martin Wilke <miwi@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   gsambad
PORTVERSION=    0.1.9
CATEGORIES= net
MASTER_SITES=   http://mange.dynalias.org/linux/${PORTNAME}/

MAINTAINER= beech@FreeBSD.org
COMMENT=    Gtk2 Frontend for samba daemon

RUN_DEPENDS=    ${LOCALBASE}/bin/smbclient:${PORTSDIR}/net/samba3

USE_GMAKE=  yes
USE_AUTOTOOLS=  autoconf:261
GNU_CONFIGURE=  yes
USE_GNOME=  gtk20 pkgconfig

PORTDOCS=   AUTHORS README ChangeLog COPYING

post-extract:
    @${CP} ${FILESDIR}/crypt.h ${WRKSRC}/src/

post-configure:
    @${REINPLACE_CMD} -e "s:\<crypt.h\>:\"crypt.h\":" ${WRKSRC}/src/functions.c

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
    @${INSTALL} -d ${PREFIX}/share/applications
    @${INSTALL_DATA} ${WRKSRC}/desktop/net-gsambad.desktop \
        ${PREFIX}/share/applications
    @${INSTALL} -d ${DATADIR}
    @${INSTALL_DATA} ${WRKSRC}/scripts/example.bat ${DATADIR}

.include <bsd.port.mk>