summaryrefslogtreecommitdiff
path: root/x11-toolkits/libjtree
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-06-09 19:42:40 +0000
committerWill Andrews <will@FreeBSD.org>2000-06-09 19:42:40 +0000
commitfddcc904b289b2cfe80c57d9f0bc9a8c000f49f9 (patch)
treed0b60e3eb598f45978a6b53799e41af8c9c3883b /x11-toolkits/libjtree
parentDon't try to make this port respect CC/CFLAGS. It won't work. :-( (diff)
Add libjtree, another library (on top of x11-toolkits/jx) needed to build
codecrusader. PR: 19039 Submitted by: Mario Sergio Fujikawa Ferriera <lioux@uol.com.br>
Notes
Notes: svn path=/head/; revision=29457
Diffstat (limited to 'x11-toolkits/libjtree')
-rw-r--r--x11-toolkits/libjtree/Makefile143
-rw-r--r--x11-toolkits/libjtree/distinfo1
-rw-r--r--x11-toolkits/libjtree/files/patch-aa26
-rw-r--r--x11-toolkits/libjtree/pkg-comment1
-rw-r--r--x11-toolkits/libjtree/pkg-descr8
-rw-r--r--x11-toolkits/libjtree/pkg-plist20
6 files changed, 199 insertions, 0 deletions
diff --git a/x11-toolkits/libjtree/Makefile b/x11-toolkits/libjtree/Makefile
new file mode 100644
index 000000000000..eb9d85cab682
--- /dev/null
+++ b/x11-toolkits/libjtree/Makefile
@@ -0,0 +1,143 @@
+# New ports collection makefile for: libjtree
+# Date created: 30 May 2000
+# Whom: Mario S F Ferreira <lioux@linf.unb.br> et al.
+#
+# $FreeBSD$
+#
+
+PORTNAME= libjtree
+PORTVERSION= 1.1.7
+CATEGORIES= x11-toolkits
+MASTER_SITES= ftp://ftp.newplanetsoftware.com/pub/jx/source-1.5.3/ \
+ ftp://ftp.newplanetsoftware.com/pub/jcc/source/ \
+ ftp://ftp.newplanetsoftware.com/pub/medic/source/ \
+ ftp://ftp.cs.itu.edu.tr/pub/linux/x11/jx/
+DISTNAME= JTree_source-${PORTVERSION}
+
+MAINTAINER= lioux@linf.unb.br
+
+BUILD_DEPENDS= /nonexistent:${JXPORT}:patch
+LIB_DEPENDS= jx-1_5_3.1:${JXPORT}
+
+WRKSRC= ${WRKDIR}/JX-1.5.3
+
+USE_XLIB= yes
+USE_GMAKE= yes
+MAKE_ENV= JX_INSTALL_ROOT="${PREFIX}/bin" \
+ JX_LIB_ROOT="${PREFIX}/lib" \
+ X11PREFIX="${X11PREFIX}" \
+ PORTCFLAGS="${CFLAGS}" \
+ PORTCXXFLAGS="${CXXFLAGS}" \
+ PORTINCLUDES="${PORTINCLUDES}"
+PLIST_SUB= PORTNAME="${PORTNAME}" \
+ LIBNUMBER="${LIBNUMBER}" \
+ LIBVERSION="${LIBVERSION}" \
+ EXTRALIBFILES_MAKE_FILES="${EXTRALIBFILES_MAKE_FILES}" \
+ INCLUDEDIR="${INCLUDEDIR}"
+
+# Proper X11R6 Prefix
+# Change it, if you need it
+X11PREFIX?= ${X11BASE}
+
+# Make environment
+PORTINCLUDES= -I${LOCALBASE}/include/jx
+
+# Installs dir with proper permissions
+INSTALL_DATA_DIR= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755
+# New version number
+LIBVERSION= 1_1_7
+# the libraries
+LIBFILES= ${PORTNAME}-${LIBVERSION}.a ${PORTNAME}-${LIBVERSION}.so
+# header files
+INCLUDEDIR= jtree
+# 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= jtree_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 lib libjcore
+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-build:
+ @cd ${WRKSRC}/${PORTNAME}; ${SETENV} ${MAKE_ENV} makemake; \
+ ${SETENV} ${MAKE_ENV} ${GMAKE}
+
+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/libjtree/distinfo b/x11-toolkits/libjtree/distinfo
new file mode 100644
index 000000000000..097fc0bba0af
--- /dev/null
+++ b/x11-toolkits/libjtree/distinfo
@@ -0,0 +1 @@
+MD5 (JTree_source-1.1.7.tar.gz) = 79749772c85d3234409d8a4bcac2ffd5
diff --git a/x11-toolkits/libjtree/files/patch-aa b/x11-toolkits/libjtree/files/patch-aa
new file mode 100644
index 000000000000..2ea5a415eb43
--- /dev/null
+++ b/x11-toolkits/libjtree/files/patch-aa
@@ -0,0 +1,26 @@
+--- Makefile.orig Tue May 30 13:04:38 2000
++++ Makefile Tue May 30 13:09:41 2000
+@@ -264,11 +264,6 @@
+ 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
+@@ -276,11 +271,6 @@
+ 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/libjtree/pkg-comment b/x11-toolkits/libjtree/pkg-comment
new file mode 100644
index 000000000000..6d20fa9a1ceb
--- /dev/null
+++ b/x11-toolkits/libjtree/pkg-comment
@@ -0,0 +1 @@
+JTree is an additional library for the JX widget library
diff --git a/x11-toolkits/libjtree/pkg-descr b/x11-toolkits/libjtree/pkg-descr
new file mode 100644
index 000000000000..e5e0b4fd4c7e
--- /dev/null
+++ b/x11-toolkits/libjtree/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/libjtree/pkg-plist b/x11-toolkits/libjtree/pkg-plist
new file mode 100644
index 000000000000..a092b40bcf1d
--- /dev/null
+++ b/x11-toolkits/libjtree/pkg-plist
@@ -0,0 +1,20 @@
+include/jtree/JNamedTreeList.h
+include/jtree/JNamedTreeNode.h
+include/jtree/JTree.h
+include/jtree/JTreeLibVersion.h
+include/jtree/JTreeList.h
+include/jtree/JTreeNode.h
+include/jtree/JXNamedTreeListWidget.h
+include/jtree/JXTLWAdjustToTreeTask.h
+include/jtree/JXTreeListWidget.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%%
+@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
+@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R