a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22988 2007-03-21 04:38:47Z yves@macports.org $
PortSystem 1.0
PortGroup gnustep 1.0
name gnustep-base
version 1.13.1
revision 1
platforms darwin
maintainers yves@macports.org
description A library of general-purpose Objective C objects.
long_description \
The GNUstep Base Library is a library of general-purpose, non-graphical \
Objective C objects. For example, it includes classes for strings, \
object collections, byte streams, typed coders, invocations, \
notifications, notification dispatchers, moments in time, network ports, \
remote object messaging support (distributed objects), and event loops. \
\
It provides functionality that aims to implement the non-graphical \
portion of the OpenStep standard (the Foundation library).
checksums md5 bdc92ab7048cd1ee8c18957b750686b5
depends_lib port:ffcall port:gnustep-make port:libxslt port:openssl
pre-extract {
if {
[catch {set ilist [registry_installed ${name}]} result ] &&
[variant_isset with_docs]
} then {
ui_msg "\n\nWARNING\n\
gnustep-base documentation depends on gnustep-base ... \n\
You must install gnustep-base before trying to install\
gnustep-base +with_docs\n\n"
exit 1
}
}
patchfiles base.patch
post-patch {
reinplace "s|CODING-STANDARDS|GS-CODING-STANDARDS|g" \
${worksrcpath}/Documentation/GNUmakefile
}
use_configure yes
configure.args-append LDFLAGS=-L${prefix}/lib
destroot.keepdirs ${destroot}${prefix}/var/run
startupitem.create yes
startupitem.name gdomap
set my_pid ${prefix}/var/run/gdomap.pid
startupitem.start \
"GNUSTEP_SYSTEM_ROOT=${prefix}/GNUstep/System" \
"\[ -f \$GNUSTEP_SYSTEM_ROOT/Tools/gdomap \] && \\" \
"rm -f ${my_pid} && \\" \
"\$GNUSTEP_SYSTEM_ROOT/Tools/gdomap -p -I ${my_pid}"
startupitem.stop \
"\[ -r ${prefix}/var/run/gdomap.pid \] && \\" \
"kill -9 `cat ${my_pid}` && \\" \
"rm -f ${my_pid}"
platform powerpc {
variant with_ffi {
configure.args-append \
--enable-libffi \
--with-ffi-include=${prefix}/include/gcc41 \
--with-ffi-library=${prefix}/lib/gcc41
}
}
platform darwin {
build.args-append GUI_LIBS=""
post-destroot {
cd ${destroot}${prefix}/GNUstep/System
file rename Tools/defaults Tools/gdefaults
file rename Library/Documentation/man/man1/defaults.1.gz \
Library/Documentation/man/man1/gdefaults.1.gz
}
post-install {
ui_msg "\n\n\
**** GNUstep 'defaults' tool is renamed 'gdefaults' to avoid\
overriding Apple's defaults tool. *****\n\n"
}
}