1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/japanese/tcl80/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

77 lines
2.1 KiB
Makefile

# New ports collection makefile for: ja-tcl8.0
# Date created: 23 Jan 1998
# Whom: taguchi@tohoku.iij.ad.jp
#
# $FreeBSD$
#
PORTNAME= tcl
PORTVERSION= 8.0.5
PORTREVISION= 1
CATEGORIES= japanese lang tcl80
MASTER_SITES= ftp://ftp.tcl.tk/pub/tcl/tcl${VERSION:S/./_/}/
DISTNAME= ${PORTNAME}${PORTVERSION}
PATCH_SITES= ftp://ftp.sra.co.jp/pub/lang/tcl/jp/
PATCHFILES= ${PORTNAME}${PORTVERSION}jp1.7.patch.gz
MAINTAINER= taguchi@tohoku.iij.ad.jp
COMMENT= Japanized Tool Command Language, version 8.0
VERSION= ${PORTVERSION:R}
TOPDIR= ${WRKDIR}/${DISTNAME}
WRKSRC= ${TOPDIR}/unix
.if defined(PATCH_DEBUG)
PATCH_DIST_ARGS=-d ${TOPDIR} -E ${PATCH_DIST_STRIP}
.else
PATCH_DIST_ARGS=-d ${TOPDIR} --forward --quiet -E ${PATCH_DIST_STRIP}
.endif
USE_AUTOTOOLS= autoconf:213
CONFIGURE_ARGS= --enable-shared
RANLIB= ranlib
PKGINSTALL= ${PORTSDIR}/lang/tcl82/pkg-install.tclsh
PKGDEINSTALL= ${PORTSDIR}/lang/tcl82/pkg-deinstall.tclsh
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= "Does not compile on sparc64 (needs -fPIC)"
.endif
.if !defined(NOPORTDOCS)
post-patch:
@${CP} ${FILESDIR}/README.FreeBSD.in ${TOPDIR}/README.FreeBSD.JP.in
@${SED} -e 's%AC_OUTPUT(Makefile tclConfig.sh)%AC_OUTPUT(Makefile tclConfig.sh ../README.FreeBSD.JP)%' \
< ${WRKSRC}/configure.in \
> ${WRKSRC}/configure.in.tmp
@${MV} -f ${WRKSRC}/configure.in.tmp ${WRKSRC}/configure.in
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/tcl${VERSION}jp
@(cd ${TOPDIR}; \
${INSTALL_DATA} README changes README.FreeBSD.JP README.JP \
changes.JP \
Incompat80jp ${PREFIX}/share/doc/tcl${VERSION}jp; \
)
.endif
@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
.if ${PORTOBJFORMAT} == "aout"
${LN} -sf libtcl80jp.so.1.5 ${PREFIX}/lib/libtcl80jp.so
${RANLIB} ${PREFIX}/lib/libtcl80jp.a
.endif
.if exists(${PKGINSTALL})
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL}
.endif
@${CAT} ${PKGMESSAGE}
test:
cd ${WRKSRC} && ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} test
install-man:
cd ${WRKSRC} && ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} install-man
.include <bsd.port.post.mk>