aboutsummaryrefslogtreecommitdiff
path: root/lang/see-devel
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-10-31 14:42:20 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-10-31 14:42:20 +0000
commitd2af571a96a5e2c063ce49abb89b6aa314b671b4 (patch)
treef1486ed0d1faa8bf248d21b706d64215b29c1883 /lang/see-devel
parentd0a05b3ee2f390cfef970728f715900c1929dee7 (diff)
downloadports-d2af571a96a5e2c063ce49abb89b6aa314b671b4.tar.gz
ports-d2af571a96a5e2c063ce49abb89b6aa314b671b4.zip
Notes
Diffstat (limited to 'lang/see-devel')
-rw-r--r--lang/see-devel/Makefile64
-rw-r--r--lang/see-devel/distinfo2
-rw-r--r--lang/see-devel/files/patch-include_see_Makefile.in14
-rw-r--r--lang/see-devel/files/patch-libsee_dtoa__config.h11
-rw-r--r--lang/see-devel/pkg-descr3
-rw-r--r--lang/see-devel/pkg-plist29
6 files changed, 123 insertions, 0 deletions
diff --git a/lang/see-devel/Makefile b/lang/see-devel/Makefile
new file mode 100644
index 000000000000..05d1525ad5ad
--- /dev/null
+++ b/lang/see-devel/Makefile
@@ -0,0 +1,64 @@
+# New ports collection makefile for: see-devel
+# Date created: 29 Oct 2005
+# Whom: Simun Mikecin <sime@logos.hr>
+#
+# $FreeBSD$
+#
+
+PORTNAME= see
+PORTVERSION= 1.3
+CATEGORIES= lang devel
+MASTER_SITES= http://www.adaptive-enterprises.com.au/~d/software/see/
+PKGNAMESUFFIX= -devel
+DISTNAME= ${PORTNAME}-${PORTVERSION}-20050609-gerry
+
+MAINTAINER= sime@logos.hr
+COMMENT= Simple ECMAScript Engine (SEE)
+
+OPTIONS= GC "Use Boehm-Weiser garbage collection package" on \
+ OPTIMIZED_CFLAGS "Enable some additional optimizations" off
+
+CONFLICTS= see-[0-9]*
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
+
+USE_ZIP= yes
+INSTALLS_SHLIB= yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_PERL5_BUILD=yes
+USE_REINPLACE= yes
+USE_LIBTOOL_VER=15
+
+CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
+ CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}"
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_OPTIMIZED_CFLAGS)
+CFLAGS+= -O2 -fomit-frame-pointer
+.endif
+
+.if defined(WITH_GC)
+LIB_DEPENDS+= gc:${PORTSDIR}/devel/boehm-gc
+.else
+CONFIGURE_ARGS+= --without-boehm-gc
+PTHREAD_CFLAGS=
+PTHREAD_LIBS=
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|PACKAGE_BUGREPORT='dleonard@users|PACKAGE_BUGREPORT='dleonard\\\@users|" \
+ ${WRKSRC}/configure
+
+.if !defined(NOPORTDOCS)
+post-install:
+ ${MKDIR} ${DOCSDIR}
+.for f in doc/USAGE.html AUTHORS NEWS README TODO COPYING
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/lang/see-devel/distinfo b/lang/see-devel/distinfo
new file mode 100644
index 000000000000..430fa72f836d
--- /dev/null
+++ b/lang/see-devel/distinfo
@@ -0,0 +1,2 @@
+MD5 (see-1.3-20050609-gerry.zip) = 480aa963913ef1d7a2180e6e385e7de8
+SIZE (see-1.3-20050609-gerry.zip) = 600545
diff --git a/lang/see-devel/files/patch-include_see_Makefile.in b/lang/see-devel/files/patch-include_see_Makefile.in
new file mode 100644
index 000000000000..30003b748d8d
--- /dev/null
+++ b/lang/see-devel/files/patch-include_see_Makefile.in
@@ -0,0 +1,14 @@
+--- include/see/Makefile.in.orig Mon Oct 31 14:07:09 2005
++++ include/see/Makefile.in Mon Oct 31 14:11:01 2005
+@@ -405,7 +405,10 @@
+ $(PERL) -n -e \
+ 'print if s!^#define\s+(\S+)\s+(.+)!s,\\\@$$1\\\@,$$2/*$$1*/,g;!; \
+ print if s:^/\*\s*#undef\s+(\S+)\s*\*/.*:s,\\\@$$1\\\@,0/*!$$1*/,g;:; \
+- ' < $(CONFIG_HEADER) > inc-subst
++ ' < $(CONFIG_HEADER) > inc-subst.tmp
++ ${PERL} -n -e \
++ 's/[^\\]\@/\\\@/g; print; \
++ ' < inc-subst.tmp > inc-subst
+
+ error.h: error.h.in inc-subst
+ $(PERL) -p inc-subst < $(srcdir)/error.h.in > error.h
diff --git a/lang/see-devel/files/patch-libsee_dtoa__config.h b/lang/see-devel/files/patch-libsee_dtoa__config.h
new file mode 100644
index 000000000000..9679f6537f87
--- /dev/null
+++ b/lang/see-devel/files/patch-libsee_dtoa__config.h
@@ -0,0 +1,11 @@
+--- libsee/dtoa_config.h.orig Tue Apr 26 13:37:43 2005
++++ libsee/dtoa_config.h Sat Oct 29 16:07:56 2005
+@@ -12,7 +12,7 @@
+
+ #include <see/type.h>
+
+-#if defined(__i386__) || defined(__amd64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__ia64__) || defined(__alpha__)
+ # define IEEE_8087
+ #endif
+
diff --git a/lang/see-devel/pkg-descr b/lang/see-devel/pkg-descr
new file mode 100644
index 000000000000..5bcf69e029b9
--- /dev/null
+++ b/lang/see-devel/pkg-descr
@@ -0,0 +1,3 @@
+Library that provides an ECMAScript (JavaScript) run-time environment.
+
+WWW: http://www.adaptive-enterprises.com.au/~d/software/see/
diff --git a/lang/see-devel/pkg-plist b/lang/see-devel/pkg-plist
new file mode 100644
index 000000000000..e54e94ca0b55
--- /dev/null
+++ b/lang/see-devel/pkg-plist
@@ -0,0 +1,29 @@
+bin/libsee-config
+bin/see-shell
+include/see/cfunction.h
+include/see/debug.h
+include/see/error.h
+include/see/eval.h
+include/see/input.h
+include/see/intern.h
+include/see/interpreter.h
+include/see/mem.h
+include/see/native.h
+include/see/no.h
+include/see/object.h
+include/see/see.h
+include/see/string.h
+include/see/try.h
+include/see/type.h
+include/see/value.h
+lib/libsee.a
+lib/libsee.so
+lib/libsee.so.0
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%%%DOCSDIR%%/USAGE.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm include/see