summaryrefslogtreecommitdiff
path: root/x11-toolkits/libjparser
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2000-07-10 04:09:17 +0000
committerSteve Price <steve@FreeBSD.org>2000-07-10 04:09:17 +0000
commit48c52000abc4626604bcd449a94aa5d2ed524e89 (patch)
tree1172c17067dfcc01b24b044f3e923dd31676ea8d /x11-toolkits/libjparser
parentAdding libj2dplot version 0.6.5. (diff)
Adding libjparser version 1.1.8.
JParser is an additional library for the JX widget library. PR: 19283 Submitted by: Mario S F Ferreira <lioux@linf.unb.br>
Notes
Notes: svn path=/head/; revision=30427
Diffstat (limited to 'x11-toolkits/libjparser')
-rw-r--r--x11-toolkits/libjparser/Makefile149
-rw-r--r--x11-toolkits/libjparser/distinfo1
-rw-r--r--x11-toolkits/libjparser/files/patch-aa28
-rw-r--r--x11-toolkits/libjparser/files/patch-ab11
-rw-r--r--x11-toolkits/libjparser/files/patch-ac11
-rw-r--r--x11-toolkits/libjparser/pkg-comment1
-rw-r--r--x11-toolkits/libjparser/pkg-descr8
-rw-r--r--x11-toolkits/libjparser/pkg-plist99
8 files changed, 308 insertions, 0 deletions
diff --git a/x11-toolkits/libjparser/Makefile b/x11-toolkits/libjparser/Makefile
new file mode 100644
index 000000000000..71310a80cda0
--- /dev/null
+++ b/x11-toolkits/libjparser/Makefile
@@ -0,0 +1,149 @@
+# New ports collection makefile for: libjparser
+# Date created: 14 June 2000
+# Whom: Mario S F Ferreira <lioux@linf.unb.br> et al.
+#
+# $FreeBSD$
+#
+
+PORTNAME= libjparser
+PORTVERSION= 1.1.8
+CATEGORIES= x11-toolkits
+MASTER_SITES= ftp://ftp.newplanetsoftware.com/pub/glove/source/ \
+ ftp://ftp.newplanetsoftware.com/pub/thx/source/
+DISTNAME= JParser_source-${PORTVERSION}
+
+MAINTAINER= lioux@linf.unb.br
+
+BUILD_DEPENDS= nonexistent:${JXPORT}:configure \
+ makemake:${JXPORT}
+LIB_DEPENDS= jx-1_5_3.1:${JXPORT}
+
+WRKSRC= ${WRKDIR}/JX-1.5.3
+
+INSTALLS_SHLIB= yes
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+MAKE_ARGS= CC="${CC}" CXX="${CXX}" \
+ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
+MAKE_ENV= JX_INSTALL_ROOT="${PREFIX}/bin" \
+ JX_LIB_ROOT="${PREFIX}/lib"
+PLIST_SUB= PORTNAME="${PORTNAME}" \
+ LIBNUMBER="${LIBNUMBER}" \
+ LIBVERSION="${LIBVERSION}" \
+ EXTRALIBFILES_MAKE_FILES="${EXTRALIBFILES_MAKE_FILES}" \
+ INCLUDEDIR="${INCLUDEDIR}"
+
+# Make environment
+PORTINCLUDES= -I${X11BASE}/include/jcore -I${X11BASE}/include/jx \
+ -I${X11BASE}/share/jx
+
+# Installs dir with proper permissions
+INSTALL_DATA_DIR= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755
+# New version number
+LIBVERSION= 1_1_8
+# the libraries
+LIBFILES= ${PORTNAME}-${LIBVERSION}.a ${PORTNAME}-${LIBVERSION}.so
+# header files
+INCLUDEDIR= jparser
+# documentation
+DOCDIR_PREFIX= ${PREFIX}/share/doc/jx
+DOCDIRS= ${PORTNAME}
+DOCDIRFILES= LICENSE README
+# additional configuration and header files
+EXTRALIB_PREFIX= ${PREFIX}/lib/jx
+EXTRALIBDIRS= lib make
+EXTRALIBFILES_MAKE_WRKSRC= include/make
+EXTRALIBFILES_MAKE_FILES= jparser_constants
+# main jx distribution port wrksrc
+JXPORT= ${PORTSDIR}/x11-toolkits/jx
+JXPORT_WRKSRC= ${JXPORT}/work/JX-1.5.3
+# main jx distribution files needed for building
+COPY_JXDIRS= include
+COPY_JXFILES= Makefile
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 300000
+ALL_TARGET= freebsd3.x
+LIBNUMBER= 1
+.else
+ALL_TARGET= freebsd2.x
+LIBNUMBER= 1.1
+.endif
+
+.if defined(NOPORTDOCS)
+PLIST_SUB+= PORTDOCS:="@comment "
+.else
+PLIST_SUB+= PORTDOCS:=
+.endif # !defined(NOPORTDOCS)
+
+post-extract:
+.for i in ${COPY_JXDIRS}
+ @${CP} -Rp ${JXPORT_WRKSRC}/${i} ${WRKSRC}
+.endfor
+.for i in ${COPY_JXFILES}
+ @${CP} -p ${JXPORT_WRKSRC}/${i} ${WRKSRC}
+.endfor
+
+post-patch:
+ @${ECHO} "SEARCHDIRS += ${PORTINCLUDES}" >> \
+ ${WRKSRC}/${EXTRALIBFILES_MAKE_WRKSRC}/jx_constants
+
+post-build:
+ @cd ${WRKSRC}/${PORTNAME}; ${SETENV} ${MAKE_ENV} makemake; \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} \
+ ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
+
+do-install:
+.if !defined(NOPORTDOCS)
+# Install all documentation
+.for i in ${DOCDIRS}
+ @for j in ${DOCDIRFILES} ; \
+ do \
+ if [ -f ${WRKSRC}/programs/${i}/$${j} ]; \
+ then \
+ ${INSTALL_DATA} ${WRKSRC}/programs/${i}/$${j} \
+ ${DOCDIR_PREFIX}/$${j}_${i} ; \
+ elif [ -f ${WRKSRC}/${i}/$${j} ]; \
+ then \
+ ${INSTALL_DATA} ${WRKSRC}/${i}/$${j} \
+ ${DOCDIR_PREFIX}/$${j}_${i} ; \
+ fi ; \
+ done
+.endfor
+.endif # !defined(NOPORTDOCS)
+# Install all header files
+.for i in ${INCLUDEDIR}
+ @${INSTALL_DATA_DIR} ${PREFIX}/include/${i} ; \
+ for j in ${WRKSRC}/include/${i}/*.*h \
+ ${WRKSRC}/include/${i}/*.tmpl \
+ ${WRKSRC}/include/${i}/*.tmpls ; \
+ do \
+ if [ -f $${j} ]; \
+ then \
+ ${INSTALL_DATA} $${j} ${PREFIX}/include/${i}/ ; \
+ fi ; \
+ done
+.endfor
+# Install all libraries
+.for i in ${LIBFILES}
+ @${INSTALL_PROGRAM} ${WRKSRC}/lib/${i} ${PREFIX}/lib
+.endfor
+# Install additional library files
+.for i in ${EXTRALIBDIRS}
+ @${INSTALL_DATA_DIR} ${EXTRALIB_PREFIX}/${i}
+.endfor
+.for i in ${EXTRALIBFILES_MAKE_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${EXTRALIBFILES_MAKE_WRKSRC}/${i} \
+ ${EXTRALIB_PREFIX}/make/${i}
+.endfor
+
+post-install:
+ @${LN} -sf ${PORTNAME}-${LIBVERSION}.so \
+ ${PREFIX}/lib/${PORTNAME}-${LIBVERSION}.so.${LIBNUMBER}
+.for i in ${LIBFILES}
+ @${LN} -sf ../../${i} ${EXTRALIB_PREFIX}/lib/${i}
+.endfor
+
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/libjparser/distinfo b/x11-toolkits/libjparser/distinfo
new file mode 100644
index 000000000000..67d30311adf7
--- /dev/null
+++ b/x11-toolkits/libjparser/distinfo
@@ -0,0 +1 @@
+MD5 (JParser_source-1.1.8.tar.gz) = 04077a9b037781210ec0085d5e1a6b1b
diff --git a/x11-toolkits/libjparser/files/patch-aa b/x11-toolkits/libjparser/files/patch-aa
new file mode 100644
index 000000000000..18be5d2d2db3
--- /dev/null
+++ b/x11-toolkits/libjparser/files/patch-aa
@@ -0,0 +1,28 @@
+--- Makefile.orig Sat Sep 11 17:44:38 1999
++++ Makefile Wed Jun 14 01:07:15 2000
+@@ -262,25 +262,11 @@
+ freebsd2.x: prep
+ @ln -s sys/FreeBSD-2.x_g++ \
+ include/make/jx_config
+- @ln -s ../../include/missing_proto/jMissingProto_empty.h \
+- include/jcore/jMissingProto.h
+- @ln -s config-freebsd.h \
+- ACE/ACE_wrappers/ace/config.h
+- @ln -s platform_freebsd.GNU \
+- ACE/ACE_wrappers/include/makeinclude/platform_macros.GNU
+- @${INSTALL_CMD}
+
+ .PHONY : freebsd3.x
+ freebsd3.x: prep
+ @ln -s sys/FreeBSD-3.x_g++ \
+ include/make/jx_config
+- @ln -s ../../include/missing_proto/jMissingProto_empty.h \
+- include/jcore/jMissingProto.h
+- @ln -s config-freebsd-pthread.h \
+- ACE/ACE_wrappers/ace/config.h
+- @ln -s platform_freebsd_pthread.GNU \
+- ACE/ACE_wrappers/include/makeinclude/platform_macros.GNU
+- @${INSTALL_CMD}
+
+ #
+ # SunOS 4.x
diff --git a/x11-toolkits/libjparser/files/patch-ab b/x11-toolkits/libjparser/files/patch-ab
new file mode 100644
index 000000000000..08f994d2573c
--- /dev/null
+++ b/x11-toolkits/libjparser/files/patch-ab
@@ -0,0 +1,11 @@
+--- include/make/sys/FreeBSD-2.x_g++.orig Wed Jun 14 01:44:51 2000
++++ include/make/sys/FreeBSD-2.x_g++ Wed Jun 14 01:45:00 2000
+@@ -35,7 +35,7 @@
+ # Comment this out if ACE or other code gives you warnings that
+ # you can't avoid.
+
+-J_DIE_ON_WARNING := -Werror
++#J_DIE_ON_WARNING := -Werror
+
+ # Uncomment this if istrstream is broken. One way to check is to run
+ # testjcore/testJFileArray.
diff --git a/x11-toolkits/libjparser/files/patch-ac b/x11-toolkits/libjparser/files/patch-ac
new file mode 100644
index 000000000000..464c4221d3af
--- /dev/null
+++ b/x11-toolkits/libjparser/files/patch-ac
@@ -0,0 +1,11 @@
+--- include/make/sys/FreeBSD-3.x_g++.orig Wed Jun 14 01:44:51 2000
++++ include/make/sys/FreeBSD-3.x_g++ Wed Jun 14 01:45:00 2000
+@@ -35,7 +35,7 @@
+ # Comment this out if ACE or other code gives you warnings that
+ # you can't avoid.
+
+-J_DIE_ON_WARNING := -Werror
++#J_DIE_ON_WARNING := -Werror
+
+ # Uncomment this if istrstream is broken. One way to check is to run
+ # testjcore/testJFileArray.
diff --git a/x11-toolkits/libjparser/pkg-comment b/x11-toolkits/libjparser/pkg-comment
new file mode 100644
index 000000000000..b21bc183f887
--- /dev/null
+++ b/x11-toolkits/libjparser/pkg-comment
@@ -0,0 +1 @@
+JParser is an additional library for the JX widget library
diff --git a/x11-toolkits/libjparser/pkg-descr b/x11-toolkits/libjparser/pkg-descr
new file mode 100644
index 000000000000..e5e0b4fd4c7e
--- /dev/null
+++ b/x11-toolkits/libjparser/pkg-descr
@@ -0,0 +1,8 @@
+JX is a full-featured application framework and widget library for
+use with the X Window System. It provides support for all facets
+of application development, including distributed applications,
+and aims to combine the best of MacOS and NeXTSTEP. It is built
+directly on top of Xlib and has been carefully optimized for
+performance.
+
+WWW: http://www.newplanetsoftware.com/jx/
diff --git a/x11-toolkits/libjparser/pkg-plist b/x11-toolkits/libjparser/pkg-plist
new file mode 100644
index 000000000000..75a7bce5cd1e
--- /dev/null
+++ b/x11-toolkits/libjparser/pkg-plist
@@ -0,0 +1,99 @@
+include/jparser/JAbsValue.h
+include/jparser/JAlgSign.h
+include/jparser/JArcCosine.h
+include/jparser/JArcHypCosine.h
+include/jparser/JArcHypSine.h
+include/jparser/JArcHypTangent.h
+include/jparser/JArcSine.h
+include/jparser/JArcTangent.h
+include/jparser/JArcTangent2.h
+include/jparser/JBinaryDecision.h
+include/jparser/JBinaryDecision.tmpl
+include/jparser/JBinaryDecision.tmpls
+include/jparser/JBinaryFunction.h
+include/jparser/JBinaryOperator.h
+include/jparser/JBooleanAND.h
+include/jparser/JBooleanConstant.h
+include/jparser/JBooleanDecision.h
+include/jparser/JBooleanNOT.h
+include/jparser/JBooleanOR.h
+include/jparser/JBooleanXOR.h
+include/jparser/JConjugate.h
+include/jparser/JConstantValue.h
+include/jparser/JCosine.h
+include/jparser/JDecision.h
+include/jparser/JDecisionType.h
+include/jparser/JDecisionWithVar.h
+include/jparser/JDiscVarValue.h
+include/jparser/JDiscVarValueIndex.h
+include/jparser/JDiscreteEquality.h
+include/jparser/JDiscreteVarEquality.h
+include/jparser/JDivision.h
+include/jparser/JExponent.h
+include/jparser/JExprEditor.h
+include/jparser/JExprNodeList.h
+include/jparser/JExprRectList.h
+include/jparser/JExprRenderer.h
+include/jparser/JFunction.h
+include/jparser/JFunctionComparison.h
+include/jparser/JFunctionEquality.h
+include/jparser/JFunctionType.h
+include/jparser/JFunctionWithArgs.h
+include/jparser/JFunctionWithVar.h
+include/jparser/JGreaterEqualThan.h
+include/jparser/JGreaterThan.h
+include/jparser/JHypCosine.h
+include/jparser/JHypSine.h
+include/jparser/JHypTangent.h
+include/jparser/JImagPart.h
+include/jparser/JLessEqualThan.h
+include/jparser/JLessThan.h
+include/jparser/JLogB.h
+include/jparser/JLogE.h
+include/jparser/JMaxFunc.h
+include/jparser/JMinFunc.h
+include/jparser/JNamedConstant.h
+include/jparser/JNaryFunction.h
+include/jparser/JNaryOperator.h
+include/jparser/JNegation.h
+include/jparser/JParallel.h
+include/jparser/JParseResult.h
+include/jparser/JParserLibVersion.h
+include/jparser/JPhaseAngle.h
+include/jparser/JPiecewiseFunction.h
+include/jparser/JProduct.h
+include/jparser/JRealPart.h
+include/jparser/JRotateComplex.h
+include/jparser/JRoundToInt.h
+include/jparser/JSine.h
+include/jparser/JSquareRoot.h
+include/jparser/JSummation.h
+include/jparser/JTangent.h
+include/jparser/JTruncateToInt.h
+include/jparser/JUnaryFunction.h
+include/jparser/JUserInputFunction.h
+include/jparser/JValueUnknown.h
+include/jparser/JVariableList.h
+include/jparser/JVariableValue.h
+include/jparser/JXExprEditor.h
+include/jparser/JXExprEditorSet.h
+include/jparser/JXExprEvalDirector.h
+include/jparser/JXExprInput.h
+include/jparser/jExprUIUtil.h
+include/jparser/jFindLPOperator.h
+include/jparser/jParseDecision.h
+include/jparser/jParseDecision.ph
+include/jparser/jParseFunction.h
+include/jparser/jParseFunction.ph
+include/jparser/jParseUtil.h
+include/jparser/jParserData.h
+lib/jx/lib/%%PORTNAME%%-%%LIBVERSION%%.a
+lib/jx/lib/%%PORTNAME%%-%%LIBVERSION%%.so
+lib/jx/make/%%EXTRALIBFILES_MAKE_FILES%%
+lib/%%PORTNAME%%-%%LIBVERSION%%.a
+lib/%%PORTNAME%%-%%LIBVERSION%%.so
+lib/%%PORTNAME%%-%%LIBVERSION%%.so.%%LIBNUMBER%%
+%%PORTDOCS:%%share/doc/jx/LICENSE_%%PORTNAME%%
+%%PORTDOCS:%%share/doc/jx/README_%%PORTNAME%%
+%%PORTDOCS:%%@unexec rmdir %D/share/doc/jx 2>/dev/null || true
+@dirrm include/%%INCLUDEDIR%%