gEDA electronic schematic capture tools

Submitted by:	bruno.schwander@technologist.com
This commit is contained in:
Vanilla I. Shu 2001-04-07 00:20:37 +00:00
parent 1c640af553
commit 9f233704f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40972
24 changed files with 600 additions and 0 deletions

View File

@ -9,6 +9,7 @@
SUBDIR += geda
SUBDIR += geda-symbols
SUBDIR += gnetlist
SUBDIR += gschem
SUBDIR += irsim
SUBDIR += iverilog
SUBDIR += kaskade

32
cad/geda-gschem/Makefile Normal file
View File

@ -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>

1
cad/geda-gschem/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (gschem-20010304.tar.gz) = a2bc1a2b735664ff8b4e26d9240468a1

View File

@ -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(

View File

@ -0,0 +1 @@
gEDA electronic schematic capture tools

View File

@ -0,0 +1,3 @@
gschem is a tool to capture/draw electronic circuits schematics.
WWW: http://www.geda.seul.org

View File

@ -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

View File

@ -0,0 +1 @@
MD5 (gnetlist-20010304.tar.gz) = e929bde97f1fb4f59387b277803423cf

View File

@ -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)

View File

@ -0,0 +1 @@
gEDA electronic schematic capture tools

View File

@ -0,0 +1,3 @@
gschem is a tool to capture/draw electronic circuits schematics.
WWW: http://www.geda.seul.org

View File

@ -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

31
cad/gnetlist/Makefile Normal file
View File

@ -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>

1
cad/gnetlist/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (gnetlist-20010304.tar.gz) = e929bde97f1fb4f59387b277803423cf

134
cad/gnetlist/files/patch-aa Normal file
View File

@ -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)

1
cad/gnetlist/pkg-comment Normal file
View File

@ -0,0 +1 @@
gEDA electronic schematic capture tools

3
cad/gnetlist/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
gschem is a tool to capture/draw electronic circuits schematics.
WWW: http://www.geda.seul.org

22
cad/gnetlist/pkg-plist Normal file
View File

@ -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

32
cad/gschem/Makefile Normal file
View File

@ -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>

1
cad/gschem/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (gschem-20010304.tar.gz) = a2bc1a2b735664ff8b4e26d9240468a1

79
cad/gschem/files/patch-aa Normal file
View File

@ -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(

1
cad/gschem/pkg-comment Normal file
View File

@ -0,0 +1 @@
gEDA electronic schematic capture tools

3
cad/gschem/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
gschem is a tool to capture/draw electronic circuits schematics.
WWW: http://www.geda.seul.org

7
cad/gschem/pkg-plist Normal file
View File

@ -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