diff options
author | steve <steve@FreeBSD.org> | 2000-07-10 04:06:08 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 2000-07-10 04:06:08 +0000 |
commit | c6d0161b46f93dcd47d288b5c32fcb2d8d256d2d (patch) | |
tree | 56f801a2fbf817f6390596b649a38c9b3b65127d /x11-toolkits/libj2dplot | |
parent | cb1aca18df78349f472c2702c7a2e7ab74da2230 (diff) | |
download | FreeBSD-ports-c6d0161b46f93dcd47d288b5c32fcb2d8d256d2d.zip FreeBSD-ports-c6d0161b46f93dcd47d288b5c32fcb2d8d256d2d.tar.gz |
Adding libj2dplot version 0.6.5.
A 2D plotting library for the JX toolkit.
PR: 19285
Submitted by: Mario S F Ferreira <lioux@linf.unb.br>
Diffstat (limited to 'x11-toolkits/libj2dplot')
-rw-r--r-- | x11-toolkits/libj2dplot/Makefile | 145 | ||||
-rw-r--r-- | x11-toolkits/libj2dplot/distinfo | 1 | ||||
-rw-r--r-- | x11-toolkits/libj2dplot/files/patch-aa | 28 | ||||
-rw-r--r-- | x11-toolkits/libj2dplot/files/patch-ab | 11 | ||||
-rw-r--r-- | x11-toolkits/libj2dplot/files/patch-ac | 11 | ||||
-rw-r--r-- | x11-toolkits/libj2dplot/pkg-comment | 1 | ||||
-rw-r--r-- | x11-toolkits/libj2dplot/pkg-descr | 8 | ||||
-rw-r--r-- | x11-toolkits/libj2dplot/pkg-plist | 28 |
8 files changed, 233 insertions, 0 deletions
diff --git a/x11-toolkits/libj2dplot/Makefile b/x11-toolkits/libj2dplot/Makefile new file mode 100644 index 0000000..10a1b41 --- /dev/null +++ b/x11-toolkits/libj2dplot/Makefile @@ -0,0 +1,145 @@ +# New ports collection makefile for: libj2dplot +# Date created: 14 June 2000 +# Whom: Mario S F Ferreira <lioux@linf.unb.br> et al. +# +# $FreeBSD$ +# + +PORTNAME= libj2dplot +PORTVERSION= 0.6.5 +CATEGORIES= x11-toolkits +MASTER_SITES= ftp://ftp.newplanetsoftware.com/pub/glove/source/ \ + ftp://ftp.newplanetsoftware.com/pub/thx/source/ +DISTNAME= J2DPlot_source-${PORTVERSION} + +MAINTAINER= lioux@linf.unb.br + +BUILD_DEPENDS= nonexistent:${JXPORT}:configure \ + makemake:${JXPORT} +LIB_DEPENDS= jx-1_5_3.1:${JXPORT} \ + jparser-1_1_8.1:${PORTSDIR}/x11-toolkits/libjparser + +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}/include/jparser + +# Installs dir with proper permissions +INSTALL_DATA_DIR= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 +# New version number +LIBVERSION= 0_6_5 +# the libraries +LIBFILES= ${PORTNAME}-${LIBVERSION}.a ${PORTNAME}-${LIBVERSION}.so +# header files +INCLUDEDIR= j2dplot +# documentation +DOCDIR_PREFIX= ${PREFIX}/share/doc/jx +DOCDIRS= ${PORTNAME} +DOCDIRFILES= LICENSE +# additional configuration and header files +EXTRALIB_PREFIX= ${PREFIX}/lib/jx +EXTRALIBDIRS= lib make +EXTRALIBFILES_MAKE_WRKSRC= include/make +EXTRALIBFILES_MAKE_FILES= j2dplot_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= 0 +.else +ALL_TARGET= freebsd2.x +LIBNUMBER= 0.6 +.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 ; \ + do \ + ${INSTALL_DATA} $${j} ${PREFIX}/include/${i} ; \ + 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/libj2dplot/distinfo b/x11-toolkits/libj2dplot/distinfo new file mode 100644 index 0000000..725f9c4 --- /dev/null +++ b/x11-toolkits/libj2dplot/distinfo @@ -0,0 +1 @@ +MD5 (J2DPlot_source-0.6.5.tar.gz) = 0f54607beb08280246039be45a432d41 diff --git a/x11-toolkits/libj2dplot/files/patch-aa b/x11-toolkits/libj2dplot/files/patch-aa new file mode 100644 index 0000000..18be5d2 --- /dev/null +++ b/x11-toolkits/libj2dplot/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/libj2dplot/files/patch-ab b/x11-toolkits/libj2dplot/files/patch-ab new file mode 100644 index 0000000..08f994d --- /dev/null +++ b/x11-toolkits/libj2dplot/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/libj2dplot/files/patch-ac b/x11-toolkits/libj2dplot/files/patch-ac new file mode 100644 index 0000000..464c422 --- /dev/null +++ b/x11-toolkits/libj2dplot/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/libj2dplot/pkg-comment b/x11-toolkits/libj2dplot/pkg-comment new file mode 100644 index 0000000..7a38d2e --- /dev/null +++ b/x11-toolkits/libj2dplot/pkg-comment @@ -0,0 +1 @@ +A 2D plotting library for the JX toolkit diff --git a/x11-toolkits/libj2dplot/pkg-descr b/x11-toolkits/libj2dplot/pkg-descr new file mode 100644 index 0000000..e5e0b4f --- /dev/null +++ b/x11-toolkits/libj2dplot/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/libj2dplot/pkg-plist b/x11-toolkits/libj2dplot/pkg-plist new file mode 100644 index 0000000..fb0a56d --- /dev/null +++ b/x11-toolkits/libj2dplot/pkg-plist @@ -0,0 +1,28 @@ +include/j2dplot/J2DDataPoint.h +include/j2dplot/J2DPlotData.h +include/j2dplot/J2DPlotLibVersion.h +include/j2dplot/J2DPlotWidget.h +include/j2dplot/J2DVectorData.h +include/j2dplot/J2DVectorPoint.h +include/j2dplot/JCurveInfo.h +include/j2dplot/JPlotDataBase.h +include/j2dplot/JPlotFunctionBase.h +include/j2dplot/JPlotJFunction.h +include/j2dplot/JX2DPlotWidget.h +include/j2dplot/JXCursorMarkTable.h +include/j2dplot/JXCursorMarkTableDir.h +include/j2dplot/JXCurveNameList.h +include/j2dplot/JXCurveOptionsDialog.h +include/j2dplot/JXPlotLabelDialog.h +include/j2dplot/JXPlotRangeDialog.h +include/j2dplot/JXPlotScaleDialog.h +include/j2dplot/fitplot.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:%%@unexec rmdir %D/share/doc/jx 2>/dev/null || true +@dirrm include/%%INCLUDEDIR%% |