aboutsummaryrefslogtreecommitdiffstats
path: root/x11/gmrun/Makefile
blob: a8187b770e4156a2188347240fd8465d4a909ab0 (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
# Created by: Adam Weinberger <adam@vectors.cx>
# $FreeBSD$

PORTNAME=   gmrun
PORTVERSION=    0.9.2
PORTREVISION=   10
CATEGORIES= x11
MASTER_SITES=   SF

MAINTAINER= garga@FreeBSD.org
COMMENT=    A customizable program to run programs, with tab-completion

LIB_DEPENDS=    popt:${PORTSDIR}/devel/popt

OPTIONS_DEFINE= DOCS

USES=       gmake pkgconfig
USE_GNOME=  gtk20
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --disable-stlport

PORTDOCS=   README
PLIST_FILES=    bin/gmrun %%DATADIR%%/gmrunrc
PLIST_DIRS= %%DATADIR%%

NO_STAGE=   yes
.include <bsd.port.pre.mk>

post-patch:
.if ( ${OSVERSION} >= 800501 && ${OSVERSION} < 900000 ) || ( ${OSVERSION} >= 900006 )
    @${REINPLACE_CMD} -e '/my_alphasort/s#const void\*#const struct dirent**#g' \
        ${WRKSRC}/src/gtkcompletionline.cc
.else
    @${REINPLACE_CMD} -e '/select_executables_only(const /s#const ##' \
        ${WRKSRC}/src/gtkcompletionline.cc
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.post.mk>