freebsd-ports/graphics/ruby-imlib2/Makefile

45 lines
1.1 KiB
Makefile
Raw Normal View History

# 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
2003-02-18 06:20:09 +01:00
COMMENT= Imlib2 bindings for Ruby
LIB_DEPENDS= libImlib2.so:${PORTSDIR}/graphics/imlib2
2014-04-07 16:14:34 +02:00
OPTIONS_DEFINE= DOCS EXAMPLES
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
INSTALL_TARGET= site-install
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/imlib2.so
DOCSDIR= ${RUBY_MODDOCDIR}
2014-04-07 16:20:19 +02:00
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
2014-04-07 16:14:34 +02:00
MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \
INSTALL_DATA="${INSTALL_DATA}"
PORTDOCS= *
2014-04-07 16:14:34 +02:00
PORTEXAMPLES= *
post-patch:
${REINPLACE_CMD} -E -e 's|RSTRING\(([^)]+)\)->len|RSTRING_LEN(\1)|g' ${WRKSRC}/imlib2.c
post-install:
2014-04-07 16:14:34 +02:00
@${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>