aboutsummaryrefslogtreecommitdiffstats
path: root/x11/deskmenu/Makefile
blob: f84d22e4d4f7cc23f426329566af3c2ae940277d (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
# Created by: Matt Peterson <matt@peterson.org>
# $FreeBSD$

PORTNAME=   deskmenu
PORTVERSION=    1.4.5
CATEGORIES= x11
MASTER_SITES=   DEBIAN/pool/main/d/${PORTNAME} GENTOO
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= matt@peterson.org
COMMENT=    X11 application launcher

LICENSE=    GPLv2

USES=       pkgconfig
GNU_CONFIGURE=  yes
USE_GNOME=  gtk20

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

PLIST_FILES=    bin/deskmenu man/man1/deskmenu.1.gz \
        @sample\ etc/deskmenurc.sample
PORTDOCS=   AUTHORS ChangeLog

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's,-O2 -g ,,' ${WRKSRC}/src/Makefile.in
    @${REINPLACE_CMD} -e 's,/etc/deskmenurc,${ETCDIR}rc,' \
        ${WRKSRC}/example_rc ${WRKSRC}/src/deskmenu.c
    @${LN} -sf debian/changelog ${WRKSRC}/ChangeLog

post-install:
    ${INSTALL_DATA} ${WRKSRC}/example_rc ${STAGEDIR}${ETCDIR}rc.sample

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

.include <bsd.port.mk>