summaryrefslogtreecommitdiff
path: root/lang/librep/Makefile
blob: 0f516d5e9d7c08267102250e19b7de08baf366d5 (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
# Created by: Yukihiro Nakai <nakai@FreeBSD.org>
# $FreeBSD$

PORTNAME=	librep
PORTVERSION=	0.92.3
CATEGORIES=	lang elisp gnome
MASTER_SITES=	http://download.tuxfamily.org/librep/%SUBDIR%/
MASTER_SITE_SUBDIR=	. Archive

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Emacs Lisp like runtime library

LICENSE=	GPLv2

LIB_DEPENDS=	gdbm:${PORTSDIR}/databases/gdbm \
		ffi:${PORTSDIR}/devel/libffi \
    		gmp:${PORTSDIR}/math/gmp
RUN_DEPENDS=	gtar:${PORTSDIR}/archivers/gtar

USE_CSTD=	gnu89

USE_XZ=		yes
USES=		gettext pathfix pkgconfig readline
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool
CONFIGURE_ARGS=	--with-aclocaldir=${PREFIX}/share/aclocal \
		--with-stack-direction=-1
USE_LDCONFIG=	yes

CPPFLAGS=	-I${LOCALBASE}/include
LDFLAGS=	-L${LOCALBASE}/lib -pthread

MANCOMPRESSED=	yes
MAN1=		rep.1 rep-remote.1 rep-xgettext.1 repdoc.1
INFO=		librep

.include <bsd.port.pre.mk>

.if ${ARCH} == ia64
BROKEN=		Does not build on ia64
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		'/GDBM_LIBS/s|"-lgdbm"|"$$LIBS -lgdbm"|g' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e \
		's|/share/man/|/man/|g' ${WRKSRC}/man/Makefile.in

.include <bsd.port.post.mk>