the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: easychem
Version: 0.6
Revision: 4
BuildDepends: <<
atk1 (>= 1.28.0-1),
cairo (>= 1.8.8-3),
fink (>= 0.24.12-1),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
gettext-tools,
glib2-dev (>= 2.22.0-1),
glitz,
gtk+2-dev (>= 2.18.0-1),
libgettext8-dev,
pango1-xft2-ft219-dev (>= 1.24.5-4),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
sed,
x11-dev
<<
Depends: <<
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
ghostscript,
glib2-shlibs (>= 2.22.0-1),
gtk+2-shlibs (>= 2.18.0-1),
libgettext8-shlibs,
pango1-xft2-ft219-shlibs (>= 1.24.5-4),
pstoedit-bin
<<
Source: mirror:sourceforge:easychem/%n-%v.tar.gz
Source-MD5: e3c9a7fb7807b6abc592a3472a65d969
PatchFile: %n.patch
PatchFile-MD5: a64e0a8e7db942673ce8718c383540e1
PatchScript: <<
%{default_script}
perl -pi -e 's,sed,gsed,g' postscript/Makefile
<<
SetCPPFLAGS: -MD
SetLDFLAGS: -lintl
CompileScript: <<
#!/bin/sh -ev
export PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
make -j1 -f Makefile.linux PREFIX=%p
fink-package-precedence --depfile-ext='\.d' .
<<
InstallScript: <<
mkdir -p %i/bin
cp easychem %i/bin
mkdir -p %i/share/locale/fr/LC_MESSAGES
cp po/fr.mo %i/share/locale/fr/LC_MESSAGES/easychem.mo
<<
DocFiles: COPYING TODO
License: GPL
Description: Program designed to draw chemical molecules
DescDetail: <<
EasyChem is a bit difficult to learn, but when you master it, you can be very
fast, and with a huge precision. In fact, it's just like a specialized
vectorial drawing tool.
The main features I am interested in are:
Drawing very easily ornaments (non-bonding electron pairs, ...)
EPS exporting with LaTeX fonts (Computer Modern)
<<
DescPackaging: <<
Maintainer: Andrew Rohl
Hack Makefile to fix mangling of variables (circular and
mis-ordered definitions, ignoring standard ones, syntax errors
for paths passed into .c code)
No install target, so gotta do it manually
Fix sed for postscript bits to use GNU sed, /usr/bin/sed caused
issues on some platforms.
<<
Maintainer: Daniel Macks
Homepage: http://easychem.sourceforge.net
diff -Nurd -x'*~' easychem-0.6.orig/Makefile.linux easychem-0.6/Makefile.linux
--- easychem-0.6.orig/Makefile.linux 2005-05-04 04:10:07.000000000 -0400
+++ easychem-0.6/Makefile.linux 2007-02-13 00:08:41.000000000 -0500
@@ -1,21 +1,21 @@
# The C compiler
CC=gcc
-# The following line must be uncommented if you want to specify a place
-# where the 'gs' (or 'pstoedit') program is.
-
-#C_FLAGS="$(C_FLAGS) -DGS_PATH=/opt/bin"
-#C_FLAGS="$(C_FLAGS) -DPSTOEDIT_PATH=/opt/bin"
-
# Here we define the prefix where EasyChem will be installed
PREFIX=/usr/local
# Optimisation and warning flags
C_FLAGS=-Wall -W -Wpointer-arith -O2 -pedantic -std=c99 -DUNIX -DI18N -DPREFIX=\"$(PREFIX)\"
+# The following line must be uncommented if you want to specify a place
+# where the 'gs' (or 'pstoedit') program is.
+
+C_FLAGS+=-DGS_PATH=\"$(PREFIX)/bin\"
+C_FLAGS+=-DPSTOEDIT_PATH=\"$(PREFIX)/bin\"
+
# GTK flags and librairies
-GTK_FLAGS=`pkg-config --cflags gtk+-2.0`
-GTK_LIBS=`pkg-config --libs gtk+-2.0`
+GTK_FLAGS=`pkg-config --cflags gtk+-2.0` $(CPPFLAGS)
+GTK_LIBS=`pkg-config --libs gtk+-2.0` $(LDFLAGS)