summaryrefslogtreecommitdiff
path: root/sysutils/modules/Makefile
blob: e7c8ea1f27cdb18f55e14c8618e0cb0aaa3af36f (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: Hokan
# $FreeBSD$

PORTNAME=	modules
PORTVERSION=	3.1.6
CATEGORIES=	sysutils tcl
MASTER_SITES=	SF/${PORTNAME}/Modules/${PORTNAME}-${PORTVERSION}

MAINTAINER=	hokan@me.umn.edu
COMMENT=	Dynamic modification of a user's environment

LIB_DEPENDS=	tcl${TCL_VER}:${PORTSDIR}/lang/tcl${TCL_VER}

PLIST_SUB=	MODULES_VERSION=${PORTVERSION}

BINDIR=		${PREFIX}/Modules

TCL_DVER?=	8.4
TCL_VER=	${TCL_DVER:S/.//}
HAS_CONFIGURE=	yes

CONFIGURE_ARGS=	--prefix=${PREFIX}/Modules/@VERSION@ \
		--without-x \
		--with-version-path=${PREFIX}/Modules/versions \
		--mandir=${MANPREFIX}/man \
		--with-tcl-version=${TCL_VER} \
		--with-tcl-include=${LOCALBASE}/include/tcl${TCL_DVER} \
		--with-tcl-libraries=${LOCALBASE}/lib/

MAN1=		module.1
MAN5=		modulefile.5

NO_STAGE=	yes
post-extract:
		${MV} ${WRKSRC}/doc/modulefile.4.in ${WRKSRC}/doc/modulefile.5.in

pre-install:
		${MKDIR} ${PREFIX}/Modules

.include <bsd.port.mk>