File:  [cvs.NetBSD.org] / pkgsrc / lang / spl / Makefile
Revision 1.18: download - view: text, annotated - select for diffs
Sat Jan 26 21:38:06 2013 UTC (11 years, 10 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1, HEAD
Revbump after graphics/jpeg and textproc/icu

# $NetBSD: Makefile,v 1.18 2013/01/26 21:38:06 adam Exp $
#

DISTNAME=	spl-1.0pre3
PKGREVISION=	5
CATEGORIES=	lang
MASTER_SITES=	http://www.clifford.at/spl/releases/ \
		http://www.clifford.at/spl/releases/OLD/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.clifford.at/spl/
COMMENT=	The SPL Programming Language
LICENSE=	gnu-gpl-v2

USE_LANGUAGES=	c c++
USE_TOOLS+=	bash gmake gawk pax

SUBST_CLASSES+=		prefix
SUBST_STAGE.prefix=	pre-patch
SUBST_FILES.prefix=	GNUmakefile
SUBST_SED.prefix+=	-e 's,^  prefix.*,  prefix = ${PREFIX},g'
SUBST_SED.prefix+=	-e 's,^ENABLE_OPENGL_SUPPORT.*,ENABLE_OPENGL_SUPPORT=0,g'
SUBST_SED.prefix+=	-e 's,^  cgibin_libdir.*,  cgibin_libdir = ${PREFIX}/libexec/cgi-bin,g'

#subst.mk does not correctly detect GNUmakefile as text file
_SUBST_IS_TEXT_FILE=true

MAKE_ENV+=	ENABLE_OPENGL_SUPPORT=0
MAKE_FILE=	GNUmakefile
BUILD_TARGET=	all spldoc
EGDIR=		${PREFIX}/share/examples/spl
DOCDIR=		${PREFIX}/share/doc/spl

.include "options.mk"

INSTALLATION_DIRS+=	libexec/cgi-bin/webspl_cache

post-install:
	${CHMOD} a+rwx ${DESTDIR}${PREFIX}/libexec/cgi-bin/webspl_cache
	${LN} -sf ${PREFIX}/lib/spl_modules ${DESTDIR}${PREFIX}/libexec/cgi-bin/spl_modules
	${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
	cd ${WRKSRC} && pax -rw -p am README* manual.tex spldoc webspl_demo webspltut qtdemo ${DESTDIR}${DOCDIR}
	${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
	cd ${WRKSRC}/examples && ${INSTALL_DATA} example* ${DESTDIR}${EGDIR}

.include "../../devel/ncurses/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>