blob: b3e6939a8054742490bf288420a35e10ce07e60b (
plain)
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
42
43
44
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= imlib2
PORTVERSION= 0.5.2
PORTREVISION= 8
CATEGORIES= graphics ruby
MASTER_SITES= http://www.pablotron.org/download/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= ruby@FreeBSD.org
COMMENT= Imlib2 bindings for Ruby
LIB_DEPENDS= libImlib2.so:${PORTSDIR}/graphics/imlib2
OPTIONS_DEFINE= DOCS EXAMPLES
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
INSTALL_TARGET= site-install
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/imlib2.so
DOCSDIR= ${RUBY_MODDOCDIR}
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \
INSTALL_DATA="${INSTALL_DATA}"
PORTDOCS= *
PORTEXAMPLES= *
post-patch:
${REINPLACE_CMD} -E -e 's|RSTRING\(([^)]+)\)->len|RSTRING_LEN(\1)|g' ${WRKSRC}/imlib2.c
post-install:
@${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
@${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_MODEXAMPLESDIR})
@(cd ${WRKSRC} && ${COPYTREE_SHARE} doc ${STAGEDIR}${RUBY_MODDOCDIR})
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${RUBY_MODDOCDIR}/
.include <bsd.port.mk>
|