Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  2 Aug 1999 12:16:28 -0700 (PDT)
From:      Davec@unforgettable.com
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/12932: New Port (Second try):  Code Crusader and Code Medic
Message-ID:  <19990802191628.1366014CCD@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         12932
>Category:       ports
>Synopsis:       New Port (Second try):  Code Crusader and Code Medic
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug  2 12:20:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Davec
>Release:        4.0-CURRENT
>Organization:
>Environment:
>Description:
Code Crusader is a complete code development environment
inspired by MetroWerks CodeWarrior.

>How-To-Repeat:
The shar archive is attached below.
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	codecrusader
#	codecrusader/Makefile
#	codecrusader/files
#	codecrusader/files/md5
#	codecrusader/pkg
#	codecrusader/pkg/COMMENT
#	codecrusader/pkg/DESCR
#	codecrusader/pkg/PLIST
#	codecrusader/patches
#	codecrusader/patches/patch-aa
#	codecrusader/patches/patch-ab
#	codecrusader/patches/patch-ac
#
echo c - codecrusader
mkdir -p codecrusader > /dev/null 2>&1
echo x - codecrusader/Makefile
sed 's/^X//' >codecrusader/Makefile << 'END-of-codecrusader/Makefile'
X# New ports collection makefile for:	Code Crusader
X# Version required:	2.1.3
X# Date created:		30 July 1999
X# Whom:			Davec <davec@unforgettable.com>
X#
X# $Id$
X#
X
XDISTNAME=	CodeCrusader-2.1.3
XPKGNAME=	code_crusader-2.1.3
XCATEGORIES=	devel
XMASTER_SITES=	ftp://ftp.its.caltech.edu/pub/jafl/programs/jcc/source/ \
X		ftp://ftp.its.caltech.edu/pub/jafl/jx/source-1.5.2/
XDISTFILES=	code_crusader_source-2.1.3.tar.gz \
X		JTree_source-1.1.5.tar.gz \
X		JX_source-1.5.2.tar.gz \
X		JToolBar_source-0.5.3.tar.gz
X
XMAINTAINER=	davec@unforgettable.com
X
XLIB_DEPENDS=	Xpm.4:${PORTSDIR}/graphics/xpm
X
XWRKSRC=		${WRKDIR}/JX-1.5.2
X
XUSE_XLIB=	yes
XPLIST_SUB+=	"LIBACE=${LIBACE}" \
X		"LIBJTOOL=${LIBJTOOL}" \
X		"LIBJSEARCH=${LIBJSEARCH}" \
X		"LIBJTREE=${LIBJTREE}" \
X		"LIBJX=${LIBJX}"
XUSE_GMAKE=	yes
XMAKE_ENV=	JX_INSTALL_ROOT=${PREFIX}/bin \
X		JX_LIB_ROOT=${PREFIX}/lib
X
X.if !defined(CODEMEDIC) || (${CODEMEDIC} != no && ${CODEMEDIC} != NO)
Xpre-fetch:
X		@ ${ECHO_MSG}
X		@ ${ECHO_MSG} Code Medic is a gdb frontend to complement
X		@ ${ECHO_MSG} Code Crusader.  It is compiled in this port
X		@ ${ECHO_MSG} with Code Crusader by default.
X		@ ${ECHO_MSG} If you would prefer not compiling it in
X		@ ${ECHO_MSG} then set the variable CODEMEDIC=no.
X		@ ${ECHO_MSG}
X		@ ${ECHO_MSG} Compiling Code Crusader with Code Medic.
X		@ ${ECHO_MSG} Installing into ${PREFIX}
X		@ ${ECHO_MSG}
XMASTER_SITES+=	ftp://ftp.cco.caltech.edu/pub/glenn/Medic/source/ \
X		ftp://ftp.cco.caltech.edu/pub/glenn/Arrow/source/
XDISTFILES+=	Code_Medic_source-1.0.3.tar.gz \
X		JSearch_source-0.5.6.tar.gz
X.endif
X
X.include <bsd.port.pre.mk>
X.if ${OSREL} >= 3
XALL_TARGET=	freebsd3.x
XLIBACE=		4
XLIBJTOOL=	0
XLIBJSEARCH=	0
XLIBJTREE=	1
XLIBJX=		1
X.else
XALL_TARGET=	freebsd2.x
XLIBACE=		4.6
XLIBJTOOL=	0.5
XLIBJSEARCH=	0.5
XLIBJTREE=	1.1
XLIBJX=		1.5
X.endif
X
Xdo-install:
X		@ ${LN} -sf ${PREFIX}/lib/libACE-4_6.so \
X			${PREFIX}/lib/libACE-4_6.so.${LIBACE};
X		@ ${LN} -sf ${PREFIX}/lib/libjcore-1_5_2.so \
X			${PREFIX}/lib/libjcore-1_5_2.so.${LIBJX};
X		@ ${LN} -sf ${PREFIX}/lib/libjtoolbar-0_5_3.so \
X			${PREFIX}/lib/libjtoolbar-0_5_3.so.${LIBJTOOL};
X		@ ${LN} -sf ${PREFIX}/lib/libjtree-1_1_5.so \
X			${PREFIX}/lib/libjtree-1_1_5.so.${LIBJTREE};
X		@ ${LN} -sf ${PREFIX}/lib/libjx-1_5_2.so \
X			${PREFIX}/lib/libjx-1_5_2.so.${LIBJX};
X.if !defined(CODEMEDIC) || (${CODEMEDIC} != no && ${CODEMEDIC} != NO)
X		@ ${LN} -sf ${PREFIX}/lib/libjsearch-0_5_6.so \
X			${PREFIX}/lib/libjsearch-0_5_6.so.${LIBJSEARCH};
X.endif
X
Xpost-install:
X		@ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
X
X.include <bsd.port.mk>
END-of-codecrusader/Makefile
echo c - codecrusader/files
mkdir -p codecrusader/files > /dev/null 2>&1
echo x - codecrusader/files/md5
sed 's/^X//' >codecrusader/files/md5 << 'END-of-codecrusader/files/md5'
XMD5 (code_crusader_source-2.1.3.tar.gz) = 14e9ed8895e19855b94b371d0e835cf9
XMD5 (JTree_source-1.1.5.tar.gz) = b144fd6b9b29ab564f3156ab58bac951
XMD5 (JX_source-1.5.2.tar.gz) = b41be047d3d83cf5cd3b534f0b96ebda
XMD5 (JToolBar_source-0.5.3.tar.gz) = 9e43ddde396b1c23b21c24f84bf0faf6
XMD5 (Code_Medic_source-1.0.3.tar.gz) = be96f49099ce00e3a5aeda6e907a0df4
XMD5 (JSearch_source-0.5.6.tar.gz) = b76d0fd94634da71a6a0e5b72609a53b
END-of-codecrusader/files/md5
echo c - codecrusader/pkg
mkdir -p codecrusader/pkg > /dev/null 2>&1
echo x - codecrusader/pkg/COMMENT
sed 's/^X//' >codecrusader/pkg/COMMENT << 'END-of-codecrusader/pkg/COMMENT'
XCode Crusader is a complete code development environment (IDE) for X.
END-of-codecrusader/pkg/COMMENT
echo x - codecrusader/pkg/DESCR
sed 's/^X//' >codecrusader/pkg/DESCR << 'END-of-codecrusader/pkg/DESCR'
XCode Crusader is a complete code development environment
Xinspired by MetroWerks CodeWarrior.
X
XSome of the features include:
X    Project window automatically builds Makefile. 
X    Integrates with Code Medic to provide rapid, efficient
X       develop-debug cycle. 
X    Integrated support for make 
X    Parses error messages from:
X       Absoft FORTRAN, bison, cc, CC, flex, gcc, c++, g77,
X       KAI C++(kcc), make
X    Hypertext-like interface to UNIX man pages 
X    Graphical display of C++ inheritance hierarchy 
X    Option to use other text editor if you don't like the built-in one. 
X    Configurable button toolbars. 
X    Hypertext on-line help 
X    Support for scrolling via wheel mice. 
X    API's for extending Code Crusader 
X
XWWW: http://www.cco.caltech.edu/~jafl/jcc/
X
X
X-Davec
Xdavec@unforgettable.com
END-of-codecrusader/pkg/DESCR
echo x - codecrusader/pkg/PLIST
sed 's/^X//' >codecrusader/pkg/PLIST << 'END-of-codecrusader/pkg/PLIST'
Xbin/class_map
Xbin/jcc
Xbin/jfdesign
Xbin/jxlayout
Xbin/makecheck
Xbin/makemake
Xbin/maketouch
Xbin/need_font_list
Xbin/option_map
Xbin/medic
Xlib/libACE-4_6.so
Xlib/libACE-4_6.so.%%LIBACE%%
Xlib/libjcore-1_5_2.a
Xlib/libjcore-1_5_2.so
Xlib/libjcore-1_5_2.so.%%LIBJX%%
Xlib/libjtoolbar-0_5_3.a
Xlib/libjtoolbar-0_5_3.so
Xlib/libjtoolbar-0_5_3.so.%%LIBJTOOL%%
Xlib/libjtree-1_1_5.a
Xlib/libjtree-1_1_5.so
Xlib/libjtree-1_1_5.so.%%LIBJTREE%%
Xlib/libjx-1_5_2.a
Xlib/libjx-1_5_2.so
Xlib/libjx-1_5_2.so.%%LIBJX%%
Xlib/libjsearch-0_5_6.a
Xlib/libjsearch-0_5_6.so
Xlib/libjsearch-0_5_6.so.%%LIBJSEARCH%%
X@exec /sbin/ldconfig -m %D/lib
X@unexec /sbin/ldconfig -R
END-of-codecrusader/pkg/PLIST
echo c - codecrusader/patches
mkdir -p codecrusader/patches > /dev/null 2>&1
echo x - codecrusader/patches/patch-aa
sed 's/^X//' >codecrusader/patches/patch-aa << 'END-of-codecrusader/patches/patch-aa'
X--- libjsearch/Make.header.orig	Sat Jul 31 09:08:06 1999
X+++ libjsearch/Make.header	Sat Jul 31 09:08:25 1999
X@@ -7,11 +7,12 @@
X 
X # Directories to search for header files
X 
X-SEARCHDIRS := -I- \
X-              -I${JSEARCHDIR} \
X-              -I${JCOREDIR} \
X-              -I${MENUIMGDIR} \
X-              -I${JXDIR}   
X+SEARCHDIRS = -I- \
X+             -I${JSEARCHDIR} \
X+             -I${JCOREDIR} \
X+             -I${MENUIMGDIR} \
X+             -I${JXDIR} \
X+             ${J_X11_INCLUDE_DIR}
X 
X # makemake variables
X 
END-of-codecrusader/patches/patch-aa
echo x - codecrusader/patches/patch-ab
sed 's/^X//' >codecrusader/patches/patch-ab << 'END-of-codecrusader/patches/patch-ab'
X--- programs/code_medic/Make.header.orig	Sat Jul 31 03:41:21 1999
X+++ programs/code_medic/Make.header	Sat Jul 31 03:43:40 1999
X@@ -24,22 +24,23 @@
X 
X # Directories to search for header files
X 
X-SEARCHDIRS := -I- \
X-              -I${CODEDIR} \
X-              -I${TREEDIR} \
X-              -I${VARTREEDIR} \
X-              -I${FILELISTDIR} \
X-              -I${PAGEDIR} \
X-              -I${ASMDIR} \
X-              -I${SDTDIR} \
X-              -I${CSHDIR} \
X-              -I${MEMDIR} \
X-              -I${LOCALSDIR} \
X-              -I${STACKDIR} \
X-              -I${JSEARCHDIR} \
X-              -I${JCOREDIR}\
X-              -I${JXDIR}\
X-              -I${ACE_ROOT}
X+SEARCHDIRS = -I- \
X+             -I${CODEDIR} \
X+             -I${TREEDIR} \
X+             -I${VARTREEDIR} \
X+             -I${FILELISTDIR} \
X+             -I${PAGEDIR} \
X+             -I${ASMDIR} \
X+             -I${SDTDIR} \
X+             -I${CSHDIR} \
X+             -I${MEMDIR} \
X+             -I${LOCALSDIR} \
X+             -I${STACKDIR} \
X+             -I${JSEARCHDIR} \
X+             -I${JCOREDIR}\
X+             -I${JXDIR}\
X+             -I${ACE_ROOT}\
X+             ${J_X11_INCLUDE_DIR}
X 
X # other constants
X 
END-of-codecrusader/patches/patch-ab
echo x - codecrusader/patches/patch-ac
sed 's/^X//' >codecrusader/patches/patch-ac << 'END-of-codecrusader/patches/patch-ac'
X--- programs/code_crusader/Make.header.orig	Mon Aug  2 06:01:38 1999
X+++ programs/code_crusader/Make.header	Mon Aug  2 06:35:46 1999
X@@ -75,11 +75,10 @@
X #####
X 
X .PHONY : default
X-default: libs jcc ctags
X+default: libs jcc
X 
X .PHONY : Makefiles
X Makefiles:
X-	@cd ctags; ./configure > /dev/null
X 
X #
X # required libraries
X@@ -97,21 +96,15 @@
X #
X 
X .PHONY : jxinstall
X-jxinstall: jcc ctags
X+jxinstall: jcc
X 	@strip jcc
X   ifneq (${J_WANT_INSTALL},0)
X-	@mv jcc ctags/ctags ${JX_INSTALL_ROOT}/
X-   ifeq (${shell whoami},root)
X-	@cp ctags/ctags.1 /usr/man/man1/
X-   endif
X+	@mv jcc ${JX_INSTALL_ROOT}/
X   endif
X 
X .PHONY : jxuninstall
X jxuninstall:
X-	@${RM} ${JX_INSTALL_ROOT}/jcc ${JX_INSTALL_ROOT}/ctags
X-  ifeq (${shell whoami},root)
X-	@${RM} /usr/man/man1/ctags.1
X-  endif
X+	@${RM} ${JX_INSTALL_ROOT}/jcc
X 
X #
X # remove binaries
X@@ -119,7 +112,6 @@
X 
X .PHONY : tidy
X tidy::
X-	@cd ctags; ${MAKE} clean > /dev/null
X 
X # makemake's clean invokes tidy, which does everything necessary
X 
X@@ -132,14 +124,13 @@
X 
X .PHONY : source
X source:
X-	@cd ctags; ${MAKE} clean > /dev/null
X 	@cd ${J_DISTR_TAR_DIR}; \
X-     tar -czf ${SRC_TAR_FILE} ${filter-out %.o %~ %ctags, \
X+     tar -czf ${SRC_TAR_FILE} ${filter-out %.o %~, \
X                                 ${shell cd ${J_DISTR_TAR_DIR}; echo \
X               ${addprefix ${SRC_FILE_DIR}/, \
X                 README.* LICENSE FAQ Make.* *.fd \
X                 ${EXTRA_FILES} macros/* \
X-                code/* rpm/* ctags/* } }}
X+                code/* rpm/* } }}
X 
X #
X # binary distributions
X@@ -166,10 +157,10 @@
X # distr_sub (JCC_DISTR_TAR_FILE, MKMK_TARGET)
X 
X .PHONY : distr_sub
X-distr_sub: ctags
X+distr_sub:
X 	@strip jcc
X 	@${RM} -r ${JCC}
X-	@mkdir ${JCC} ${JCC}/ctags
X+	@mkdir ${JCC}
X   ifdef RH_ISV
X 	@echo '***** RedHat ISV version *****'
X 	@ln -s ../README.ISV ${JCC}/README
X@@ -178,10 +169,7 @@
X   endif
X 	@ln -s ../jcc ${JCC}/jcc
X 	@ln -s ../macros ${JCC}/macros
X-	@ln -s ../../ctags/ctags ${JCC}/ctags/ctags
X 	@cp LICENSE FAQ ${EXTRA_FILES} ${JCC}/
X-	@cp ctags/COPYING ctags/FAQ ctags/NEWS ctags/QUOTES ctags/README \
X-        ctags/ctags.1 ${JCC}/ctags/
X 	@cd ${MKMKDIR}; \
X      ${MAKE} JCC_TAR_DIR=${JCC_TAR_DIR}/${JCC} ${MKMK_TARGET}
X 	@tar -chf ${JCC_DISTR_TAR_FILE} ${JCC}/*
X@@ -239,11 +227,3 @@
X beta: debug
X 	@strip -g jcc
X 	@cp jcc ${HOME}/local/stable/jcc_latest
X-
X-#
X-# ctags
X-#
X-
X-.PHONY : ctags
X-ctags:
X-	@cd ctags; ${MAKE}; strip ctags
END-of-codecrusader/patches/patch-ac
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990802191628.1366014CCD>