aboutsummaryrefslogtreecommitdiffstats
path: root/devel/sourcenav/Makefile
blob: 9e8a349163103545bc630b3974597e2fbe3860dc (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
# Created by: Donald Burr <dburr@FreeBSD.org>
# $FreeBSD$

PORTNAME=   sourcenav
PORTVERSION=    4.4
PORTEPOCH=  1
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_BERLIOS}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   sourcenavigator-NG${PORTVERSION}

MAINTAINER= gahr@FreeBSD.org
COMMENT=    Source code analysis tool

USE_BZIP2=  yes
USE_XORG=   x11

HAS_CONFIGURE=  yes
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--prefix=${PREFIX}/sourcenav

NO_STAGE=   yes
post-patch:
    ${REINPLACE_CMD} -e 's|@XINCLUDES@|-I${LOCALBASE}/include|; \
        s|@XLIBSW@|-L${LOCALBASE}/lib -lX11|' ${WRKSRC}/tk/unix/Makefile.in

post-install:
    ${LN} -s ${PREFIX}/sourcenav/bin/snavigator ${PREFIX}/bin/snavigator

.include <bsd.port.mk>