2012-11-10 14:49:51 +01:00
|
|
|
# Created by: janek@gaja.ipan.lublin.pl
|
1999-10-11 01:49:55 +02:00
|
|
|
# $FreeBSD$
|
1995-07-01 11:12:09 +02:00
|
|
|
|
2000-04-14 09:20:58 +02:00
|
|
|
PORTNAME= xspread
|
|
|
|
PORTVERSION= 3.1.1c
|
- 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
|
|
|
PORTREVISION= 2
|
1996-11-18 11:37:03 +01:00
|
|
|
CATEGORIES= math
|
2012-11-10 14:49:51 +01:00
|
|
|
MASTER_SITES= http://archive.debian.org/%SUBDIR%/ \
|
|
|
|
http://mirror.safehostnet.com/debian-archive/%SUBDIR%/ \
|
|
|
|
http://mirrors.xmission.com/debian-archive/%SUBDIR%/ \
|
|
|
|
http://vos-systems.net/ftp/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= debian/dists/potato/main/source/math
|
2001-11-05 12:08:02 +01:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
|
1999-10-11 01:49:55 +02:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-11-10 14:49:51 +01:00
|
|
|
COMMENT= Spreadsheet program for X and terminals
|
|
|
|
|
|
|
|
LICENSE= GPLv2 # (or later)
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= X11 DOCS
|
1999-10-11 01:49:55 +02:00
|
|
|
|
2001-11-05 12:08:02 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}.orig
|
|
|
|
|
1999-10-11 01:49:55 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
MAN1= xspread.1 pxspread.1
|
2012-11-10 14:49:51 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
PLIST_FILES= bin/pxspread bin/xspread
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MX11}
|
The FreeBSD x11 team proudly presents
an zeising, kwm, miwi, bapt, eadler production:
Xorg 7.7
Starring:
xserver 1.12.4 (new xorg only)
Mesa 8.0.4, including libGL, libGLU and dri (new xorg only)
libX11 1.5.0
libxcb 1.9
libdrm 2.4.42 (new xorg only)
freeglut 2.8.1
Also starring:
Updates to drivers and other libraries and utilities
Additional notes:
Change pkgconf to be a build dependency.
Add a new USE_XORG, xcb, to depend on libxcb and update all ports to use
this.
Trim makefile headers.
Take maintanership of x11/xcb-proto, ok'd by ashish.
If you are running WITH_NEW_XORG=, you need to rebuild all installed
drivers, see UPDATING for more information.
Various fixes to make ports compile.
PR: ports/177942
Exp-run by: miwi
Approved by: portmgr (miwi)
Thanks to all who helped testing!
2013-05-25 16:37:02 +02:00
|
|
|
USE_XORG= x11 xau xcb xdmcp xt
|
|
|
|
LIB_DEPENDS+= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs
|
2012-11-10 14:49:51 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= ac_cv_header_X11_X_h=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's|/usr/local/lib/libXt|${LOCALBASE}/lib/libXt|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^void main|int main|' ${WRKSRC}/psc.c
|
1999-10-11 01:49:55 +02:00
|
|
|
|
2001-11-05 12:08:02 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pxspread ${PREFIX}/bin/pxspread
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xspread ${PREFIX}/bin/xspread
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pxspread.man ${MANPREFIX}/man/man1/pxspread.1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/xspread.man ${MANPREFIX}/man/man1/xspread.1
|
2012-11-10 14:49:51 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2001-11-05 12:08:02 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/x/notes ${DOCSDIR}
|
|
|
|
.for dir in doc documents sample_files tests
|
|
|
|
@${TAR} -C ${WRKSRC} --exclude '*.tmp' -cf - ${dir} | \
|
|
|
|
${TAR} -C ${DOCSDIR} --unlink -xf -
|
|
|
|
.endfor
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
1999-10-11 01:49:55 +02:00
|
|
|
.endif
|
1995-07-01 11:12:09 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|