1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/japanese/tk42/Makefile
1998-09-28 09:59:02 +00:00

72 lines
2.0 KiB
Makefile

# New ports collection makefile for: tk4.2p2JP
# Version required: 4.2p2jp
# Date created:
# Whom: taguchi@tohoku.iij.ad.jp
#
# $Id: Makefile,v 1.6 1998/09/27 08:24:35 kuriyama Exp $
#
DISTNAME= tk4.2p2
PKGNAME= ja-tk-4.2
CATEGORIES= japanese x11-toolkits
MASTER_SITES= ftp://ftp.scriptics.com/pub/tcl/tcl7_6/
PATCH_SITES= ftp://ftp.sra.co.jp/pub/lang/tcl/jp/
PATCHFILES= tk4.2jp-patch.gz
MAINTAINER= taguchi@tohoku.iij.ad.jp
LIB_DEPENDS= tcl76jp.1:${PORTSDIR}/japanese/tcl76
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
USE_AUTOCONF= yes
USE_XLIB= yes
CONFIGURE_ARGS= --enable-shared
CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
.if defined(PATCH_DEBUG)
PATCH_DIST_ARGS= -d ${WRKDIR}/${DISTNAME} -E ${PATCH_DIST_STRIP}
PATCH_ARGS= -d ${WRKDIR}/${DISTNAME} -E ${PATCH_STRIP}
.else
PATCH_DIST_ARGS= -d ${WRKDIR}/${DISTNAME} --forward --quiet -E ${PATCH_DIST_STRIP}
PATCH_ARGS= -d ${WRKDIR}/${DISTNAME} --forward --quiet -E ${PATCH_STRIP}
.endif
VERSION= 4.2jp
post-extract:
@${MV} ${WRKDIR}/tk4.2 ${WRKDIR}/${DISTNAME}
post-configure:
@${ECHO} "We will NOT only make shared library, but also static one."
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}
pre-build:
cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} VERSION=${VERSION} && rm -f *.o
pre-install:
${MKDIR} ${PREFIX}/lib/tk${VERSION}
post-install:
cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} VERSION=${VERSION} install
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
if [ "${PORTOBJFORMAT}" = "aout" ]; then \
${LN} -sf libtk42jp.so.1.0 ${PREFIX}/lib/libtk42jp.so; \
fi
@echo "**********"
@echo "IMPORTANT:"
@echo "**********"
@echo "We've installed:"
@echo "tkConfig.sh in $(PREFIX)/lib/tk$(VERSION)/tkConfig.sh"
@echo "tk.h in $(PREFIX)/include/tk$(VERSION)/tk.h"
@echo "These are NOT the default place, but good place to avoid"
@echo "conflicting with another version of Tcl/Tks."
test:
cd ${WRKSRC}; ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} test
install-man:
cd ${WRKSRC} && ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} install-man
.include <bsd.port.mk>