blob: c7b55af7d9eca9085b7b24bc426099e9f03c63b6 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# New ports collection makefile for: RuDL
# Date created: 10 April 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= rudl
PORTVERSION= 0.8
CATEGORIES= devel ruby
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTFILES= ${DISTNAME}-source${EXTRACT_SUFX}
DIST_SUBDIR= ruby
MAINTAINER= erik@smluc.org
COMMENT= A high level library to use SDL from Ruby
USE_SDL= gfx image mixer ttf sdl
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
#NO_WRKSUBDIR= yes
CONFIGURE_ARGS= --with-sdl-config="sdl11-config"
INSTALL_TARGET= site-install
DOCS= RUDL/audio.html \
RUDL/cdrom.html \
RUDL/displaysurface.html \
RUDL/fonts.html \
RUDL/index.html \
RUDL/input.html \
RUDL/misc.html \
RUDL/rudl.html \
RUDL/sfont.gif \
RUDL/surface.html \
RUDL/timer.html \
dokumentat.css \
howto_install.html \
howto_use.html \
index.html \
rudl.css
EXAMPLES= samples/*
post-extract:
@${RUBY} -i -pe 'sub(/\r$$/, "")' \
${WRKSRC}/*.[ch] \
${WRKSRC}/extconf.rb
post-patch:
@${RUBY} -i -pe 'sub(/malloc.h/, "stdlib.h")' \
${WRKSRC}/bitmask.c
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}
${CP} -R ${WRKSRC}/samples/* ${RUBY_MODEXAMPLESDIR}/
${MKDIR} ${RUBY_MODDOCDIR}
${MKDIR} ${RUBY_MODDOCDIR}/RUDL
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/docs/${f} ${RUBY_MODDOCDIR}/${f}
.endfor
.endif
.include <bsd.port.mk>
|