blob: 453b5c657a22b4ca858447ee2d5be6da833e35c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# New ports collection makefile for: scriba
# Date created: 07 January 2001
# Whom: George Reid <greid@ukug.uk.freebsd.org>
#
# $FreeBSD$
#
PORTNAME= scriba
PORTVERSION= 10b21
PORTREVUSION= 1
CATEGORIES= lang
MASTER_SITES= http://www.scriptbasic.com/download/
DISTNAME= ${PORTNAME}-v${PORTVERSION}
# the filename of the current version has been re-styled as follows;
# however, as of November 2003, the patches do not apply cleanly, so
# this port needs further work.
#PORTVERSION= 1.0b30
#DISTNAME= ${PORTNAME}-v${PORTVERSION}-source
MAINTAINER= ports@FreeBSD.org
COMMENT= A scripting implementation of the BASIC language
PRFXFILES= variations/standard/basiccmd.c \
variations/standalone/basicc.c \
configurer.c scriba.c scriba.conf.unix.lsp \
testconf.c
WRKSRC= ${WRKDIR}
USE_PERL5= yes
CFLAGS+= -fPIC
MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= "Install fails on sparc64"
.endif
post-patch:
.for P in ${PRFXFILES}
@(cd ${WRKSRC} && ${SED} -e 's,%%PREFIX%%,${PREFIX},g' $P > foo && \
${MV} foo $P)
.endfor
do-install:
${MKDIR} ${PREFIX}/etc/scriba
${MKDIR} ${PREFIX}/include/scriba
${MKDIR} ${PREFIX}/lib/scriba
${CHMOD} 1666 ${PREFIX}/lib/scriba
${INSTALL_PROGRAM} ${WRKSRC}/scriba ${PREFIX}/bin
.for M in cgi hash re
${INSTALL_PROGRAM} ${WRKSRC}/$M.so ${PREFIX}/lib/scriba
.endfor
.for I in bdb cgi error gd hash heb md5 mysql re test time trial zlib ../heber
${INSTALL_DATA} ${WRKSRC}/include/$I.bas ${PREFIX}/include/scriba
.endfor
${INSTALL_DATA} ${WRKSRC}/basicc.a ${PREFIX}/lib/scriba
${WRKSRC}/cftc ${WRKSRC}/scriba.conf.unix.lsp \
${PREFIX}/etc/scriba/basic.conf
.include <bsd.port.post.mk>
|