1996-12-12 04:46:31 +01:00
|
|
|
# New ports collection makefile for: calctool-2.4pl13
|
|
|
|
# Date created: 2 Dec 1996
|
|
|
|
# Whom: nsayer@quack.kfu.com
|
|
|
|
#
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1996-12-12 04:46:31 +01:00
|
|
|
#
|
2000-03-22 00:57:15 +01:00
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
PORTNAME= calctool
|
2000-04-14 09:20:58 +02:00
|
|
|
PORTVERSION= 2.4.13
|
2006-07-13 00:23:35 +02:00
|
|
|
PORTREVISION= 1
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
2000-08-08 19:16:59 +02:00
|
|
|
MASTER_SITE_SUBDIR= nsayer
|
2006-07-13 00:23:35 +02:00
|
|
|
DISTNAME= calctool-2.4pl13
|
|
|
|
|
|
|
|
MAINTAINER= ssedov@mbsd.msk.ru
|
|
|
|
COMMENT= A multi-GUI (terminal, X) calculator program
|
2000-03-22 00:57:15 +01:00
|
|
|
|
2006-07-13 00:23:35 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
OPTIONS= X11 "Build X11 version of calctool" on \
|
|
|
|
TTY "Build tty version of calctool" on
|
1996-12-12 06:28:54 +01:00
|
|
|
|
|
|
|
MAN1= calctool.1
|
1996-12-12 04:46:31 +01:00
|
|
|
|
2006-07-13 00:23:35 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
USE_XLIB= yes
|
|
|
|
BINARIES+= xcalctool
|
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_TTY)
|
|
|
|
BINARIES+= tty_calctool
|
|
|
|
PLIST_SUB+= TTY=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= TTY="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
FPIC= -fPIC
|
|
|
|
.else
|
|
|
|
FPIC= -fpic
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s#%%FPIC%%#${FPIC}#g" \
|
|
|
|
-e "s#%%X11BASE%%#${X11BASE}#g" \
|
|
|
|
-e "s#%%BINARIES%%#${BINARIES}#g" \
|
|
|
|
-e "s#%%DATADIR%%#${DATADIR}#g" \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/libcalctool.so.1 ${PREFIX}/lib
|
|
|
|
@(cd ${PREFIX}/lib; ${LN} -sf libcalctool.so.1 libcalctool.so)
|
|
|
|
.for BIN in ${BINARIES}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${BIN} ${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/calctool.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/calctool.help ${DATADIR}
|
2001-03-09 19:25:08 +01:00
|
|
|
|
2006-07-13 00:23:35 +02:00
|
|
|
.include <bsd.port.post.mk>
|