freebsd-ports/graphics/ruby-imlib2/Makefile
Grzegorz Blach a781a6e13c - Remove Mk/bsd.efl.mk
- Convert USE_EFL=libtool_hack to USES=libtool
- Convert USE_EFL=imlib2 to LIB_DEPENDS=libImlib2.so:...
- Bump PORTVERSION in graphics/imlib2 and in all ports
  which depends on imlib2

PR:		196062
Approved by:	portmgr
2014-12-27 00:09:02 +00:00

44 lines
1.1 KiB
Makefile

# 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>