diff options
author | Steve Price <steve@FreeBSD.org> | 2000-09-18 00:37:23 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 2000-09-18 00:37:23 +0000 |
commit | 891b81ed4b1fe2ea8433febef7b792af4cc8fe8b (patch) | |
tree | 17ea7616e01e46d366e50e17c062000e049b3cb8 | |
parent | Adding notebook version 1.0.1. (diff) |
Adding codemedic version 1.0.4.
Provides an elegant graphical interface to gdb.
PR: 19083
Submitted by: Mario S F Ferreira <lioux@linf.unb.br>
Notes
Notes:
svn path=/head/; revision=32790
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/codemedic/Makefile | 111 | ||||
-rw-r--r-- | devel/codemedic/distinfo | 1 | ||||
-rw-r--r-- | devel/codemedic/files/patch-aa | 28 | ||||
-rw-r--r-- | devel/codemedic/files/patch-ab | 53 | ||||
-rw-r--r-- | devel/codemedic/pkg-comment | 1 | ||||
-rw-r--r-- | devel/codemedic/pkg-descr | 17 | ||||
-rw-r--r-- | devel/codemedic/pkg-plist | 4 |
8 files changed, 216 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 0d569bb8a642..ffba676aa9e5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -35,6 +35,7 @@ SUBDIR += cflow SUBDIR += clig SUBDIR += codecrusader + SUBDIR += codemedic SUBDIR += commoncpp SUBDIR += cons SUBDIR += cons-test diff --git a/devel/codemedic/Makefile b/devel/codemedic/Makefile new file mode 100644 index 000000000000..43f2c136cba6 --- /dev/null +++ b/devel/codemedic/Makefile @@ -0,0 +1,111 @@ +# New ports collection makefile for: Code Medic +# Date created: 30 July 1999 +# Whom: Davec <davec@unforgettable.com> +# +# $FreeBSD$ +# + +PORTNAME= code_medic +PORTVERSION= 1.0.4 +CATEGORIES= devel +MASTER_SITES= http://people.FreeBSD.org/~sobomax/distfiles/ +DISTNAME= Code_Medic_source-${PORTVERSION} + +MAINTAINER= lioux@linf.unb.br + +BUILD_DEPENDS= nonexistent:${JXPORT}:configure \ + makemake:${JXPORT} +LIB_DEPENDS= jx-1_5_3.1:${JXPORT} \ + jsearch-0_5_6.0:${PORTSDIR}/x11-toolkits/libjsearch \ + jtree-1_1_7.1:${PORTSDIR}/x11-toolkits/libjtree + +WRKSRC= ${WRKDIR}/JX-1.5.3 + +USE_XLIB= yes +USE_BISON= yes +USE_GMAKE= yes +# breaks if CXX is c++, bugs me +MAKE_ARGS= CC="${CC}" CXX="g++" \ + CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" +MAKE_ENV= JX_INSTALL_ROOT="${X11BASE}/bin" \ + JX_LIB_ROOT="${X11BASE}/lib" +PLIST_SUB= PORTNAME="${PORTNAME}" + +# Make environment +PORTINCLUDES= -I${X11BASE}/include -I${X11BASE}/include/jx \ + -I${X11BASE}/include/jcore \ + -I${X11BASE}/include/jsearch \ + -I${X11BASE}/include/jtree \ + -I${LOCALBASE}/include +PORTLIBS= -L${X11BASE}/lib + +# Installs dir with proper permissions +INSTALL_DATA_DIR= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 +# program files +PROGRAMFILES= code_medic/medic +# documents +DOCFILES= LICENSE README.binary +DOCDIR_PREFIX= ${PREFIX}/share/doc/${PORTNAME} +# additional configuration and header files +EXTRALIB_PREFIX= ${X11BASE}/lib/jx +EXTRALIBFILES_MAKE_WRKSRC= include/make +# main jx distribution files needed for building +COPY_JXDIRS= include +COPY_JXFILES= Makefile +# main jx distribution port wrksrc +JXPORT= ${PORTSDIR}/x11-toolkits/jx +JXPORT_WRKSRC= ${JXPORT}/work/JX-1.5.3 +JX_MAKE_CONSTANTS= jsearch_constants jtree_constants + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 300000 +ALL_TARGET= freebsd3.x +.else +ALL_TARGET= freebsd2.x +.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 + @${ECHO} "\nLOADLIBS += ${PORTLIBS}" >> \ + ${WRKSRC}/programs/${PORTNAME}/Make.header + +pre-build: +.for i in ${JX_MAKE_CONSTANTS} + @${LN} -sf ${EXTRALIB_PREFIX}/make/${i} ${WRKSRC}/include/make +.endfor + +post-build: + @cd ${WRKSRC}/programs/${PORTNAME}; ${SETENV} ${MAKE_ENV} makemake; \ + ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ + ${MAKEFILE} ${MAKE_ARGS} + +do-install: +.if !defined(NOPORTDOCS) +# Install all documentation + @${INSTALL_DATA_DIR} ${DOCDIR_PREFIX} +.for i in ${DOCFILES} + @${INSTALL_DATA} ${WRKSRC}/programs/${PORTNAME}/${i} ${DOCDIR_PREFIX} +.endfor +.endif # !defined(NOPORTDOCS) +# Install all programs +.for i in ${PROGRAMFILES} + @${INSTALL_PROGRAM} ${WRKSRC}/programs/${i} ${PREFIX}/bin +.endfor + +.include <bsd.port.post.mk> diff --git a/devel/codemedic/distinfo b/devel/codemedic/distinfo new file mode 100644 index 000000000000..e14809400070 --- /dev/null +++ b/devel/codemedic/distinfo @@ -0,0 +1 @@ +MD5 (Code_Medic_source-1.0.4.tar.gz) = 13fc3011baf29a6c4b97322665602304 diff --git a/devel/codemedic/files/patch-aa b/devel/codemedic/files/patch-aa new file mode 100644 index 000000000000..18be5d2d2db3 --- /dev/null +++ b/devel/codemedic/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/devel/codemedic/files/patch-ab b/devel/codemedic/files/patch-ab new file mode 100644 index 000000000000..2ef47b8553bf --- /dev/null +++ b/devel/codemedic/files/patch-ab @@ -0,0 +1,53 @@ +--- programs/code_medic/Make.header.orig Tue Jun 13 00:38:13 2000 ++++ programs/code_medic/Make.header Tue Jun 13 00:39:34 2000 +@@ -24,7 +24,7 @@ + + # Directories to search for header files + +-SEARCHDIRS := -I- \ ++SEARCHDIRS = -I- \ + -I${CODEDIR} \ + -I${TREEDIR} \ + -I${VARTREEDIR} \ +@@ -39,7 +39,8 @@ + -I${JSEARCHDIR} \ + -I${JCOREDIR}\ + -I${JXDIR}\ +- -I${ACE_ROOT} ++ -I${ACE_ROOT} \ ++ ${J_X11_INCLUDE_DIR} + + # other constants + +@@ -57,13 +58,6 @@ + + # library dependencies + +-ifdef J_BUILD_SHARED_LIB +- LIB_DEPS := ${JLIBDIR}/libjtree-${JTREE_LIB_VERSION}.so \ +- ${JLIBDIR}/libjsearch-${JSEARCH_LIB_VERSION}.so +-else +- LIB_DEPS := ${JLIBDIR}/libjtree-${JTREE_LIB_VERSION}.a \ +- ${JLIBDIR}/libjsearch-${JSEARCH_LIB_VERSION}.a +-endif + + # make variables + +@@ -85,7 +79,7 @@ + ##### + + .PHONY : default +-default: libs medic ++default: medic + + .PHONY : Makefiles + Makefiles: +@@ -121,7 +115,7 @@ + # + + .PHONY : jxinstall +-jxinstall: medic ++jxinstall_not: medic + @strip medic + @mv medic ${JX_INSTALL_ROOT}/ + diff --git a/devel/codemedic/pkg-comment b/devel/codemedic/pkg-comment new file mode 100644 index 000000000000..4dacb753a108 --- /dev/null +++ b/devel/codemedic/pkg-comment @@ -0,0 +1 @@ +Provides an elegant graphical interface to gdb diff --git a/devel/codemedic/pkg-descr b/devel/codemedic/pkg-descr new file mode 100644 index 000000000000..51d0857b4b6b --- /dev/null +++ b/devel/codemedic/pkg-descr @@ -0,0 +1,17 @@ +The standard UNIX debugger, gdb, is extremely powerful, but its +command line interface can be quite intimidating and painful to +use. + +Code Medic provides an elegant free graphical interface to gdb's +most important features. Unlike most interfaces to gdb, Code Medic +aims to remove the need for the command line. + +It provides access to the power of gdb with an intuitive front end. +It currently supports opening multiple source windows at once, +setting/clearing breakpoints while the program is running, watching +variables change in the variable tree as you step through code +(even with nested structs), text searching through source, and +integration with Code Crusader to provide a rapid, efficient +develop-debug cycle. + +WWW: http://www.newplanetsoftware.com/medic/ diff --git a/devel/codemedic/pkg-plist b/devel/codemedic/pkg-plist new file mode 100644 index 000000000000..39bb2aa19597 --- /dev/null +++ b/devel/codemedic/pkg-plist @@ -0,0 +1,4 @@ +bin/medic +%%PORTDOCS:%%share/doc/%%PORTNAME%%/LICENSE +%%PORTDOCS:%%share/doc/%%PORTNAME%%/README.binary +%%PORTDOCS:%%@dirrm share/doc/%%PORTNAME%% |