View | Details | Raw Unified | Return to bug 193040
Collapse All | Expand All

(-)lang/qscheme/Makefile (-19 / +25 lines)
Lines 3-25 Link Here
3
3
4
PORTNAME=	qscheme
4
PORTNAME=	qscheme
5
PORTVERSION=	0.5.1
5
PORTVERSION=	0.5.1
6
PORTREVISION=	6
6
PORTREVISION=	8
7
CATEGORIES=	lang scheme
7
CATEGORIES=	lang scheme
8
MASTER_SITES=	http://www.sof.ch/dan/qscheme/files/
8
MASTER_SITES=	http://www.sof.ch/dan/qscheme/files/
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Small and fast Scheme interpreter
11
COMMENT=	Small and fast Scheme interpreter
12
12
13
BUILD_DEPENDS=	${LOCALBASE}/lib/libavcall.a:${PORTSDIR}/devel/ffcall\
13
LICENSE=	GPLv2
14
15
BUILD_DEPENDS=	${LOCALBASE}/lib/libavcall.a:${PORTSDIR}/devel/ffcall \
14
		${LOCALBASE}/lib/libpcre.a:${PORTSDIR}/devel/pcre \
16
		${LOCALBASE}/lib/libpcre.a:${PORTSDIR}/devel/pcre \
15
		${LOCALBASE}/lib/libgmp.a:${PORTSDIR}/math/gmp
17
		${LOCALBASE}/lib/libgmp.a:${PORTSDIR}/math/gmp
16
LIB_DEPENDS=	libgetline.so:${PORTSDIR}/devel/libgetline
18
LIB_DEPENDS=	libgetline.so:${PORTSDIR}/devel/libgetline
17
19
18
USES=		gmake perl5
20
USES=		gmake perl5
19
USE_PERL5=	build
21
USE_PERL5=	build
22
USE_GCC=	any
20
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
21
PLIST_SUB+=	PORTVERSION="${PORTVERSION}"
22
23
CONFIGURE_ARGS=	--with-pcre-dir=${LOCALBASE}/lib \
24
CONFIGURE_ARGS=	--with-pcre-dir=${LOCALBASE}/lib \
24
		--with-pcre-inc=${LOCALBASE}/include \
25
		--with-pcre-inc=${LOCALBASE}/include \
25
		--with-avcall-dir=${LOCALBASE}/lib \
26
		--with-avcall-dir=${LOCALBASE}/lib \
Lines 27-46 Link Here
27
		--with-gmp-dir=${LOCALBASE}/lib \
28
		--with-gmp-dir=${LOCALBASE}/lib \
28
		--with-gmp-inc=${LOCALBASE}/include
29
		--with-gmp-inc=${LOCALBASE}/include
29
30
30
NO_STAGE=	yes
31
CFLAGS+=	-I${LOCALBASE}/include
32
LDFLAGS+=	-L${LOCALBASE}/lib -lgetline
33
34
PLIST_SUB=	VERSION="${PORTVERSION}"
35
36
# because it uses static pcre lib, which is compiled without -fPIC.
37
# pcre problem likely.
38
BROKEN_amd64=		Does not build on ${ARCH}
39
BROKEN_sparc64=		Does not build on ${ARCH}
40
41
OPTIONS_DEFINE=	DOCS
42
31
post-patch:
43
post-patch:
32
	${REINPLACE_CMD} \
44
	@${REINPLACE_CMD} -e \
33
		-e "s,^LIBS = @LIBS@,& ${PTHREAD_LIBS} -L${LOCALBASE}/lib -lgetline," \
45
		's|-lpthread|-pthread| ; \
34
		-e "s,^CFLAGS = @CFLAGS@,& ${PTHREAD_CFLAGS}," \
46
		 /SCM_DEFAULT_LIB_PATH/s|$$datadir|$$prefix/lib|' \
35
		${WRKSRC}/Makefile.in
47
		${WRKSRC}/configure
36
	${REINPLACE_CMD} \
48
37
		-e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
