aboutsummaryrefslogtreecommitdiff
path: root/devel/libruin/Makefile
blob: 92e893b38882a5db63b071809d820371e05490b9 (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
# Created by: ijliao

PORTNAME=	libruin
PORTVERSION=	0.2.0
PORTREVISION=	3
CATEGORIES=	devel scheme
MASTER_SITES=	SAVANNAH

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Renderer for User Interfaces in Ncurses

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

NOT_FOR_ARCHS=	mips
NOT_FOR_ARCHS_REASON=	glib needs GCC (not available for mips)

BUILD_DEPENDS=	guile-lib>0:devel/guile-lib
LIB_DEPENDS=	libguile-2.2.so:lang/guile2 \
		libgc-threaded.so:devel/boehm-gc-threaded
RUN_DEPENDS=	guile-lib>0:devel/guile-lib

GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USES=		gnome libtool ncurses pkgconfig
USE_GNOME=	glib20
USE_LDCONFIG=	yes

INFO=	libruin

OPTIONS_DEFINE=	DOCS EXAMPLES

PORTDOCS=	ChangeLog
PORTEXAMPLES=	css21-conformance-uris.txt ruinview.c

post-patch:
# XXX: must remove spaces from the PACKAGE_STRING because of this:
# http://git.savannah.gnu.org/cgit/guile.git/commit/libguile/guile-snarf.in?id=f775ab3654357fcaad294b95efb0b1c16de1eda8 (yes, it's a bug in the new guile)
	@${REINPLACE_CMD} -e 's,guile-2\.0,guile-2.2,' \
		-e '/^PACKAGE_STRING=/s, ,-,' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's,@appendixsubsec,@appendixsec,' \
		${WRKSRC}/doc/fdl.texi

post-configure:
	# Avoid compiling examples, which fails to compile
	# As the examples needs the library to be already installed
	${REINPLACE_CMD} -e '/^SUBDIRS/s,examples,,' ${WRKSRC}/Makefile

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

do-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	(cd ${WRKSRC}/examples && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>