aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/ruby-fox16/Makefile
blob: cdd9cceaaabd8bd68b4898da6a800c9f0d425c05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Created by: Luiz Eduardo Roncato Cordeiro <lercordeiro@gmail.com>
# $FreeBSD$

PORTNAME=   fox
PORTVERSION=    1.6.19
PORTREVISION=   13
CATEGORIES= x11-toolkits ruby
MASTER_SITES=   RF
MASTER_SITE_SUBDIR= fxruby
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   FXRuby-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= lercordeiro@gmail.com
COMMENT=    Ruby extension module to use FOX 1.6, aka FXRuby

LIB_DEPENDS=    FOX-1.6:${PORTSDIR}/x11-toolkits/fox16 \
        png15:${PORTSDIR}/graphics/png \
        jpeg.11:${PORTSDIR}/graphics/jpeg \
        tiff.4:${PORTSDIR}/graphics/tiff \
        fxscintilla.23:${PORTSDIR}/x11-toolkits/fxscintilla

LATEST_LINK=    ${PKGNAMEPREFIX}${PORTNAME}16

USE_RUBY=   yes
USE_RUBY_SETUP= yes
RUBY_SETUP= install.rb
NOHARM_ARGS=    --no-harm
USE_XORG=   xcursor xproto x11 xextproto xext xrandr
USE_GL=     yes

NO_STAGE=   yes
install-noharm:
    cd ${WRKSRC}; \
    ${SETENV} ${MAKE_ENV} ${RUBY} ${RUBY_FLAGS} ${RUBY_SETUP} install ${NOHARM_ARGS} ${RUBY_INSTALL_ARGS}

post-configure:
    @${REINPLACE_CMD} -e 's|CPPFLAGS = -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.6|CPPFLAGS = -ffriend-injection -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.6|' \
    ${WRKSRC}/ext/fox16/Makefile

.include <bsd.port.mk>