2013-09-20 22:55:04 +02:00
|
|
|
# Created by: nsayer@quack.kfu.com
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
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
|
2008-06-14 16:14:58 +02:00
|
|
|
PORTREVISION= 5
|
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
|
|
|
|
|
2011-10-24 05:33:20 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-07-13 22:21:04 +02:00
|
|
|
COMMENT= A multi-GUI (terminal, X, XView) calculator program
|
2000-03-22 00:57:15 +01:00
|
|
|
|
2006-07-13 00:23:35 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
OPTIONS_DEFINE= X11 TTY XVIEW
|
|
|
|
OPTIONS_DEFAULT= X11 TTY
|
|
|
|
X11_DESC= Build X11 version of calctool
|
|
|
|
TTY_DESC= Build tty version of calctool
|
|
|
|
XVIEW_DESC= Build tty version of calctool
|
1996-12-12 06:28:54 +01:00
|
|
|
|
|
|
|
MAN1= calctool.1
|
1996-12-12 04:46:31 +01:00
|
|
|
|
2013-09-20 22:55:04 +02:00
|
|
|
NO_STAGE= yes
|
2012-06-29 14:42:04 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-07-13 00:23:35 +02:00
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
2006-07-13 00:23:35 +02:00
|
|
|
BINARIES+= xcalctool
|
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MTTY}
|
2006-07-13 00:23:35 +02:00
|
|
|
BINARIES+= tty_calctool
|
|
|
|
PLIST_SUB+= TTY=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= TTY="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MXVIEW}
|
2006-07-13 22:21:04 +02:00
|
|
|
BINARIES+= xv_calctool
|
|
|
|
LIB_DEPENDS+= xview.3:${PORTSDIR}/x11-toolkits/xview
|
|
|
|
PLIST_SUB+= XVIEW=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= XVIEW="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-07-13 00:23:35 +02:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
FPIC= -fPIC
|
|
|
|
.else
|
|
|
|
FPIC= -fpic
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s#%%FPIC%%#${FPIC}#g" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
-e "s#%%LOCALBASE%%#${LOCALBASE}#g" \
|
2006-07-13 00:23:35 +02:00
|
|
|
-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
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.include <bsd.port.mk>
|