blob: f3275ed0d246005177866b0e037a408cf62efc72 (
plain) (
tree)
|
|
# Created by: janek@gaja.ipan.lublin.pl
# $FreeBSD$
PORTNAME= xspread
PORTVERSION= 3.1.1c
PORTREVISION= 4
CATEGORIES= math
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
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
MAINTAINER= ports@FreeBSD.org
COMMENT= Spreadsheet program for X and terminals
LICENSE= GPLv2 # (or later)
OPTIONS_DEFINE= X11 DOCS
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}.orig
GNU_CONFIGURE= yes
PORTDOCS= *
PLIST_FILES= bin/pxspread bin/xspread man/man1/pxspread.1.gz \
man/man1/xspread.1.gz
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MX11}
USE_XORG= x11 xau xcb xdmcp xt
LIB_DEPENDS+= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs
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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pxspread ${STAGEDIR}${PREFIX}/bin/pxspread
${INSTALL_PROGRAM} ${WRKSRC}/xspread ${STAGEDIR}${PREFIX}/bin/xspread
${INSTALL_MAN} ${WRKSRC}/pxspread.man ${STAGEDIR}${MANPREFIX}/man/man1/pxspread.1
${INSTALL_MAN} ${WRKSRC}/xspread.man ${STAGEDIR}${MANPREFIX}/man/man1/xspread.1
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/x/notes ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "doc documents sample_files tests" ${STAGEDIR}${DOCSDIR} "! -name *.tmp")
.include <bsd.port.mk>
|