1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/x11-toolkits/ruby-fox/Makefile
Akinori MUSHA 7f5566219c Add ruby-fox, a Ruby extension to module to use FOX toolkit.
Actually this software is named FXRuby, but I'm importing it as
ruby-fox to make it clear that it's a Ruby binding for FOX.
2001-03-06 14:13:50 +00:00

56 lines
1.4 KiB
Makefile

# New ports collection makefile for: FXRuby
# Date created: 24 February 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= fox
PORTVERSION= 0.99.161
CATEGORIES= x11-toolkits ruby
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= fxruby
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= FXRuby-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
#BUILD_DEPENDS= swig1.3:${PORTSDIR}/devel/SWIG-devel
LIB_DEPENDS= FOX.1:${PORTSDIR}/x11-toolkits/fox \
png.4:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
USE_XLIB= yes
USE_MESA= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
INSTALL_TARGET= site-install
CONFIGURE_ARGS= --with-fox-include="${LOCALBASE}/include/fox" \
--with-fox-lib="${LOCALBASE}/lib"
#MAKE_ARGS= LOCAL_LIBS="-lgcc"
DOCS_EN= README index.html
post-patch:
${RUBY} -i -pe 'sub %r:/usr/X11R6\b:, "${X11BASE}"' ${WRKSRC}/extconf.rb
pre-build:
# cd ${WRKSRC}/../swig-interfaces; ${MAKE}
${RUBY} -i -pe 'sub %r:^CXXFLAGS *=.*:, "CXXFLAGS = $$(CFLAGS) $$(CPPFLAGS)"' ${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/fox
${INSTALL_DATA} ${WRKSRC}/../examples/* ${RUBY_EXAMPLESDIR}/fox/
${MKDIR} ${RUBY_DOCDIR}/fox
.for f in ${DOCS_EN}
${INSTALL_DATA} ${WRKSRC}/../${f} ${RUBY_DOCDIR}/fox/
.endfor
.endif
.include <bsd.port.mk>