diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2007-02-18 20:21:42 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2007-02-18 20:21:42 +0000 |
commit | 2b7c320d681b2238d55734e7efadd29424f271ca (patch) | |
tree | 525405ea8e7f938df75e67ccdd77e05b7b95fdef /devel/sourcenav | |
parent | 15dcfd44af53fc0b17925bc5abba062aa0f441fc (diff) | |
download | ports-2b7c320d681b2238d55734e7efadd29424f271ca.tar.gz ports-2b7c320d681b2238d55734e7efadd29424f271ca.zip |
- Install symlimk under "${PREFIX}/bin".
- Allos overriding PREFIX.
- Add pkg-message to inform user where the program is installed.
PR: ports/82759
Submitted by: Greg Lehey <grog@lemis.com>
Notes
Notes:
svn path=/head/; revision=185472
Diffstat (limited to 'devel/sourcenav')
-rw-r--r-- | devel/sourcenav/Makefile | 21 | ||||
-rw-r--r-- | devel/sourcenav/files/pkg-message.in | 12 | ||||
-rw-r--r-- | devel/sourcenav/pkg-plist | 11 |
3 files changed, 34 insertions, 10 deletions
diff --git a/devel/sourcenav/Makefile b/devel/sourcenav/Makefile index 5d77cb0dbe22..065f71544c8e 100644 --- a/devel/sourcenav/Makefile +++ b/devel/sourcenav/Makefile @@ -7,10 +7,9 @@ PORTNAME= sourcenav PORTVERSION= 5.1.4 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= devel -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Source code analysis tool @@ -18,17 +17,29 @@ COMMENT= Source code analysis tool LIB_DEPENDS= tcl83.1:${PORTSDIR}/lang/tcl83 \ tk83.1:${PORTSDIR}/x11-toolkits/tk83 -PREFIX?= ${LOCALBASE}/sourcenav +.if defined(PREFIX) +PREFIX:= ${PREFIX}/${PORTNAME} +.else +PREFIX?= ${LOCALBASE}/${PORTNAME} +.endif USE_BISON= yes +USE_GMAKE= yes USE_XLIB= yes GNU_CONFIGURE= yes -USE_GMAKE= yes NO_MTREE= yes +SUB_FILES= pkg-message + .include <bsd.port.pre.mk> .if ${OSVERSION} >= 600000 EXTRA_PATCHES+= ${FILESDIR}/FreeBSD6-cdefs.h .endif +post-install: + @${LN} -s ${PREFIX}/bin/snavigator ${PREFIX}/../bin + @${ECHO_CMD} + @${CAT} ${PKGMESSAGE} + @${ECHO_CMD} + .include <bsd.port.post.mk> diff --git a/devel/sourcenav/files/pkg-message.in b/devel/sourcenav/files/pkg-message.in new file mode 100644 index 000000000000..2acbd75bbdf3 --- /dev/null +++ b/devel/sourcenav/files/pkg-message.in @@ -0,0 +1,12 @@ +============================================================================== + +sourcenav has been installed. + +The program includes libraries that also come in other ports, so it has been +installed under "%%PREFIX%%" to avoid conflicts. + +A symlink has been created in "bin" named "snavigator". + +Documentation can be found under "%%PREFIX%%". + +============================================================================== diff --git a/devel/sourcenav/pkg-plist b/devel/sourcenav/pkg-plist index 6621c7cf74b3..f80d53250c91 100644 --- a/devel/sourcenav/pkg-plist +++ b/devel/sourcenav/pkg-plist @@ -1,3 +1,4 @@ +../bin/snavigator COPYING INSTALL.TXT README.TXT @@ -2537,11 +2538,11 @@ share/tk8.3/xmfbox.tcl @dirrm share/sdk/parsers/examples @dirrm share/sdk/parsers @dirrm share/sdk -@dirrm share/sourcenav/gui -@dirrm share/sourcenav/packages/eventutils -@dirrm share/sourcenav/packages/snscenario -@dirrm share/sourcenav/packages -@dirrm share/sourcenav +@dirrm %%DATADIR%%/gui +@dirrm %%DATADIR%%/packages/eventutils +@dirrm %%DATADIR%%/packages/snscenario +@dirrm %%DATADIR%%/packages +@dirrm %%DATADIR%% @dirrm share/tcl8.3/encoding @dirrm share/tcl8.3/http1.0 @dirrm share/tcl8.3/http2.3 |