summaryrefslogtreecommitdiff
path: root/x11-toolkits/gnome-pty-helper/Makefile
blob: ab2a079a361d39aab463781b724078c4ceb618f3 (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
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$

PORTNAME=	gnome-pty-helper
PORTVERSION=	0.40.2
CATEGORIES=	x11-toolkits gnome
MASTER_SITES=	GNOME/sources/vte/${PORTVERSION:R}
DISTNAME=	vte-${PORTVERSION}
DIST_SUBDIR=	gnome3

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	utmp/wtmp/lastlog helper program for the vte Terminal widget

BUILD_DEPENDS+=	gnutls>=0:security/gnutls

PORTSCOUT=	ignore:1

USES=		gmake tar:xz
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
INSTALL_TARGET=	install-strip

CONFIGURE_WRKSRC=	${WRKSRC}/gnome-pty-helper
BUILD_WRKSRC=	${WRKSRC}/gnome-pty-helper
INSTALL_WRKSRC=	${WRKSRC}/gnome-pty-helper

.include <bsd.port.options.mk>

post-patch:
# borrowed osversion from bsd.ssp.mk
.if ${OSVERSION} < 1000036 && ${ARCH} == i386
	@${REINPLACE_CMD} -e 's|-fstack-protector-strong||g; \
		s|-fstack-protector||g' \
		${WRKSRC}/configure
.endif
	@${REINPLACE_CMD} -e 's|(AM_MAKEFLAGS) install-exec-hook|(AM_MAKEFLAGS)|g' \
		${WRKSRC}/gnome-pty-helper/Makefile.in

.include <bsd.port.mk>