aboutsummaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2001-04-07 00:20:37 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2001-04-07 00:20:37 +0000
commit9f233704f36313dfc996d1b4ff5f202f8d442c75 (patch)
treee6591cf49043d26c0999cb251adc90f1b432bb58 /cad
parent1c640af5539a427f80bb00f51691b8fc87eeec3d (diff)
downloadports-9f233704f36313dfc996d1b4ff5f202f8d442c75.tar.gz
ports-9f233704f36313dfc996d1b4ff5f202f8d442c75.zip
Notes
Diffstat (limited to 'cad')
-rw-r--r--cad/Makefile1
-rw-r--r--cad/geda-gschem/Makefile32
-rw-r--r--cad/geda-gschem/distinfo1
-rw-r--r--cad/geda-gschem/files/patch-aa79
-rw-r--r--cad/geda-gschem/pkg-comment1
-rw-r--r--cad/geda-gschem/pkg-descr3
-rw-r--r--cad/geda-gschem/pkg-plist7
-rw-r--r--cad/geda-netlist/distinfo1
-rw-r--r--cad/geda-netlist/files/patch-aa134
-rw-r--r--cad/geda-netlist/pkg-comment1
-rw-r--r--cad/geda-netlist/pkg-descr3
-rw-r--r--cad/geda-netlist/pkg-plist22
-rw-r--r--cad/gnetlist/Makefile31
-rw-r--r--cad/gnetlist/distinfo1
-rw-r--r--cad/gnetlist/files/patch-aa134
-rw-r--r--cad/gnetlist/pkg-comment1
-rw-r--r--cad/gnetlist/pkg-descr3
-rw-r--r--cad/gnetlist/pkg-plist22
-rw-r--r--cad/gschem/Makefile32
-rw-r--r--cad/gschem/distinfo1
-rw-r--r--cad/gschem/files/patch-aa79
-rw-r--r--cad/gschem/pkg-comment1
-rw-r--r--cad/gschem/pkg-descr3
-rw-r--r--cad/gschem/pkg-plist7
24 files changed, 600 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile
index 8178f926f373..5f05b0a5bd6e 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -9,6 +9,7 @@
SUBDIR += geda
SUBDIR += geda-symbols
SUBDIR += gnetlist
+ SUBDIR += gschem
SUBDIR += irsim
SUBDIR += iverilog
SUBDIR += kaskade
diff --git a/cad/geda-gschem/Makefile b/cad/geda-gschem/Makefile
new file mode 100644
index 000000000000..0b1ea38bae5e
--- /dev/null
+++ b/cad/geda-gschem/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: geda
+# Date created: 4 April 2001
+# Whom: bruno schwander <bruno@tinkerbox.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gschem
+PORTVERSION= 20010304
+CATEGORIES= cad
+MASTER_SITES= ftp://ftp.geda.seul.org/pub/geda/devel/20010304/ \
+ http://geda.seul.org/devel/20010304/ \
+ http://www.tinkerbox.org/projects/files/gEDA/
+
+MAINTAINER= bruno@tinkerbox.org
+
+BUILD_DEPENDS= gesym-config:${PORTSDIR}/cad/geda-symbols
+LIB_DEPENDS= geda.12:${PORTSDIR}/cad/libgeda \
+ guile.9:${PORTSDIR}/lang/guile
+
+USE_LIBTOOL= yes
+USE_AUTOCONF= yes
+USE_GTK= yes
+INSTALLS_SHLIB= yes
+CONFIGURE_ARGS= --enable-gdgeda
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+WRKSRC= ${WRKDIR}/gschem
+
+MAN1= gschem.1
+
+.include <bsd.port.mk>
diff --git a/cad/geda-gschem/distinfo b/cad/geda-gschem/distinfo
new file mode 100644
index 000000000000..895bab7bff71
--- /dev/null
+++ b/cad/geda-gschem/distinfo
@@ -0,0 +1 @@
+MD5 (gschem-20010304.tar.gz) = a2bc1a2b735664ff8b4e26d9240468a1
diff --git a/cad/geda-gschem/files/patch-aa b/cad/geda-gschem/files/patch-aa
new file mode 100644
index 000000000000..3e4ab7790ec5
--- /dev/null
+++ b/cad/geda-gschem/files/patch-aa
@@ -0,0 +1,79 @@
+--- /usr/ports/cad/gschem/work/gschem/configure.in Mon Mar 5 00:45:50 2001
++++ configure.in Thu Mar 8 19:04:23 2001
+@@ -142,44 +142,41 @@
+ # search for libgdgeda-config
+ AC_PATH_PROG(LIBGDGEDACONFIG, libgdgeda-config, no, ${PATH})
+
+-if test $LIBGDGEDACONFIG = "no"; then
++if test $LIBGDGEDACONFIG = "no" -o no_gdgeda = yes; then
++ GDGEDA_LIB=""
+ libgdgeda_ldflags=""
+ libgdgeda_cflags=""
+ else
+ libgdgeda_ldflags=`$LIBGDGEDACONFIG --libs`
+ libgdgeda_cflags=`$LIBGDGEDACONFIG --cflags`
+ GD_EXTRA="$libgdgeda_cflags $libgdgeda_ldflags -lm"
+-fi
+-
+-AC_CHECK_LIB(gdgeda, gdImageColorAllocate, GDGEDA_LIB="-lgdgeda", GDGEDA_LIB=no, $GD_EXTRA)
+-
++ X_CFLAGS="$libgdgeda_cflags"
+
+-
+-if test $GDGEDA_LIB = no; then
+- GDGEDA_LIB=""
+-else
+- if test "$no_gdgeda" = "yes"; then
+- echo found libgdgeda, but disabling gdgeda
+- GDGEDA_LIB=""
+- libgdgeda_ldflags=""
+- libgdgeda_cflags=""
+- else
+- AC_CHECK_LIB(z, zlibVersion, Z_LIB="-lz", Z_LIB=no)
+- if test $Z_LIB = no; then
+- AC_MSG_ERROR(Cannot find libz (zlib), be sure to install zlib; it is required for libgdgeda)
+- fi
++ AC_CHECK_LIB(z, uncompress, Z_LIB="-lz", Z_LIB=no)
++ if test $Z_LIB = no; then
++ AC_MSG_ERROR(Cannot find libz (zlib), be sure to install zlib; it is required for libgdgeda)
++ else
+
+ PNG_EXTRA="-lz -lm"
+ AC_CHECK_LIB(png, png_read_init, PNG_LIB="-lpng", PNG_LIB=no, $PNG_EXTRA)
++
+ if test $PNG_LIB = no; then
+ AC_MSG_ERROR(Cannot find libpng, be sure to install png; it is required for libgdgeda)
+- fi
+-
+-
+- AC_DEFINE(HAS_LIBZ)
+- AC_DEFINE(HAS_LIBPNG)
+- AC_DEFINE(HAS_LIBGDGEDA)
+- fi
++ else
++ GD_EXTRA="-lpng"
++ AC_CHECK_LIB(gdgeda, gdImageColorAllocate, GDGEDA_LIB="-lgdgeda", GDGEDA_LIB=no, $GD_EXTRA)
++
++ if test $GDGEDA_LIB = no; then
++ GDGEDA_LIB=""
++ libgdgeda_ldflags=""
++ libgdgeda_cflags=""
++ else
++ AC_DEFINE(HAS_LIBZ)
++ AC_DEFINE(HAS_LIBPNG)
++ AC_DEFINE(HAS_LIBGDGEDA)
++ fi
++ fi
++ fi
+ fi
+
+ # search for gtkextra-config
+@@ -240,7 +237,7 @@
+ dnl CFLAGS="$CFLAGS $CFEXTRA `$GTK_CONFIG --cflags`"
+
+ CFLAGS="`$GTK_CONFIG --cflags` $CFLAGS $CFEXTRA"
+-LDFLAGS="$LDEXTRA `$GTK_CONFIG --libs` -lgtk -lgdk -lglib $LDFLAGS -lm"
++LDFLAGS="$LDEXTRA `$GTK_CONFIG --libs` $LDFLAGS -lm"
+
+ AC_MSG_CHECKING([for the rest of gtk])
+ AC_TRY_COMPILE(
diff --git a/cad/geda-gschem/pkg-comment b/cad/geda-gschem/pkg-comment
new file mode 100644
index 000000000000..306d6b469335
--- /dev/null
+++ b/cad/geda-gschem/pkg-comment
@@ -0,0 +1 @@
+gEDA electronic schematic capture tools
diff --git a/cad/geda-gschem/pkg-descr b/cad/geda-gschem/pkg-descr
new file mode 100644
index 000000000000..f39c7051dc48
--- /dev/null
+++ b/cad/geda-gschem/pkg-descr
@@ -0,0 +1,3 @@
+gschem is a tool to capture/draw electronic circuits schematics.
+
+WWW: http://www.geda.seul.org
diff --git a/cad/geda-gschem/pkg-plist b/cad/geda-gschem/pkg-plist
new file mode 100644
index 000000000000..623023b4f82e
--- /dev/null
+++ b/cad/geda-gschem/pkg-plist
@@ -0,0 +1,7 @@
+bin/gschem
+share/gEDA/system-gschemrc
+share/gEDA/scheme/gschem.scm
+share/gEDA/scheme/list-keys.scm
+share/gEDA/scheme/auto-uref.scm
+share/gEDA/scheme/print-NB-attribs.scm
+share/gEDA/scheme/generate_netlist.scm
diff --git a/cad/geda-netlist/distinfo b/cad/geda-netlist/distinfo
new file mode 100644
index 000000000000..66b0d7f30e67
--- /dev/null
+++ b/cad/geda-netlist/distinfo
@@ -0,0 +1 @@
+MD5 (gnetlist-20010304.tar.gz) = e929bde97f1fb4f59387b277803423cf
diff --git a/cad/geda-netlist/files/patch-aa b/cad/geda-netlist/files/patch-aa
new file mode 100644
index 000000000000..ec34bc5c3965
--- /dev/null
+++ b/cad/geda-netlist/files/patch-aa
@@ -0,0 +1,134 @@
+--- configure.in.orig Mon Mar 5 00:45:40 2001
++++ configure.in Thu Mar 8 19:04:18 2001
+@@ -9,20 +9,6 @@
+
+ echo Configuring gnetlist version $VERSION
+
+-dnl --disable-strokes : turn off stroke support
+-AC_ARG_ENABLE(strokes,
+- [ --disable-strokes Disable stroke support (don't use LibStroke at all)],
+- [
+- no_strokes=yes
+- ])
+-
+-dnl --disable-gdgeda : turn off libgdgeda support
+-AC_ARG_ENABLE(gdgeda,
+- [ --disable-gdgeda Disable libgdgeda support (don't use libgdgeda at all)],
+- [
+- no_gdgeda=yes
+- ])
+-
+ dnl --enable-debug : turn on debugging support (normally off)
+ AC_ARG_ENABLE(debug,
+ [ --enable-debug Enable debugging support],
+@@ -34,7 +20,7 @@
+ AC_ARG_WITH(gtk-config, [ --with-gtk-config=path Change where gtk-config is located], [opt_gtkconfig=$withval])
+
+ dnl Change default location of glib-config
+-AC_ARG_WITH(glib-config, [ --with-glib-config=path Change where glib-config is located], [opt_libconfig=$withval])
++AC_ARG_WITH(glib-config, [ --with-glib-config=path Change where glib-config is located], [opt_glibconfig=$withval])
+
+ dnl Change default location for rc files
+ AC_ARG_WITH(rcdir, [ --with-rcdir=path Change where the system-*rc files are installed], [opt_rcdir=$withval])
+@@ -147,49 +133,8 @@
+ AC_MSG_ERROR(Cannot find glib-config -- be sure that gtk >= 1.2.3 is installed)
+ fi
+
+-LDFLAGS="$saved_ldflags $LDEXTRA"
+-CFLAGS="$saved_cflags $CFEXTRA"
+-
+-# search for libgdgeda-config
+-AC_PATH_PROG(LIBGDGEDACONFIG, libgdgeda-config, no, ${PATH})
+-
+-if test $LIBGDGEDACONFIG = "no"; then
+- libgdgeda_ldflags=""
+- libgdgeda_cflags=""
+-else
+- libgdgeda_ldflags=`$LIBGDGEDACONFIG --libs`
+- libgdgeda_cflags=`$LIBGDGEDACONFIG --cflags`
+- GD_EXTRA="$libgdgeda_cflags $libgdgeda_ldflags -lm"
+-fi
+-
+-AC_CHECK_LIB(gdgeda, gdImageColorAllocate, GDGEDA_LIB="-lgdgeda", GDGEDA_LIB=no, $GD_EXTRA)
+-
+-if test $GDGEDA_LIB = no; then
+- GDGEDA_LIB=""
+-else
+- if test "$no_gdgeda" = "yes"; then
+- echo found libgdgeda, but disabling gdgeda
+- GDGEDA_LIB=""
+- libgdgeda_ldflags=""
+- libgdgeda_cflags=""
+- else
+- AC_CHECK_LIB(z, zlibVersion, Z_LIB="-lz", Z_LIB=no)
+- if test $Z_LIB = no; then
+- AC_MSG_ERROR(Cannot find libz (zlib), be sure to install zlib; it is required for libgdgeda)
+- fi
+-
+- PNG_EXTRA="-lz -lm"
+- AC_CHECK_LIB(png, png_read_init, PNG_LIB="-lpng", PNG_LIB=no, $PNG_EXTRA)
+- if test $PNG_LIB = no; then
+- AC_MSG_ERROR(Cannot find libpng, be sure to install png; it is required for libgdgeda)
+- fi
+-
+- AC_DEFINE(HAS_LIBZ)
+- AC_DEFINE(HAS_LIBPNG)
+- AC_DEFINE(HAS_LIBGDGEDA)
+- fi
+-fi
+-
++dnl LDFLAGS="$saved_ldflags $LDEXTRA"
++dnl CFLAGS="$saved_cflags $CFEXTRA"
+
+ # search for libgeda-config
+ AC_PATH_PROG(LIBGEDACONFIG, libgeda-config, no, ${PATH})
+@@ -221,8 +166,8 @@
+ GTK=
+ GDK=
+ GLIB=
+-X_LDFLAGS="`$LIBGEDACONFIG --libs` $libgdgeda_ldflags `$GLIB_CONFIG --libs`"
+-X_CFLAGS="`$GTK_CONFIG --cflags` $libgdgeda_cflags `$LIBGEDACONFIG --cflags`"
++X_LDFLAGS="`$LIBGEDACONFIG --libs` `$GLIB_CONFIG --libs`"
++X_CFLAGS="`$GTK_CONFIG --cflags` `$LIBGEDACONFIG --cflags`"
+ gtkversion=`$GTK_CONFIG --version | cut -d. -f1,2`
+
+ AC_DEFINE_UNQUOTED(GTKVERSION, "$gtkversion")
+@@ -231,7 +176,7 @@
+ dnl CFLAGS="$CFLAGS $CFEXTRA `$GTK_CONFIG --cflags`"
+
+ CFLAGS="`$GTK_CONFIG --cflags` $CFLAGS $CFEXTRA"
+-LDFLAGS="$LDEXTRA `$GTK_CONFIG --libs` -lgtk -lgdk -lglib $LDFLAGS -lm"
++LDFLAGS="$LDEXTRA `$GTK_CONFIG --libs` $LDFLAGS -lm"
+
+ AC_MSG_CHECKING([for the rest of gtk])
+ AC_TRY_COMPILE(
+@@ -245,20 +190,6 @@
+ AC_MSG_ERROR(Cannot include/link gtk/gdk/glib--check CFLAGS/LDFLAGS)
+ fi
+
+-AC_CHECK_LIB(stroke, stroke_init, STROKE_LIB="-lstroke", STROKE_LIB=no)
+-
+-if test $STROKE_LIB = no; then
+- STROKE_LIB=""
+-else
+- if test "$no_strokes" = "yes"; then
+- echo found libstroke, but disabling strokes
+- STROKE_LIB=""
+- else
+- AC_DEFINE(HAS_LIBSTROKE)
+- fi
+-fi
+-
+-
+ if ! test "$CYGWIN"x = x; then
+ echo Including -fnative-struct in CFLAGS for CYGWIN port
+ CFLAGS="$CFLAGS -fnative-struct"
+@@ -360,8 +291,6 @@
+ AC_SUBST(X_CFLAGS)
+ AC_SUBST(X_LDFLAGS)
+ AC_SUBST(X_LIBS)
+-AC_SUBST(STROKE_LIB)
+-dnl AC_SUBST(TCL_LIB)
+ AC_SUBST(GUILE_LIB)
+ AC_SUBST(GUILE_INCLUDE)
+ AC_SUBST(DL_LIB)
diff --git a/cad/geda-netlist/pkg-comment b/cad/geda-netlist/pkg-comment
new file mode 100644
index 000000000000..306d6b469335
--- /dev/null
+++ b/cad/geda-netlist/pkg-comment
@@ -0,0 +1 @@
+gEDA electronic schematic capture tools
diff --git a/cad/geda-netlist/pkg-descr b/cad/geda-netlist/pkg-descr
new file mode 100644
index 000000000000..f39c7051dc48
--- /dev/null
+++ b/cad/geda-netlist/pkg-descr
@@ -0,0 +1,3 @@
+gschem is a tool to capture/draw electronic circuits schematics.
+
+WWW: http://www.geda.seul.org
diff --git a/cad/geda-netlist/pkg-plist b/cad/geda-netlist/pkg-plist
new file mode 100644
index 000000000000..fcb92a8fcad5
--- /dev/null
+++ b/cad/geda-netlist/pkg-plist
@@ -0,0 +1,22 @@
+bin/gnetlist
+bin/gschem2pcb
+bin/mk_verilog_syms
+share/gEDA/system-gnetlistrc
+share/gEDA/scheme/gnet-PCB.scm
+share/gEDA/scheme/gnet-allegro.scm
+share/gEDA/scheme/gnet-bom.scm
+share/gEDA/scheme/gnet-geda.scm
+share/gEDA/scheme/gnet-spice.scm
+share/gEDA/scheme/gnet-tango.scm
+share/gEDA/scheme/gnet-verilog.scm
+share/gEDA/scheme/gnet-vhdl.scm
+share/gEDA/scheme/gnet-vipec.scm
+share/gEDA/scheme/gnet-PCBboard.scm
+share/gEDA/scheme/gnet-pads.scm
+share/gEDA/scheme/gnetlist.scm
+share/gEDA/scheme/gnet-bae.scm
+share/gEDA/scheme/gnet-protelII.scm
+share/gEDA/scheme/gnet-bom2.scm
+share/gEDA/scheme/gnet-gossip.scm
+share/gEDA/scheme/gnet-drc.scm
+share/gEDA/scheme/gnet-vams.scm
diff --git a/cad/gnetlist/Makefile b/cad/gnetlist/Makefile
new file mode 100644
index 000000000000..9cf20c202d93
--- /dev/null
+++ b/cad/gnetlist/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: gnetlist
+# Date created: 4 April 2001
+# Whom: bruno schwander <bruno@tinkerbox.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gnetlist
+PORTVERSION= 20010304
+CATEGORIES= cad
+MASTER_SITES= ftp://ftp.geda.seul.org/pub/geda/devel/20010304/ \
+ http://geda.seul.org/devel/20010304/ \
+ http://www.tinkerbox.org/projects/files/gEDA/
+
+MAINTAINER= bruno@tinkerbox.org
+
+LIB_DEPENDS= geda.12:${PORTSDIR}/cad/libgeda \
+ guile.9:${PORTSDIR}/lang/guile
+
+USE_LIBTOOL= yes
+USE_AUTOCONF= yes
+USE_GTK= yes
+INSTALLS_SHLIB= yes
+CONFIGURE_ARGS= --enable-gdgeda
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+WRKSRC= ${WRKDIR}/gnetlist
+
+MAN1= gnetlist.1
+
+.include <bsd.port.mk>
diff --git a/cad/gnetlist/distinfo b/cad/gnetlist/distinfo
new file mode 100644
index 000000000000..66b0d7f30e67
--- /dev/null
+++ b/cad/gnetlist/distinfo
@@ -0,0 +1 @@
+MD5 (gnetlist-20010304.tar.gz) = e929bde97f1fb4f59387b277803423cf
diff --git a/cad/gnetlist/files/patch-aa b/cad/gnetlist/files/patch-aa
new file mode 100644
index 000000000000..ec34bc5c3965
--- /dev/null
+++ b/cad/gnetlist/files/patch-aa
@@ -0,0 +1,134 @@
+--- configure.in.orig Mon Mar 5 00:45:40 2001
++++ configure.in Thu Mar 8 19:04:18 2001
+@@ -9,20 +9,6 @@
+
+ echo Configuring gnetlist version $VERSION
+
+-dnl --disable-strokes : turn off stroke support
+-AC_ARG_ENABLE(strokes,
+- [ --disable-strokes Disable stroke support (don't use LibStroke at all)],
+- [
+- no_strokes=yes
+- ])
+-
+-dnl --disable-gdgeda : turn off libgdgeda support
+-AC_ARG_ENABLE(gdgeda,
+- [ --disable-gdgeda Disable libgdgeda support (don't use libgdgeda at all)],
+- [
+- no_gdgeda=yes
+- ])
+-
+ dnl --enable-debug : turn on debugging support (normally off)
+ AC_ARG_ENABLE(debug,
+ [ --enable-debug Enable debugging support],
+@@ -34,7 +20,7 @@
+ AC_ARG_WITH(gtk-config, [ --with-gtk-config=path Change where gtk-config is located], [opt_gtkconfig=$withval])
+
+ dnl Change default location of glib-config
+-AC_ARG_WITH(glib-config, [ --with-glib-config=path Change where glib-config is located], [opt_libconfig=$withval])
++AC_ARG_WITH(glib-config, [ --with-glib-config=path Change where glib-config is located], [opt_glibconfig=$withval])
+
+ dnl Change default location for rc files
+ AC_ARG_WITH(rcdir, [ --with-rcdir=path Change where the system-*rc files are installed], [opt_rcdir=$withval])
+@@ -147,49 +133,8 @@
+ AC_MSG_ERROR(Cannot find glib-config -- be sure that gtk >= 1.2.3 is installed)
+ fi
+
+-LDFLAGS="$saved_ldflags $LDEXTRA"
+-CFLAGS="$saved_cflags $CFEXTRA"
+-
+-# search for libgdgeda-config
+-AC_PATH_PROG(LIBGDGEDACONFIG, libgdgeda-config, no, ${PATH})
+-
+-if test $LIBGDGEDACONFIG = "no"; then
+- libgdgeda_ldflags=""
+- libgdgeda_cflags=""
+-else
+- libgdgeda_ldflags=`$LIBGDGEDACONFIG --libs`
+- libgdgeda_cflags=`$LIBGDGEDACONFIG --cflags`
+- GD_EXTRA="$libgdgeda_cflags $libgdgeda_ldflags -lm"
+-fi
+-
+-AC_CHECK_LIB(gdgeda, gdImageColorAllocate, GDGEDA_LIB="-lgdgeda", GDGEDA_LIB=no, $GD_EXTRA)
+-
+-if test $GDGEDA_LIB = no; then
+- GDGEDA_LIB=""
+-else
+- if test "$no_gdgeda" = "yes"; then
+- echo found libgdgeda, but disabling gdgeda
+- GDGEDA_LIB=""
+- libgdgeda_ldflags=""
+- libgdgeda_cflags=""
+- else
+- AC_CHECK_LIB(z, zlibVersion, Z_LIB="-lz", Z_LIB=no)
+- if test $Z_LIB = no; then
+- AC_MSG_ERROR(Cannot find libz (zlib), be sure to install zlib; it is required for libgdgeda)
+- fi
+-
+- PNG_EXTRA="-lz -lm"
+- AC_CHECK_LIB(png, png_read_init, PNG_LIB="-lpng", PNG_LIB=no, $PNG_EXTRA)
+- if test $PNG_LIB = no; then
+- AC_MSG_ERROR(Cannot find libpng, be sure to install png; it is required for libgdgeda)
+- fi
+-
+- AC_DEFINE(HAS_LIBZ)
+- AC_DEFINE(HAS_LIBPNG)
+- AC_DEFINE(HAS_LIBGDGEDA)
+- fi
+-fi
+-
++dnl LDFLAGS="$saved_ldflags $LDEXTRA"
++dnl CFLAGS="$saved_cflags $CFEXTRA"
+
+ # search for libgeda-config
+ AC_PATH_PROG(LIBGEDACONFIG, libgeda-config, no, ${PATH})
+@@ -221,8 +166,8 @@
+ GTK=
+ GDK=
+ GLIB=
+-X_LDFLAGS="`$LIBGEDACONFIG --libs` $libgdgeda_ldflags `$GLIB_CONFIG --libs`"
+-X_CFLAGS="`$GTK_CONFIG --cflags` $libgdgeda_cflags `$LIBGEDACONFIG --cflags`"
++X_LDFLAGS="`$LIBGEDACONFIG --libs` `$GLIB_CONFIG --libs`"
++X_CFLAGS="`$GTK_CONFIG --cflags` `$LIBGEDACONFIG --cflags`"
+ gtkversion=`$GTK_CONFIG --version | cut -d. -f1,2`
+
+ AC_DEFINE_UNQUOTED(GTKVERSION, "$gtkversion")
+@@ -231,7 +176,7 @@
+ dnl CFLAGS="$CFLAGS $CFEXTRA `$GTK_CONFIG --cflags`"
+
+ CFLAGS="`$GTK_CONFIG --cflags` $CFLAGS $CFEXTRA"
+-LDFLAGS="$LDEXTRA `$GTK_CONFIG --libs` -lgtk -lgdk -lglib $LDFLAGS -lm"
++LDFLAGS="$LDEXTRA `$GTK_CONFIG --libs` $LDFLAGS -lm"
+
+ AC_MSG_CHECKING([for the rest of gtk])
+ AC_TRY_COMPILE(
+@@ -245,20 +190,6 @@
+ AC_MSG_ERROR(Cannot include/link gtk/gdk/glib--check CFLAGS/LDFLAGS)
+ fi
+
+-AC_CHECK_LIB(stroke, stroke_init, STROKE_LIB="-lstroke", STROKE_LIB=no)
+-
+-if test $STROKE_LIB = no; then
+- STROKE_LIB=""
+-else
+- if test "$no_strokes" = "yes"; then
+- echo found libstroke, but disabling strokes
+- STROKE_LIB=""
+- else
+- AC_DEFINE(HAS_LIBSTROKE)
+- fi
+-fi
+-
+-
+ if ! test "$CYGWIN"x = x; then
+ echo Including -fnative-struct in CFLAGS for CYGWIN port
+ CFLAGS="$CFLAGS -fnative-struct"
+@@ -360,8 +291,6 @@
+ AC_SUBST(X_CFLAGS)
+ AC_SUBST(X_LDFLAGS)
+ AC_SUBST(X_LIBS)
+-AC_SUBST(STROKE_LIB)
+-dnl AC_SUBST(TCL_LIB)
+ AC_SUBST(GUILE_LIB)
+ AC_SUBST(GUILE_INCLUDE)
+ AC_SUBST(DL_LIB)
diff --git a/cad/gnetlist/pkg-comment b/cad/gnetlist/pkg-comment
new file mode 100644
index 000000000000..306d6b469335
--- /dev/null
+++ b/cad/gnetlist/pkg-comment
@@ -0,0 +1 @@
+gEDA electronic schematic capture tools
diff --git a/cad/gnetlist/pkg-descr b/cad/gnetlist/pkg-descr
new file mode 100644
index 000000000000..f39c7051dc48
--- /dev/null
+++ b/cad/gnetlist/pkg-descr
@@ -0,0 +1,3 @@
+gschem is a tool to capture/draw electronic circuits schematics.
+
+WWW: http://www.geda.seul.org
diff --git a/cad/gnetlist/pkg-plist b/cad/gnetlist/pkg-plist
new file mode 100644
index 000000000000..fcb92a8fcad5
--- /dev/null
+++ b/cad/gnetlist/pkg-plist
@@ -0,0 +1,22 @@
+bin/gnetlist
+bin/gschem2pcb
+bin/mk_verilog_syms
+share/gEDA/system-gnetlistrc
+share/gEDA/scheme/gnet-PCB.scm
+share/gEDA/scheme/gnet-allegro.scm
+share/gEDA/scheme/gnet-bom.scm
+share/gEDA/scheme/gnet-geda.scm
+share/gEDA/scheme/gnet-spice.scm
+share/gEDA/scheme/gnet-tango.scm
+share/gEDA/scheme/gnet-verilog.scm
+share/gEDA/scheme/gnet-vhdl.scm
+share/gEDA/scheme/gnet-vipec.scm
+share/gEDA/scheme/gnet-PCBboard.scm
+share/gEDA/scheme/gnet-pads.scm
+share/gEDA/scheme/gnetlist.scm
+share/gEDA/scheme/gnet-bae.scm
+share/gEDA/scheme/gnet-protelII.scm
+share/gEDA/scheme/gnet-bom2.scm
+share/gEDA/scheme/gnet-gossip.scm
+share/gEDA/scheme/gnet-drc.scm
+share/gEDA/scheme/gnet-vams.scm
diff --git a/cad/gschem/Makefile b/cad/gschem/Makefile
new file mode 100644
index 000000000000..0b1ea38bae5e
--- /dev/null
+++ b/cad/gschem/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: geda
+# Date created: 4 April 2001
+# Whom: bruno schwander <bruno@tinkerbox.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gschem
+PORTVERSION= 20010304
+CATEGORIES= cad
+MASTER_SITES= ftp://ftp.geda.seul.org/pub/geda/devel/20010304/ \
+ http://geda.seul.org/devel/20010304/ \
+ http://www.tinkerbox.org/projects/files/gEDA/
+
+MAINTAINER= bruno@tinkerbox.org
+
+BUILD_DEPENDS= gesym-config:${PORTSDIR}/cad/geda-symbols
+LIB_DEPENDS= geda.12:${PORTSDIR}/cad/libgeda \
+ guile.9:${PORTSDIR}/lang/guile
+
+USE_LIBTOOL= yes
+USE_AUTOCONF= yes
+USE_GTK= yes
+INSTALLS_SHLIB= yes
+CONFIGURE_ARGS= --enable-gdgeda
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+WRKSRC= ${WRKDIR}/gschem
+
+MAN1= gschem.1
+
+.include <bsd.port.mk>
diff --git a/cad/gschem/distinfo b/cad/gschem/distinfo
new file mode 100644
index 000000000000..895bab7bff71
--- /dev/null
+++ b/cad/gschem/distinfo
@@ -0,0 +1 @@
+MD5 (gschem-20010304.tar.gz) = a2bc1a2b735664ff8b4e26d9240468a1
diff --git a/cad/gschem/files/patch-aa b/cad/gschem/files/patch-aa
new file mode 100644
index 000000000000..3e4ab7790ec5
--- /dev/null
+++ b/cad/gschem/files/patch-aa
@@ -0,0 +1,79 @@
+--- /usr/ports/cad/gschem/work/gschem/configure.in Mon Mar 5 00:45:50 2001
++++ configure.in Thu Mar 8 19:04:23 2001
+@@ -142,44 +142,41 @@
+ # search for libgdgeda-config
+ AC_PATH_PROG(LIBGDGEDACONFIG, libgdgeda-config, no, ${PATH})
+
+-if test $LIBGDGEDACONFIG = "no"; then
++if test $LIBGDGEDACONFIG = "no" -o no_gdgeda = yes; then
++ GDGEDA_LIB=""
+ libgdgeda_ldflags=""
+ libgdgeda_cflags=""
+ else
+ libgdgeda_ldflags=`$LIBGDGEDACONFIG --libs`
+ libgdgeda_cflags=`$LIBGDGEDACONFIG --cflags`
+ GD_EXTRA="$libgdgeda_cflags $libgdgeda_ldflags -lm"
+-fi
+-
+-AC_CHECK_LIB(gdgeda, gdImageColorAllocate, GDGEDA_LIB="-lgdgeda", GDGEDA_LIB=no, $GD_EXTRA)
+-
++ X_CFLAGS="$libgdgeda_cflags"
+
+-
+-if test $GDGEDA_LIB = no; then
+- GDGEDA_LIB=""
+-else
+- if test "$no_gdgeda" = "yes"; then
+- echo found libgdgeda, but disabling gdgeda
+- GDGEDA_LIB=""
+- libgdgeda_ldflags=""
+- libgdgeda_cflags=""
+- else
+- AC_CHECK_LIB(z, zlibVersion, Z_LIB="-lz", Z_LIB=no)
+- if test $Z_LIB = no; then
+- AC_MSG_ERROR(Cannot find libz (zlib), be sure to install zlib; it is required for libgdgeda)
+- fi
++ AC_CHECK_LIB(z, uncompress, Z_LIB="-lz", Z_LIB=no)
++ if test $Z_LIB = no; then
++ AC_MSG_ERROR(Cannot find libz (zlib), be sure to install zlib; it is required for libgdgeda)
++ else
+
+ PNG_EXTRA="-lz -lm"
+ AC_CHECK_LIB(png, png_read_init, PNG_LIB="-lpng", PNG_LIB=no, $PNG_EXTRA)
++
+ if test $PNG_LIB = no; then
+ AC_MSG_ERROR(Cannot find libpng, be sure to install png; it is required for libgdgeda)
+- fi
+-
+-
+- AC_DEFINE(HAS_LIBZ)
+- AC_DEFINE(HAS_LIBPNG)
+- AC_DEFINE(HAS_LIBGDGEDA)
+- fi
++ else
++ GD_EXTRA="-lpng"
++ AC_CHECK_LIB(gdgeda, gdImageColorAllocate, GDGEDA_LIB="-lgdgeda", GDGEDA_LIB=no, $GD_EXTRA)
++
++ if test $GDGEDA_LIB = no; then
++ GDGEDA_LIB=""
++ libgdgeda_ldflags=""
++ libgdgeda_cflags=""
++ else
++ AC_DEFINE(HAS_LIBZ)
++ AC_DEFINE(HAS_LIBPNG)
++ AC_DEFINE(HAS_LIBGDGEDA)
++ fi
++ fi
++ fi
+ fi
+
+ # search for gtkextra-config
+@@ -240,7 +237,7 @@
+ dnl CFLAGS="$CFLAGS $CFEXTRA `$GTK_CONFIG --cflags`"
+
+ CFLAGS="`$GTK_CONFIG --cflags` $CFLAGS $CFEXTRA"
+-LDFLAGS="$LDEXTRA `$GTK_CONFIG --libs` -lgtk -lgdk -lglib $LDFLAGS -lm"
++LDFLAGS="$LDEXTRA `$GTK_CONFIG --libs` $LDFLAGS -lm"
+
+ AC_MSG_CHECKING([for the rest of gtk])
+ AC_TRY_COMPILE(
diff --git a/cad/gschem/pkg-comment b/cad/gschem/pkg-comment
new file mode 100644
index 000000000000..306d6b469335
--- /dev/null
+++ b/cad/gschem/pkg-comment
@@ -0,0 +1 @@
+gEDA electronic schematic capture tools
diff --git a/cad/gschem/pkg-descr b/cad/gschem/pkg-descr
new file mode 100644
index 000000000000..f39c7051dc48
--- /dev/null
+++ b/cad/gschem/pkg-descr
@@ -0,0 +1,3 @@
+gschem is a tool to capture/draw electronic circuits schematics.
+
+WWW: http://www.geda.seul.org
diff --git a/cad/gschem/pkg-plist b/cad/gschem/pkg-plist
new file mode 100644
index 000000000000..623023b4f82e
--- /dev/null
+++ b/cad/gschem/pkg-plist
@@ -0,0 +1,7 @@
+bin/gschem
+share/gEDA/system-gschemrc
+share/gEDA/scheme/gschem.scm
+share/gEDA/scheme/list-keys.scm
+share/gEDA/scheme/auto-uref.scm
+share/gEDA/scheme/print-NB-attribs.scm
+share/gEDA/scheme/generate_netlist.scm