mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
55 lines
1.7 KiB
Makefile
55 lines
1.7 KiB
Makefile
# 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+
|
|
LICENSE_FILE= ${WRKSRC}/GNU_GENERAL
|
|
|
|
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
|
|
|
|
OPTIONS_DEFINE= X11 DOCS
|
|
|
|
X11_USE= XORG=x11,xau,xcb,xdmcp,xt
|
|
X11_LIB_DEPENDS= libpthread-stubs.so:devel/libpthread-stubs
|
|
X11_USES= localbase xorg
|
|
X11_CONFIGURE_ENV_OFF= ac_cv_header_X11_X_h=no
|
|
|
|
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
|
|
|
|
do-install-DOCS-on:
|
|
@${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>
|