Package: notecase
Version: 1.9.8
Revision: 3
Description: Hierarchical note manager
DescDetail:  <<
NoteCase is a hierarchical note manager (aka. outliner). It helps you organize
your everyday text notes into a single document, with individual notes placed 
in the tree-like structure (each note can have its sub-notes, ...).
To ensure your privacy, encrypted document format is supported, along with 
standard unencrypted format. 
<<
License: BSD
Homepage: http://notecase.sourceforge.net/index1.html
Maintainer: Alexander Hansen <alexkhansen@users.sourceforge.net>
#
Source: mirror:sourceforge:%n/%n-%v_src.tar.gz
Source-Checksum: SHA256(0b7e23ec97efd5cd4ada651ac93273f9e5ed2cfff027abfb4ae130039563b746)
SourceDirectory: %n-%v
#
PatchFile: %n.patch
PatchFile-MD5: 244ea579302fe9158e484cb3d52a90c7
PatchScript: <<
	#!/bin/sh -ev
	. %p/sbin/fink-buildenv-helper.sh
	osversion=`uname -r | cut -d. -f1`
	sed -e 's,@FINKPREFIX@,%p,g' \
		-e 's,@OSVERSION@,$osversion,g' \
		-e "s,@X11_BASE_DIR@,$X11_BASE_DIR,g" \
			%{PatchFile} | patch -p1 
	perl -pi -e "s,(#include <gdk/gdkkeysyms\.h>),#include <unistd.h>\n\1," src/OptionsDialog.cpp src/NodePropertiesDlg.cpp 
	perl -pi -e "s,(#include <gtk/gtk\.h>),#include <unistd.h>\n\1," src/callbacks.cpp src/gui/GuiLanguage.cpp src/lib/FormatIOHtml.cpp
	perl -pi -e "s,(#include <string>),#include <unistd.h>\n\1," src/DocActionPix.h src/FileAttachmentDlg.h
	perl -pi -e "s,(#include <gtk/gtk\.h>),#include <stdlib.h>\n\1," src/gui/GuiLanguage.cpp 
	perl -pi -e "s,(#include <vector>),#include <stdlib.h>\n\1," src/lib/IniFile.h
<<
#
Depends: <<
atk1-shlibs, 
cairo-shlibs, 
fontconfig2-shlibs,
freetype219-shlibs,
gconf2-shlibs, 
glib2-shlibs, 
gnome-vfs2-unified-shlibs, 
gtk+2-shlibs, 
gtksourceview2-shlibs,
libgettext8-shlibs, 
pango1-xft2-ft219-shlibs, 
x11, 
x11-shlibs
<<
BuildDepends: <<
atk1,
cairo,
fink-buildenv-modules,
fink-package-precedence,
fontconfig2-dev,
freetype219,
gconf2-dev,
glib2-dev,
gnome-vfs2-unified-dev,
gtk+2-dev,
gtksourceview2-dev,
libgettext8-dev,
pango1-xft2-ft219-dev,
pkgconfig, 
x11-dev
<<
#
GCC: 4.0
# 
SetCFLAGS: -MD
CompileScript: <<
#!/bin/sh -ev
export PKG_CONFIG_PATH=%p/lib/glib-2.0/pkgconfig-strict
make
fink-package-precedence --depfile-ext='\.d' .
<<
InstallScript: <<
#!/bin/sh -ev
export PKG_CONFIG_PATH=%p/lib/glib-2.0/pkgconfig-strict
make install DESTDIR=%d
make poinstall DESTDIR=%d
<<
DescPort: <<
Upstream apparently never actually used Fink, since they used dpkg, if installed, to 
check whether the build is on a PowerPC, but looked for "ppc-darwin" as the return 
value.  Unless, of course someone else is using dpkg....
Patch that test in %b/Makefile to look for the proper return value.

Upstream apparently thought that ".x11app" was a necessary or convenient extension
on OS X.  That was only true back in the days of OroborOSX, so patch that out in 
%b/Makefile.

Upstream thought OSX came with "gmd5sum", so patch that to "md5sum" in %b/Makefile 
so that coreutils isn't in the BDeps.

Ditch -bind_at_load, and add -dead_strip_dylibs to LDFLAGS in %b/Makefile

As of 1.9.3-4, hardcode in the X11 library location, since it was apparently using
indirect means to find them.
<<
DescUsage:  << 
The help file isn't accessible via the GUI menu for some reason, but you can 
open it manually in the application.  It's in

%p/share/doc/%n/help.ncd
<<