aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/rubygem-objectdetect/Makefile
blob: 310185b6d7dfa172ccf28231e05d92d762e1c4b3 (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
# New ports collection makefile for:    rubygem-objectdetect
# Date created:     2008-11-25
# Whom:         TAKATSU Tomonari <tota@rtfm.jp>
#
# $FreeBSD$
#

PORTNAME=   objectdetect
PORTVERSION=    0.0.3
CATEGORIES= graphics rubygems
MASTER_SITES=   ${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= tota@rtfm.jp
COMMENT=    A simple library for detecting objects in pictures

LIB_DEPENDS=    cv.1:${PORTSDIR}/graphics/opencv

USE_RUBY=   yes
USE_RUBYGEMS=   yes

post-install:
    @${ECHO} ${GEM_CACHE} > ${TMPPLIST}
    @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},${GEM_DOC_DIR},' >> ${TMPPLIST}
    @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},${GEM_LIB_DIR},' >> ${TMPPLIST}
    @${ECHO} ${GEM_SPEC} >> ${TMPPLIST}
    @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},@dirrm ${GEM_LIB_DIR},' >> ${TMPPLIST}
    @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},@dirrm ${GEM_DOC_DIR},' >> ${TMPPLIST}

.include <bsd.port.mk>