44 lines
1.6 KiB
Makefile
44 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2008/05/03 13:40:18 jeremy-c-reed Exp $
|
|
#
|
|
|
|
DISTNAME= xspread3.1.1c
|
|
PKGNAME= xspread-3.1.1c
|
|
CATEGORIES= math
|
|
# What is the tucows-bsd URL for this?
|
|
MASTER_SITES= http://public.planetmirror.com/pub/tucows-bsd/files/ \
|
|
ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/
|
|
|
|
MAINTAINER= reed@reedmedia.net
|
|
HOMEPAGE= http://www.chemie.fu-berlin.de/chemnet/use/xspread.html
|
|
COMMENT= X11 spreadsheet based on sc
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_HAS_MANDIR= no
|
|
|
|
#CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include"
|
|
MAKE_ENV+= LOCAL_LDFLAGS="${COMPILER_RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib"
|
|
|
|
PKGMANDIR?= man
|
|
|
|
post-extract:
|
|
${RM} ${WRKSRC}/doc/doc.tmp ${WRKSRC}/sample_files/sample_files.tmp \
|
|
${WRKSRC}/documents/documents.tmp
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pxspread ${PREFIX}/bin/pxspread
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xspread ${PREFIX}/bin/xspread
|
|
${INSTALL_MAN} ${WRKSRC}/pxspread.man ${PREFIX}/${PKGMANDIR}/man1/pxspread.1
|
|
${INSTALL_MAN} ${WRKSRC}/xspread.man ${PREFIX}/${PKGMANDIR}/man1/xspread.1
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xspread
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xspread
|
|
${INSTALL_DATA} ${WRKSRC}/x/notes ${PREFIX}/share/doc/xspread
|
|
${CP} ${WRKSRC}/doc/* ${PREFIX}/share/doc/xspread/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/xspread/examples
|
|
${CP} -R ${WRKSRC}/documents ${PREFIX}/share/xspread/
|
|
${CP} ${WRKSRC}/sample_files/* ${PREFIX}/share/xspread/examples/
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/xspread/
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|