mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= imlib2
|
|
PORTVERSION= 0.5.2
|
|
PORTREVISION= 7
|
|
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
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
USE_RUBY= yes
|
|
USE_RUBY_EXTCONF= yes
|
|
USE_EFL= imlib2
|
|
|
|
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>
|