49
post-install:
38
50
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/qscheme/*/*.so
39
.include <bsd.port.pre.mk>
40
41
.if ${ARCH} == "ia64" || ${ARCH} == "amd64" || ${ARCH} == "sparc64"
42
# because it uses static pcre lib, which is compiled without -fPIC. pcre problem likely.
43
BROKEN=		Does not build on amd64, ia64, or sparc64
44
.endif
45
51
46
.include <bsd.port.post.mk>
52
.include <bsd.port.mk>
(-)lang/qscheme/files/patch-Makefile.in (-1 / +15 lines)
Lines 1-6 Link Here
1
--- Makefile.in.orig	2000-06-23 02:10:21.000000000 +0300
1
--- Makefile.in.orig	2000-06-23 02:10:21.000000000 +0300
2
+++ Makefile.in	2009-03-03 18:30:51.000000000 +0200
2
+++ Makefile.in	2009-03-03 18:30:51.000000000 +0200
3
@@ -111,7 +111,7 @@
3
@@ -111,11 +111,11 @@
4
 EXTRA_DIST = mkoptable mkwhatis $(modsrc) $(scmsrc) CHANGES LICENCE_EXCEPTION
4
 EXTRA_DIST = mkoptable mkwhatis $(modsrc) $(scmsrc) CHANGES LICENCE_EXCEPTION
5
 
5
 
6
 # other directories
6
 # other directories
Lines 9-14 Link Here
9
 
9
 
10
 noinst_LIBRARIES = libqs.a
10
 noinst_LIBRARIES = libqs.a
11
 
11
 
12
-shared_dir = $(prefix)/share/qscheme/$(VERSION)
13
+shared_dir = $(prefix)/lib/qscheme/$(VERSION)
14
 
15
 scmobjdir = $(shared_dir)
16
 scmobj_DATA = $(modobj) $(scmsrc)
12
@@ -578,12 +578,12 @@
17
@@ -578,12 +578,12 @@
13
 	$(COMPILE) -o $@ -shared -fPIC -I$(incpcre) $(srcdir)/regex.c $(PCRE_LIB)
18
 	$(COMPILE) -o $@ -shared -fPIC -I$(incpcre) $(srcdir)/regex.c $(PCRE_LIB)
14
 
19
 
Lines 27-29 Link Here
27
 
32
 
28
 # force sproto.h to be up to date. Otherwise compilation of
33
 # force sproto.h to be up to date. Otherwise compilation of
29
 # distribution may fail, because sproto.h can trigger the cfunction
34
 # distribution may fail, because sproto.h can trigger the cfunction
35
@@ -594,7 +594,7 @@
36
 
37
 # force the x bit on the shared libraries
38
 install-data-local:
39
-	chmod +x $(shared_dir)/*.so
40
+	chmod +x $(DESTDIR)$(shared_dir)/*.so
41
 
42
 whatis: whatis.qs
43
 
(-)lang/qscheme/files/patch-doc__Makefile.in (+11 lines)
Line 0 Link Here
1
--- doc/Makefile.in.orig
2
+++ doc/Makefile.in
3
@@ -71,7 +71,7 @@
4
 #
5
 #
6
 #
7
-docdir=$(DESTDIR)$(pkgdatadir)/$(VERSION)/doc
8
+docdir=$(DESTDIR)$(datadir)/doc/@PACKAGE@
9
 
10
 HTMLDIR=$(srcdir)/html
11
 
(-)lang/qscheme/pkg-descr (-4 / +5 lines)
Lines 1-8 Link Here
1
QScheme is a fast and small implementation of Scheme written in C. QScheme is
1
QScheme is a fast and small implementation of Scheme written in C.
2
easy to interface and should be easy to use as an extension language.
2
QScheme is easy to interface and should be easy to use as an extension
3
language.
3
4
4
QScheme currently supports foreign function call and dynamic library. A perl
5
QScheme currently supports foreign function call and dynamic library. A
5
like regular expression module is provided as example.
6
perl like regular expression module is provided as example.
6
7
7
QScheme is really fast: benchmarks (still a little old) shows that it is
8
QScheme is really fast: benchmarks (still a little old) shows that it is
8
generaly between 2 and 70 times faster than other scheme interpreters.
9
generaly between 2 and 70 times faster than other scheme interpreters.
(-)lang/qscheme/pkg-plist (-46 / +46 lines)
Lines 1-47 Link Here
1
bin/qscheme
1
bin/qscheme
2
share/qscheme/%%PORTVERSION%%/regex.so
2
lib/qscheme/%%VERSION%%/regex.so
3
share/qscheme/%%PORTVERSION%%/object.so
3
lib/qscheme/%%VERSION%%/object.so
4
share/qscheme/%%PORTVERSION%%/process.so
4
lib/qscheme/%%VERSION%%/process.so
5
share/qscheme/%%PORTVERSION%%/struct.so
5
lib/qscheme/%%VERSION%%/struct.so
6
share/qscheme/%%PORTVERSION%%/socket.so
6
lib/qscheme/%%VERSION%%/socket.so
7
share/qscheme/%%PORTVERSION%%/unix.so
7
lib/qscheme/%%VERSION%%/unix.so
8
share/qscheme/%%PORTVERSION%%/s.scm
8
lib/qscheme/%%VERSION%%/s.scm
9
share/qscheme/%%PORTVERSION%%/macro.scm
9
lib/qscheme/%%VERSION%%/macro.scm
10
share/qscheme/%%PORTVERSION%%/loop.scm
10
lib/qscheme/%%VERSION%%/loop.scm
11
share/qscheme/%%PORTVERSION%%/wloop.scm
11
lib/qscheme/%%VERSION%%/wloop.scm
12
share/qscheme/%%PORTVERSION%%/fib.scm
12
lib/qscheme/%%VERSION%%/fib.scm
13
share/qscheme/%%PORTVERSION%%/cat.scm
13
lib/qscheme/%%VERSION%%/cat.scm
14
share/qscheme/%%PORTVERSION%%/doc/s.dvi
14
%%PORTDOCS%%%%DOCSDIR%%/s.dvi
15
share/qscheme/%%PORTVERSION%%/doc/s.ps
15
%%PORTDOCS%%%%DOCSDIR%%/s.ps
16
share/qscheme/%%PORTVERSION%%/doc/html/WARNINGS
16
%%PORTDOCS%%%%DOCSDIR%%/html/WARNINGS
17
share/qscheme/%%PORTVERSION%%/doc/html/footnode.html
17
%%PORTDOCS%%%%DOCSDIR%%/html/footnode.html
18
share/qscheme/%%PORTVERSION%%/doc/html/images.aux
18
%%PORTDOCS%%%%DOCSDIR%%/html/images.aux
19
share/qscheme/%%PORTVERSION%%/doc/html/images.log
19
%%PORTDOCS%%%%DOCSDIR%%/html/images.log
20
share/qscheme/%%PORTVERSION%%/doc/html/images.pl
20
%%PORTDOCS%%%%DOCSDIR%%/html/images.pl
21
share/qscheme/%%PORTVERSION%%/doc/html/images.tex
21
%%PORTDOCS%%%%DOCSDIR%%/html/images.tex
22
share/qscheme/%%PORTVERSION%%/doc/html/img1.png
22
%%PORTDOCS%%%%DOCSDIR%%/html/img1.png
23
share/qscheme/%%PORTVERSION%%/doc/html/img2.png
23
%%PORTDOCS%%%%DOCSDIR%%/html/img2.png
24
share/qscheme/%%PORTVERSION%%/doc/html/index.html
24
%%PORTDOCS%%%%DOCSDIR%%/html/index.html
25
share/qscheme/%%PORTVERSION%%/doc/html/internals.pl
25
%%PORTDOCS%%%%DOCSDIR%%/html/internals.pl
26
share/qscheme/%%PORTVERSION%%/doc/html/labels.pl
26
%%PORTDOCS%%%%DOCSDIR%%/html/labels.pl
27
share/qscheme/%%PORTVERSION%%/doc/html/node1.html
27
%%PORTDOCS%%%%DOCSDIR%%/html/node1.html
28
share/qscheme/%%PORTVERSION%%/doc/html/node10.html
28
%%PORTDOCS%%%%DOCSDIR%%/html/node10.html
29
share/qscheme/%%PORTVERSION%%/doc/html/node11.html
29
%%PORTDOCS%%%%DOCSDIR%%/html/node11.html
30
share/qscheme/%%PORTVERSION%%/doc/html/node12.html
30
%%PORTDOCS%%%%DOCSDIR%%/html/node12.html
31
share/qscheme/%%PORTVERSION%%/doc/html/node13.html
31
%%PORTDOCS%%%%DOCSDIR%%/html/node13.html
32
share/qscheme/%%PORTVERSION%%/doc/html/node14.html
32
%%PORTDOCS%%%%DOCSDIR%%/html/node14.html
33
share/qscheme/%%PORTVERSION%%/doc/html/node15.html
33
%%PORTDOCS%%%%DOCSDIR%%/html/node15.html
34
share/qscheme/%%PORTVERSION%%/doc/html/node2.html
34
%%PORTDOCS%%%%DOCSDIR%%/html/node2.html
35
share/qscheme/%%PORTVERSION%%/doc/html/node3.html
35
%%PORTDOCS%%%%DOCSDIR%%/html/node3.html
36
share/qscheme/%%PORTVERSION%%/doc/html/node4.html
36
%%PORTDOCS%%%%DOCSDIR%%/html/node4.html
37
share/qscheme/%%PORTVERSION%%/doc/html/node5.html
37
%%PORTDOCS%%%%DOCSDIR%%/html/node5.html
38
share/qscheme/%%PORTVERSION%%/doc/html/node6.html
38
%%PORTDOCS%%%%DOCSDIR%%/html/node6.html
39
share/qscheme/%%PORTVERSION%%/doc/html/node7.html
39
%%PORTDOCS%%%%DOCSDIR%%/html/node7.html
40
share/qscheme/%%PORTVERSION%%/doc/html/node8.html
40
%%PORTDOCS%%%%DOCSDIR%%/html/node8.html
41
share/qscheme/%%PORTVERSION%%/doc/html/node9.html
41
%%PORTDOCS%%%%DOCSDIR%%/html/node9.html
42
share/qscheme/%%PORTVERSION%%/doc/html/s.css
42
%%PORTDOCS%%%%DOCSDIR%%/html/s.css
43
share/qscheme/%%PORTVERSION%%/doc/html/s.html
43
%%PORTDOCS%%%%DOCSDIR%%/html/s.html
44
@dirrm share/qscheme/%%PORTVERSION%%/doc/html
44
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
45
@dirrm share/qscheme/%%PORTVERSION%%/doc
45
%%PORTDOCS%%@dirrm %%DOCSDIR%%
46
@dirrm share/qscheme/%%PORTVERSION%%
46
@dirrm lib/qscheme/%%VERSION%%
47
@dirrm share/qscheme
47
@dirrm lib/qscheme

Return to bug 193040