- use configures --includedir

- TCL_INCLUDE_SPEC is now set in tclConfig.sh
- cleanup makefile
This commit is contained in:
Dirk Meyer 2003-05-13 19:13:01 +00:00
parent dd59f8208d
commit 00cccc4f8b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80933
2 changed files with 10 additions and 9 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= tcl
PORTVERSION= 8.4.2
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@ -21,7 +22,7 @@ PATCH_DIST_ARGS= -d ${WRKDIR}/${DISTNAME} -E ${PATCH_DIST_STRIP}
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}/unix
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared
CONFIGURE_ARGS= --enable-shared --includedir=${LOCALBASE}/include/tcl${TCL_VER}
CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
MAKE_ENV= SHORT_TCL_VER=84
PKGINSTALL= ${PKGDIR}/pkg-install.tclsh
@ -29,9 +30,13 @@ PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.tclsh
TCL_VER= 8.4
NOPRECIOUSMAKEVARS= Too many _MLINKS for README.html
USE_REINPLACE= YES
PLIST_SUB= TCL_VER=${TCL_VER} SHORT_TCL_VER=84
.if defined(TCL_WITH_THREADS) || defined(WITH_THREADS)
CONFIGURE_ARGS+= --enable-threads
PKGNAMESUFFIX?= -threads
.endif
MAN1= tclsh.1
MAN3= Access.3 AddErrInfo.3 Alloc.3 AllowExc.3 AppInit.3 AssocData.3 \
@ -583,11 +588,9 @@ MLINKS= Access.3 Tcl_Access.3 \
pkgMkIndex.n pkg_mkIndex.n \
safe.n SafeBase.n
.if defined(TCL_WITH_THREADS) || defined(WITH_THREADS)
CONFIGURE_ARGS+= --enable-threads
PKGNAMESUFFIX?= -threads
USE_REINPLACE= YES
.include <bsd.port.pre.mk>
.if defined(TCL_WITH_THREADS) || defined(WITH_THREADS)
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
@ -598,8 +601,6 @@ post-configure:
${REINPLACE_CMD} -e 's=${WRKDIRPREFIX}${PORTSDIR}=$${WRKDIRPREFIX}${PORTSDIR}=' \
${WRKSRC}/tclConfig.sh
.include <bsd.port.pre.mk>
post-install:
.if exists(${PKGINSTALL})
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL}

View file

@ -5,7 +5,7 @@
# Directory in which to install the include file tcl.h:
-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)
+INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/tcl$(VERSION)
+INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)
+GENERIC_INCLUDE_INSTALL_DIR = $(INCLUDE_INSTALL_DIR)/generic
+UNIX_INCLUDE_INSTALL_DIR = $(INCLUDE_INSTALL_DIR)/unix