freebsd-ports/x11-toolkits/slgtk/Makefile
Martin Wilke 4247854b55 The SLgtk package binds the GIMP Toolkit, also known as Gtk,
to the S-Lang scripting language. It provides an importable module
which makes most of Gtk and its constituent libraries callable directly
from S-Lang scripts.

With SLgtk the S-Lang programmer now has access to a powerful,
cross-platform widget set for creating sophisticated
graphical user interfaces (GUIs). The package also includes bindings
to GtkExtra, which are used in the vwhere visualization and filtering guilet,
as well as a gdk-pixbuf loader for the FITS image file format
widely used within astronomy, and an easy-to-use but powerful
image compositing, display, and output tool.

WWW: http://space.mit.edu/home/mnoble/slgtk/

PR:		ports/125055
Submitted by:	Alexey Shuvaev <shuvaev at phyisik.uni-wuerzburg.de>
2008-06-29 13:05:14 +00:00

66 lines
1.7 KiB
Makefile

# New ports collection makefile for: slgtk
# Date created: 28 May 2008
# Whom: Alexey Shuvaev <shuvaev@phyisik.uni-wuerzburg.de>
#
# $FreeBSD$
#
PORTNAME= slgtk
PORTVERSION= 0.7.3
CATEGORIES= x11-toolkits
MASTER_SITES= ftp://space.mit.edu/pub/cxc/modules/slgtk/
MAINTAINER= shuvaev@physik.uni-wuerzburg.de
COMMENT= S-Lang binding for GTK+
LIB_DEPENDS= slang.2:${PORTSDIR}/devel/libslang2
USE_GNOME= gtk20
GNU_CONFIGURE= yes
CONFIGURE_ARGS= LDFLAGS=-lncurses
USE_LDCONFIG= yes
MAN1= imdisplay.1
OPTIONS= FITS "Install gdk-pixbuf FITS image loader" off
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-ccdebug SLGTK_DEVEL_BUILD=true
.endif
.if !defined(WITHOUT_FITS)
ALL_TARGET= dynamic pixbuf_loader
INSTALL_TARGET= install install_pixbuf_loader
PLIST_SUB+= FITS=""
.else
ALL_TARGET= dynamic
PLIST_SUB+= FITS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|\.\.|${EXAMPLESDIR}| ; s|"examples"|"."|' \
${WRKSRC}/examples/main.sl
@${REINPLACE_CMD} -e '/rm -f devel/d ; /ln -sf @prefix@ devel/d' \
${WRKSRC}/Makefile.in
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|PACKAGES|SLGTK_PACKAGES|g'
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/text/slgtk.txt ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${MKDIR} ${EXAMPLESDIR}/images
${INSTALL_DATA} ${WRKSRC}/examples/README ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.sl ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/packages/wdisplay.sl ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/images/test.xpm ${EXAMPLESDIR}/images
${INSTALL_DATA} ${WRKSRC}/images/stars.fits ${EXAMPLESDIR}/images
.endif
.include <bsd.port.post.mk>